|
@@ -178,6 +178,7 @@ public class SpecHomeController extends BaseController
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
.in("plant_code",plantIds)
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
Map<String, Object> mapdt = new HashMap<String, Object>();
|
|
|
mapdt.put("dtAll_num", dtAll);
|
|
@@ -186,12 +187,14 @@ public class SpecHomeController extends BaseController
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
.in("plant_code",plantIds)
|
|
|
+ .in("unit",unitIds)
|
|
|
.like("CHECK_STRATEGY","强制")
|
|
|
);
|
|
|
int dzsbUn = tSpecdevDzsbService.count(new QueryWrapper<TSpecdevDzsb>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
.in("plant_code",plantIds)
|
|
|
+ .in("unit",unitIds)
|
|
|
.notLike("CHECK_STRATEGY","强制")
|
|
|
);
|
|
|
|
|
@@ -203,6 +206,7 @@ public class SpecHomeController extends BaseController
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
.in("plant_code",plantIds)
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
Map<String, Object> mapcc = new HashMap<String, Object>();
|
|
|
mapcc.put("ccAll_num", ccAll);
|
|
@@ -235,7 +239,7 @@ public class SpecHomeController extends BaseController
|
|
|
.eq("del_flag" , 0)
|
|
|
.apply(true,applySql,year)
|
|
|
.in("plant_code",plantIds)
|
|
|
- .and(unitIds.size()>0 ,i -> i.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
yearList.add(year);
|
|
|
countList.add(num);
|
|
@@ -337,10 +341,9 @@ public class SpecHomeController extends BaseController
|
|
|
int num = tSpecdevGlService.count(new QueryWrapper<TSpecdevGl>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.apply(true,applySql,year)
|
|
|
.in("plant_code",plantIds)
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
yearList.add(year);
|
|
|
countList.add(num);
|
|
@@ -355,10 +358,9 @@ public class SpecHomeController extends BaseController
|
|
|
int num = tSpecdevGlService.count(new QueryWrapper<TSpecdevGl>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.apply(true,applySql2,year)
|
|
|
.in("plant_code",plantIds)
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
yearList2.add(year);
|
|
|
countList2.add(num);
|
|
@@ -403,7 +405,7 @@ public class SpecHomeController extends BaseController
|
|
|
// .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.apply(true,applySql,year)
|
|
|
.in("plant_code",plantIds)
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
yearList.add(year);
|
|
|
countList.add(num);
|
|
@@ -566,51 +568,45 @@ public class SpecHomeController extends BaseController
|
|
|
int safe1 = tSpecdevYlrqService.count(new QueryWrapper<TSpecdevYlrq>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.in("plant_code",plantIds)
|
|
|
.in("safe_class","1","1级","1.0","一级","Ⅰ级")
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
int safe2 = tSpecdevYlrqService.count(new QueryWrapper<TSpecdevYlrq>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.in("plant_code",plantIds)
|
|
|
.in("safe_class","2","2级","2.0","二级","Ⅱ级")
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
|
|
|
int safe3 = tSpecdevYlrqService.count(new QueryWrapper<TSpecdevYlrq>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.in("plant_code",plantIds)
|
|
|
.in("safe_class","3","3级","3.0","三级","Ⅲ级")
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
|
|
|
int safe4 = tSpecdevYlrqService.count(new QueryWrapper<TSpecdevYlrq>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.in("plant_code",plantIds)
|
|
|
.in("safe_class","4","4级","4.0","四级","Ⅳ级")
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
int safe5 = tSpecdevYlrqService.count(new QueryWrapper<TSpecdevYlrq>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.in("plant_code",plantIds)
|
|
|
.in("safe_class","5","5级","5.0","五级","Ⅴ级")
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
int safeall = tSpecdevYlrqService.count(new QueryWrapper<TSpecdevYlrq>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.in("plant_code",plantIds)
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
int safeNa = safeall - safe1 - safe2- safe3- safe4 - safe5;
|
|
|
List safeList = new ArrayList();
|
|
@@ -636,41 +632,36 @@ public class SpecHomeController extends BaseController
|
|
|
int safe1 = tSpecdevYlgdService.count(new QueryWrapper<TSpecdevYlgd>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.in("plant_code",plantIds)
|
|
|
.in("safe_class","1","1级","1.0","一级","Ⅰ级")
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
int safe2 = tSpecdevYlgdService.count(new QueryWrapper<TSpecdevYlgd>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.in("plant_code",plantIds)
|
|
|
.in("safe_class","2","2级","2.0","二级","Ⅱ级")
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
int safe3 = tSpecdevYlgdService.count(new QueryWrapper<TSpecdevYlgd>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.in("plant_code",plantIds)
|
|
|
.in("safe_class","3","3级","3.0","三级","Ⅲ级")
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
int safe4 = tSpecdevYlgdService.count(new QueryWrapper<TSpecdevYlgd>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.in("plant_code",plantIds)
|
|
|
.in("safe_class","4","4级","4.0","四级","Ⅳ级")
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
int safeall = tSpecdevYlgdService.count(new QueryWrapper<TSpecdevYlgd>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.in("plant_code",plantIds)
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
int safeNa = safeall - safe1 - safe2- safe3- safe4;
|
|
|
List safeList = new ArrayList();
|
|
@@ -695,17 +686,15 @@ public class SpecHomeController extends BaseController
|
|
|
int all = tSpecdevGlService.count(new QueryWrapper<TSpecdevGl>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.in("plant_code",plantIds)
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
int cc = tSpecdevGlService.count(new QueryWrapper<TSpecdevGl>()
|
|
|
.eq("STATUS" , 1)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .eq(!StringUtils.isBlank((String)params.get("plantName")) , "plant_code" ,params.get("plantName"))
|
|
|
.in("plant_code",plantIds)
|
|
|
+ .in("unit",unitIds)
|
|
|
.in("CHECK_CONCLUSION","符合要求","允许运行")
|
|
|
- .and(unitIds.size()>0 ,j -> j.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
);
|
|
|
String per = "0";
|
|
|
if (all != 0) {
|
|
@@ -730,7 +719,7 @@ public class SpecHomeController extends BaseController
|
|
|
.notIn("APPROVE_STATUS" , 0)
|
|
|
.in("plant_code",plantIds)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .and(unitIds.size()>0 ,i -> i.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
if (ylrqList!= null){
|
|
|
for (TSpecdevYlrq t: ylrqList
|
|
@@ -749,7 +738,7 @@ public class SpecHomeController extends BaseController
|
|
|
.notIn("APPROVE_STATUS" , 0)
|
|
|
.in("plant_code",plantIds)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .and(unitIds.size()>0 ,i -> i.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
if (ylgdList!= null){
|
|
|
for (TSpecdevYlgd t: ylgdList
|
|
@@ -768,7 +757,7 @@ public class SpecHomeController extends BaseController
|
|
|
.notIn("APPROVE_STATUS" , 0)
|
|
|
.in("plant_code",plantIds)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .and(unitIds.size()>0 ,i -> i.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
if (GlList!= null){
|
|
|
for (TSpecdevGl t: GlList
|
|
@@ -787,7 +776,7 @@ public class SpecHomeController extends BaseController
|
|
|
.notIn("APPROVE_STATUS" , 0)
|
|
|
.in("plant_code",plantIds)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .and(unitIds.size()>0 ,i -> i.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
if (dzsbList!= null){
|
|
|
for (TSpecdevDzsb t: dzsbList
|
|
@@ -806,7 +795,7 @@ public class SpecHomeController extends BaseController
|
|
|
.notIn("APPROVE_STATUS" , 0)
|
|
|
.in("plant_code",plantIds)
|
|
|
.eq("del_flag" , 0)
|
|
|
- .and(unitIds.size()>0 ,i -> i.in("unit",unitIds).or().in("plant_code",unitIds))
|
|
|
+ .in("unit",unitIds)
|
|
|
);
|
|
|
if (dtList!= null){
|
|
|
for (TSpecdevDt t: dtList
|
|
@@ -824,6 +813,7 @@ public class SpecHomeController extends BaseController
|
|
|
List<TSpecdevCc> ccList = tSpecdevCcService.list(new QueryWrapper<TSpecdevCc>()
|
|
|
.notIn("APPROVE_STATUS" , 0)
|
|
|
.in("plant_code",plantIds)
|
|
|
+ .in("unit",unitIds)
|
|
|
.eq("del_flag" , 0)
|
|
|
);
|
|
|
if (ccList!= null){
|