|
@@ -62,6 +62,8 @@ public class TPssrAboveallController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private ITPssrPowerService tPssrPowerService;
|
|
private ITPssrPowerService tPssrPowerService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private TPssrApproveController tPssrApproveController;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 查询PSSR列表
|
|
* 查询PSSR列表
|
|
@@ -153,6 +155,18 @@ public class TPssrAboveallController extends BaseController {
|
|
for (TPssrPatrol pssrPatrol : tPssrPatrols) {
|
|
for (TPssrPatrol pssrPatrol : tPssrPatrols) {
|
|
tPssrPatrolService.insertTPssrPatrol(pssrPatrol, userId);
|
|
tPssrPatrolService.insertTPssrPatrol(pssrPatrol, userId);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ TPssrPatrol query = new TPssrPatrol();
|
|
|
|
+ query.setSubId(subcontent.getId());
|
|
|
|
+ boolean flag = true;
|
|
|
|
+ for (TPssrPatrol patrol : tPssrPatrolService.selectTPssrPatrolList(query)) {
|
|
|
|
+ if (patrol.getApproveStatus()!=2){
|
|
|
|
+ flag = false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (flag){
|
|
|
|
+ tPssrApproveController.doApprove(subcontent.getId());
|
|
|
|
+ }
|
|
} else if (subcontent.getForShort().equals("txjk")) {
|
|
} else if (subcontent.getForShort().equals("txjk")) {
|
|
List<TPssrPatrol> tPssrPatrols = new ArrayList<>();
|
|
List<TPssrPatrol> tPssrPatrols = new ArrayList<>();
|
|
// PAGA系统检查记录,10
|
|
// PAGA系统检查记录,10
|
|
@@ -162,6 +176,18 @@ public class TPssrAboveallController extends BaseController {
|
|
for (TPssrPatrol pssrPatrol : tPssrPatrols) {
|
|
for (TPssrPatrol pssrPatrol : tPssrPatrols) {
|
|
tPssrPatrolService.insertTPssrPatrol(pssrPatrol, userId);
|
|
tPssrPatrolService.insertTPssrPatrol(pssrPatrol, userId);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ TPssrPatrol query = new TPssrPatrol();
|
|
|
|
+ query.setSubId(subcontent.getId());
|
|
|
|
+ boolean flag = true;
|
|
|
|
+ for (TPssrPatrol patrol : tPssrPatrolService.selectTPssrPatrolList(query)) {
|
|
|
|
+ if (patrol.getApproveStatus()!=2){
|
|
|
|
+ flag = false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (flag){
|
|
|
|
+ tPssrApproveController.doApprove(subcontent.getId());
|
|
|
|
+ }
|
|
} else if (subcontent.getForShort().equals("bxsjcy")) {
|
|
} else if (subcontent.getForShort().equals("bxsjcy")) {
|
|
List<TPssrPatrol> tPssrPatrols = new ArrayList<>();
|
|
List<TPssrPatrol> tPssrPatrols = new ArrayList<>();
|
|
// 四合一/苯系物/硫化氢/二氧化碳/射线一氧化碳检测仪检查记录,18
|
|
// 四合一/苯系物/硫化氢/二氧化碳/射线一氧化碳检测仪检查记录,18
|
|
@@ -169,6 +195,18 @@ public class TPssrAboveallController extends BaseController {
|
|
for (TPssrPatrol pssrPatrol : tPssrPatrols) {
|
|
for (TPssrPatrol pssrPatrol : tPssrPatrols) {
|
|
tPssrPatrolService.insertTPssrPatrol(pssrPatrol, userId);
|
|
tPssrPatrolService.insertTPssrPatrol(pssrPatrol, userId);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ TPssrPatrol query = new TPssrPatrol();
|
|
|
|
+ query.setSubId(subcontent.getId());
|
|
|
|
+ boolean flag = true;
|
|
|
|
+ for (TPssrPatrol patrol : tPssrPatrolService.selectTPssrPatrolList(query)) {
|
|
|
|
+ if (patrol.getApproveStatus()!=2){
|
|
|
|
+ flag = false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (flag){
|
|
|
|
+ tPssrApproveController.doApprove(subcontent.getId());
|
|
|
|
+ }
|
|
} else if (subcontent.getForShort().equals("yfl")) {
|
|
} else if (subcontent.getForShort().equals("yfl")) {
|
|
genYfl(subcontent.getId(), userId);
|
|
genYfl(subcontent.getId(), userId);
|
|
} else if (subcontent.getForShort().equals("aqss")) {
|
|
} else if (subcontent.getForShort().equals("aqss")) {
|
|
@@ -188,6 +226,8 @@ public class TPssrAboveallController extends BaseController {
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 生成临时电源数据
|
|
* 生成临时电源数据
|
|
*/
|
|
*/
|