|
@@ -10,6 +10,8 @@ import com.ruoyi.project.pssr.domain.*;
|
|
|
import com.ruoyi.project.pssr.service.*;
|
|
|
import com.ruoyi.project.reliability.domain.TSafetyvavle;
|
|
|
import com.ruoyi.project.reliability.service.ITSafetyvavleService;
|
|
|
+import com.ruoyi.project.system.domain.SysUser;
|
|
|
+import com.ruoyi.project.system.service.ISysUserService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -71,6 +73,9 @@ public class TPssrAboveallController extends BaseController {
|
|
|
@Autowired
|
|
|
private TPssrApproveController tPssrApproveController;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ISysUserService userService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询PSSR列表
|
|
|
*/
|
|
@@ -166,11 +171,11 @@ public class TPssrAboveallController extends BaseController {
|
|
|
query.setSubId(subcontent.getId());
|
|
|
boolean flag = true;
|
|
|
for (TPssrPatrol patrol : tPssrPatrolService.selectTPssrPatrolList(query)) {
|
|
|
- if (patrol.getApproveStatus()!=2){
|
|
|
+ if (patrol.getApproveStatus() != 2) {
|
|
|
flag = false;
|
|
|
}
|
|
|
}
|
|
|
- if (flag){
|
|
|
+ if (flag) {
|
|
|
tPssrApproveController.doApprove(subcontent.getId());
|
|
|
}
|
|
|
} else if (subcontent.getForShort().equals("txjk")) {
|
|
@@ -187,11 +192,11 @@ public class TPssrAboveallController extends BaseController {
|
|
|
query.setSubId(subcontent.getId());
|
|
|
boolean flag = true;
|
|
|
for (TPssrPatrol patrol : tPssrPatrolService.selectTPssrPatrolList(query)) {
|
|
|
- if (patrol.getApproveStatus()!=2){
|
|
|
+ if (patrol.getApproveStatus() != 2) {
|
|
|
flag = false;
|
|
|
}
|
|
|
}
|
|
|
- if (flag){
|
|
|
+ if (flag) {
|
|
|
tPssrApproveController.doApprove(subcontent.getId());
|
|
|
}
|
|
|
} else if (subcontent.getForShort().equals("bxsjcy")) {
|
|
@@ -206,11 +211,11 @@ public class TPssrAboveallController extends BaseController {
|
|
|
query.setSubId(subcontent.getId());
|
|
|
boolean flag = true;
|
|
|
for (TPssrPatrol patrol : tPssrPatrolService.selectTPssrPatrolList(query)) {
|
|
|
- if (patrol.getApproveStatus()!=2){
|
|
|
+ if (patrol.getApproveStatus() != 2) {
|
|
|
flag = false;
|
|
|
}
|
|
|
}
|
|
|
- if (flag){
|
|
|
+ if (flag) {
|
|
|
tPssrApproveController.doApprove(subcontent.getId());
|
|
|
}
|
|
|
} else if (subcontent.getForShort().equals("yfl")) {
|
|
@@ -237,21 +242,20 @@ public class TPssrAboveallController extends BaseController {
|
|
|
}
|
|
|
|
|
|
private void genRsfh(Long subId, String userId) {
|
|
|
- tPssrProtectionService.insertTPssrProtection(new TPssrProtection(subId,"被保温的管道/设备保温防护层外观完好,无缺失。",userId,new Date()));
|
|
|
- tPssrProtectionService.insertTPssrProtection(new TPssrProtection(subId,"保温层连接密封处严密,无管道/设备裸露。",userId,new Date()));
|
|
|
- tPssrProtectionService.insertTPssrProtection(new TPssrProtection(subId,"管道/设备上的保温层不妨碍操作人员进行现场作业。",userId,new Date()));
|
|
|
+ tPssrProtectionService.insertTPssrProtection(new TPssrProtection(subId, "被保温的管道/设备保温防护层外观完好,无缺失。", userId, new Date()));
|
|
|
+ tPssrProtectionService.insertTPssrProtection(new TPssrProtection(subId, "保温层连接密封处严密,无管道/设备裸露。", userId, new Date()));
|
|
|
+ tPssrProtectionService.insertTPssrProtection(new TPssrProtection(subId, "管道/设备上的保温层不妨碍操作人员进行现场作业。", userId, new Date()));
|
|
|
}
|
|
|
|
|
|
private void genXcws(Long subId, String userId) {
|
|
|
- tPssrHygieneService.insertTPssrHygiene(new TPssrHygiene(subId,"现场地面无油渍,积水等。",userId,new Date()));
|
|
|
- tPssrHygieneService.insertTPssrHygiene(new TPssrHygiene(subId,"现场无检修施工后的残留物(碎屑, 密封材料, 螺栓,保温材料等) 。",userId,new Date()));
|
|
|
- tPssrHygieneService.insertTPssrHygiene(new TPssrHygiene(subId,"所需材料安全堆放在指定区域。 ",userId,new Date()));
|
|
|
- tPssrHygieneService.insertTPssrHygiene(new TPssrHygiene(subId,"工器具整齐的放置在指定区域。",userId,new Date()));
|
|
|
- tPssrHygieneService.insertTPssrHygiene(new TPssrHygiene(subId,"地沟、污水管网、污水井、清净下水管网、清净下水管井内无杂物,且畅通无阻。",userId,new Date()));
|
|
|
- tPssrHygieneService.insertTPssrHygiene(new TPssrHygiene(subId,"无多余的脚手架,现存的脚手架不影响操作人员进行现场作业。",userId,new Date()));
|
|
|
+ tPssrHygieneService.insertTPssrHygiene(new TPssrHygiene(subId, "现场地面无油渍,积水等。", userId, new Date()));
|
|
|
+ tPssrHygieneService.insertTPssrHygiene(new TPssrHygiene(subId, "现场无检修施工后的残留物(碎屑, 密封材料, 螺栓,保温材料等) 。", userId, new Date()));
|
|
|
+ tPssrHygieneService.insertTPssrHygiene(new TPssrHygiene(subId, "所需材料安全堆放在指定区域。 ", userId, new Date()));
|
|
|
+ tPssrHygieneService.insertTPssrHygiene(new TPssrHygiene(subId, "工器具整齐的放置在指定区域。", userId, new Date()));
|
|
|
+ tPssrHygieneService.insertTPssrHygiene(new TPssrHygiene(subId, "地沟、污水管网、污水井、清净下水管网、清净下水管井内无杂物,且畅通无阻。", userId, new Date()));
|
|
|
+ tPssrHygieneService.insertTPssrHygiene(new TPssrHygiene(subId, "无多余的脚手架,现存的脚手架不影响操作人员进行现场作业。", userId, new Date()));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 生成临时电源数据
|
|
|
*/
|
|
@@ -397,4 +401,13 @@ public class TPssrAboveallController extends BaseController {
|
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
|
|
return toAjax(tPssrAboveallService.deleteTPssrAboveallByIds(ids));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询pssr相关用户
|
|
|
+ */
|
|
|
+ @GetMapping("/listPssrUser")
|
|
|
+ public AjaxResult listPssrUser(TPssrSubcontent sub) {
|
|
|
+ SysUser user = new SysUser();
|
|
|
+ return AjaxResult.success(userService.selectPssrUser(user));
|
|
|
+ }
|
|
|
}
|