|
@@ -101,12 +101,15 @@ public class SpecHomeController extends BaseController
|
|
logger.info(JSON.toJSONString(params));
|
|
logger.info(JSON.toJSONString(params));
|
|
List plantIds = (List) params.get("plantIds");
|
|
List plantIds = (List) params.get("plantIds");
|
|
List unitIds = (List) params.get("unitIds");
|
|
List unitIds = (List) params.get("unitIds");
|
|
|
|
+ if (unitIds.size() ==0) {
|
|
|
|
+ unitIds.add("");
|
|
|
|
+ }
|
|
//压力管道
|
|
//压力管道
|
|
int ylgdAll = tSpecdevYlgdService.count(new QueryWrapper<TSpecdevYlgd>()
|
|
int ylgdAll = tSpecdevYlgdService.count(new QueryWrapper<TSpecdevYlgd>()
|
|
.in("plant_code",plantIds)
|
|
.in("plant_code",plantIds)
|
|
|
|
+ .in("unit",unitIds)
|
|
.eq("STATUS" , 1)
|
|
.eq("STATUS" , 1)
|
|
.eq("del_flag" , 0)
|
|
.eq("del_flag" , 0)
|
|
- .and(unitIds.size()>0 ,i -> i.in("unit",unitIds).or().in("plant_code",unitIds).or().isNull("unit"))
|
|
|
|
|
|
|
|
);
|
|
);
|
|
//查询管道长度
|
|
//查询管道长度
|
|
@@ -114,8 +117,9 @@ public class SpecHomeController extends BaseController
|
|
.eq("STATUS" , 1)
|
|
.eq("STATUS" , 1)
|
|
.eq("del_flag" , 0)
|
|
.eq("del_flag" , 0)
|
|
.in("plant_code",plantIds)
|
|
.in("plant_code",plantIds)
|
|
|
|
+ .in("unit",unitIds)
|
|
// .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
// .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
- .and(unitIds.size()>0 ,i -> i.in("unit",unitIds).or().in("plant_code",unitIds).or().isNull("unit"))
|
|
|
|
|
|
+// .and(unitIds.size()>0 ,i -> i.in("unit",unitIds).or().in("plant_code",unitIds).or().isNull("unit"))
|
|
);
|
|
);
|
|
double allLength = 0;
|
|
double allLength = 0;
|
|
for (int i = 0; i < gdList.size(); i++) {
|
|
for (int i = 0; i < gdList.size(); i++) {
|
|
@@ -152,8 +156,9 @@ public class SpecHomeController extends BaseController
|
|
.eq("STATUS" , 1)
|
|
.eq("STATUS" , 1)
|
|
.eq("del_flag" , 0)
|
|
.eq("del_flag" , 0)
|
|
.in("plant_code",plantIds)
|
|
.in("plant_code",plantIds)
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
|
- .and(unitIds.size()>0 ,i -> i.in("unit",unitIds).or().in("plant_code",unitIds).or().isNull("unit"))
|
|
|
|
|
|
+ .in("unit",unitIds)
|
|
|
|
+// .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
|
+// .and(unitIds.size()>0 ,i -> i.in("unit",unitIds).or().in("plant_code",unitIds).or().isNull("unit"))
|
|
);
|
|
);
|
|
Map<String, Object> mapylrq = new HashMap<String, Object>();
|
|
Map<String, Object> mapylrq = new HashMap<String, Object>();
|
|
mapylrq.put("ylrqAll_num", ylrqAll);
|
|
mapylrq.put("ylrqAll_num", ylrqAll);
|
|
@@ -162,7 +167,9 @@ public class SpecHomeController extends BaseController
|
|
.eq("STATUS" , 1)
|
|
.eq("STATUS" , 1)
|
|
.eq("del_flag" , 0)
|
|
.eq("del_flag" , 0)
|
|
.in("plant_code",plantIds)
|
|
.in("plant_code",plantIds)
|
|
- .in("unit",unitIds)
|
|
|
|
|
|
+ .in("unit",unitIds)
|
|
|
|
+// .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
|
+// .and(unitIds.size()>0 ,i -> i.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
);
|
|
);
|
|
Map<String, Object> mapgl = new HashMap<String, Object>();
|
|
Map<String, Object> mapgl = new HashMap<String, Object>();
|
|
mapgl.put("glAll_num", glAll);
|
|
mapgl.put("glAll_num", glAll);
|