Explorar el Código

pms 瑞恒 看板 生产动态列表 显示 设备套数 bug1

zhangcl hace 1 día
padre
commit
165288a43d

+ 8 - 7
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/service/iotrhdailyreport/IotRhDailyReportServiceImpl.java

@@ -1457,13 +1457,14 @@ public class IotRhDailyReportServiceImpl implements IotRhDailyReportService {
                                         .computeIfAbsent(taskLocation, k -> new HashSet<>())
                                         .add(deptId);
                             }
-
-                            // 项目部下 施工区域内 施工队伍数量
-                            if (StrUtil.isNotBlank(taskLocation)) {
-                                projectLocationSgTeamSet
-                                        .computeIfAbsent(projectDeptId, k -> new HashMap<>())
-                                        .computeIfAbsent(taskLocation, k -> new HashSet<>())
-                                        .add(deptId);
+                            if (dailyGasInjection.compareTo(BigDecimal.ZERO) > 0 || dailyWaterInjection.compareTo(BigDecimal.ZERO) > 0) {
+                                // 项目部下 施工区域内 施工队伍数量
+                                if (StrUtil.isNotBlank(taskLocation)) {
+                                    projectLocationSgTeamSet
+                                            .computeIfAbsent(projectDeptId, k -> new HashMap<>())
+                                            .computeIfAbsent(taskLocation, k -> new HashSet<>())
+                                            .add(deptId);
+                                }
                             }
                         }
                     }