|
@@ -228,6 +228,12 @@ public class TPssrApproveController extends BaseController {
|
|
|
@Autowired
|
|
|
private TPssrFrameController frameController;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TPssrPipeController pipeController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrVesselController vesselController;
|
|
|
+
|
|
|
@Autowired
|
|
|
private TPssrCircuitController circuitController;
|
|
|
|
|
@@ -255,12 +261,25 @@ public class TPssrApproveController extends BaseController {
|
|
|
@Autowired
|
|
|
private TPssrMaterialController materialController;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TPssrPumpCleaningController pumpCleaningController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrPumpFillController pumpFillController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrPumpOverhaulController pumpOverhaulController;
|
|
|
+
|
|
|
+
|
|
|
@Autowired
|
|
|
private TPssrMocController mocController;
|
|
|
|
|
|
@Autowired
|
|
|
private TPssrMotorController motorController;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TPssrLightingController lightingController;
|
|
|
+
|
|
|
@Autowired
|
|
|
private TPssrNitrogenController nitrogenController;
|
|
|
|
|
@@ -273,6 +292,42 @@ public class TPssrApproveController extends BaseController {
|
|
|
@Autowired
|
|
|
private TPssrPublicController publicController;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TPssrOverhaulExchangerController exchangerController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrOverhaulFilterController filterController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrOverhaulTowerController towerController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrOverhaulValveController valveController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrProtectionController protectionController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrMeasureController measureController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrSafetyBleedController bleedController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrSafetyBreathController breathController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrSafetyBrustController brustController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrSafetyFlamearresterController flamearresterController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrSafetyValveController safetyValveController;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TPssrTorchvocController torchvocController;
|
|
|
+
|
|
|
/**
|
|
|
* 子项内容确认
|
|
|
*/
|
|
@@ -693,7 +748,58 @@ public class TPssrApproveController extends BaseController {
|
|
|
for (TPssrSubcontent tPssrSubcontent : tPssrSubcontents) {
|
|
|
switch (tPssrSubcontent.getForShort()) {
|
|
|
case "jxxm"://检修项目
|
|
|
+ TPssrOverhaulFilter filter = new TPssrOverhaulFilter();//过滤器
|
|
|
+ filter.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = filterController.export(filter);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
+
|
|
|
+ TPssrOverhaulTower tower = new TPssrOverhaulTower();//塔罐
|
|
|
+ tower.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = towerController.export(tower);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
+
|
|
|
+ TPssrOverhaulValve valve = new TPssrOverhaulValve();//阀门
|
|
|
+ valve.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = valveController.export(valve);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
+
|
|
|
+ TPssrOverhaulExchanger exchanger = new TPssrOverhaulExchanger();//换热器
|
|
|
+ exchanger.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ exchanger.setDevType(1L);
|
|
|
+ result = exchangerController.export(exchanger);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
+
|
|
|
+ exchanger.setDevType(2L);
|
|
|
+ result = exchangerController.export(exchanger);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
+
|
|
|
+ exchanger.setDevType(3L);
|
|
|
+ result = exchangerController.export(exchanger);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
|
|
|
+ exchanger.setDevType(4L);
|
|
|
+ result = exchangerController.export(exchanger);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
+
|
|
|
+ exchanger.setDevType(5L);
|
|
|
+ result = exchangerController.export(exchanger);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
break;
|
|
|
case "kgfa"://开工方案
|
|
|
TPssrProgramme programme = new TPssrProgramme();
|
|
@@ -728,7 +834,19 @@ public class TPssrApproveController extends BaseController {
|
|
|
files.add(new File(path));
|
|
|
break;
|
|
|
case "rsfh"://人身防护
|
|
|
+ TPssrProtection protection = new TPssrProtection();
|
|
|
+ protection.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = protectionController.export(protection);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
|
|
|
+ TPssrMeasure measure = new TPssrMeasure();
|
|
|
+ measure.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = measureController.export(measure);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
break;
|
|
|
case "sbqjd"://设备清洁度
|
|
|
TPssrCleaning cleaning = new TPssrCleaning();
|
|
@@ -782,7 +900,40 @@ public class TPssrApproveController extends BaseController {
|
|
|
|
|
|
break;
|
|
|
case "aqss"://安全设施
|
|
|
+ TPssrSafetyBleed bleed = new TPssrSafetyBleed();
|
|
|
+ bleed.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = bleedController.export(bleed);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
+
|
|
|
+ TPssrSafetyBreath breath = new TPssrSafetyBreath();
|
|
|
+ breath.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = breathController.export(breath);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
|
|
|
+ TPssrSafetyBrust brust = new TPssrSafetyBrust();
|
|
|
+ brust.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = brustController.export(brust);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
+
|
|
|
+ TPssrSafetyFlamearrester flamearrester = new TPssrSafetyFlamearrester();
|
|
|
+ flamearrester.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = flamearresterController.export(flamearrester);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
+
|
|
|
+ TPssrSafetyValve safetyValve = new TPssrSafetyValve();
|
|
|
+ safetyValve.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = safetyValveController.export(safetyValve);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
break;
|
|
|
case "txjk"://通讯监控
|
|
|
|
|
@@ -799,7 +950,19 @@ public class TPssrApproveController extends BaseController {
|
|
|
files.add(new File(path));
|
|
|
break;
|
|
|
case "hbss"://环保设施
|
|
|
+ TPssrTorchvoc torchvoc = new TPssrTorchvoc();
|
|
|
+ torchvoc.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ torchvoc.setTorchvocType("1");
|
|
|
+ result = torchvocController.export(torchvoc);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
|
|
|
+ torchvoc.setTorchvocType("2");
|
|
|
+ result = torchvocController.export(torchvoc);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
break;
|
|
|
case "yfl"://原辅料
|
|
|
TPssrMaterial material = new TPssrMaterial();
|
|
@@ -810,7 +973,26 @@ public class TPssrApproveController extends BaseController {
|
|
|
files.add(new File(path));
|
|
|
break;
|
|
|
case "jb"://机泵
|
|
|
+ TPssrPumpCleaning pumpCleaning = new TPssrPumpCleaning();
|
|
|
+ pumpCleaning.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = pumpCleaningController.export(pumpCleaning);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
|
|
|
+ TPssrPumpFill pumpFill = new TPssrPumpFill();
|
|
|
+ pumpFill.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = pumpFillController.export(pumpFill);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
+
|
|
|
+ TPssrPumpOverhaul pumpOverhaul = new TPssrPumpOverhaul();
|
|
|
+ pumpOverhaul.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = pumpOverhaulController.export(pumpOverhaul);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
break;
|
|
|
case "zdj"://支(吊)架
|
|
|
TPssrFrame frame = new TPssrFrame();
|
|
@@ -821,7 +1003,19 @@ public class TPssrApproveController extends BaseController {
|
|
|
files.add(new File(path));
|
|
|
break;
|
|
|
case "tzsb"://压力管道/压力容器
|
|
|
+ TPssrPipe pipe = new TPssrPipe();
|
|
|
+ pipe.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = pipeController.export(pipe);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
|
|
|
+ TPssrVessel vessel = new TPssrVessel();
|
|
|
+ vessel.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ result = vesselController.export(vessel);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
break;
|
|
|
case "ybjy"://仪表校验
|
|
|
TPssrInstrumentCalibration calibration = new TPssrInstrumentCalibration();
|
|
@@ -854,7 +1048,19 @@ public class TPssrApproveController extends BaseController {
|
|
|
files.add(new File(path));
|
|
|
break;
|
|
|
case "zmdbr"://照明、电伴热
|
|
|
+ TPssrLighting lighting = new TPssrLighting();
|
|
|
+ lighting.setSubId(tPssrSubcontent.getId());//子表id
|
|
|
+ lighting.setLightingType("1");
|
|
|
+ result = lightingController.export(lighting);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
|
|
|
+ lighting.setLightingType("2");
|
|
|
+ result = lightingController.export(lighting);
|
|
|
+ msg = (String) result.get("msg");
|
|
|
+ path = getProfile() + "/download/" + msg;
|
|
|
+ files.add(new File(path));
|
|
|
break;
|
|
|
case "jdjdkj"://静电接地/跨接
|
|
|
TPssrFranklinism franklinism = new TPssrFranklinism();
|