|
@@ -209,7 +209,7 @@ public class ZhcxItpProjectNodeStateServiceImpl extends ServiceImpl<ZhcxItpProje
|
|
|
private List<RelactionNodeStateBo> initNodeStatusInside() {
|
|
|
List<JSONObject> inspectionList = insideInspectionService.getInitNodeStateInspection();
|
|
|
|
|
|
- return assembleInitNodeStatusList(inspectionList);
|
|
|
+ return assembleInitNodeStatusList(inspectionList, "inside");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -218,7 +218,7 @@ public class ZhcxItpProjectNodeStateServiceImpl extends ServiceImpl<ZhcxItpProje
|
|
|
private List<RelactionNodeStateBo> initNodeStatusOutside() {
|
|
|
List<JSONObject> inspectionList = outsideInspectionItpService.getInitNodeStateInspection();
|
|
|
|
|
|
- return assembleInitNodeStatusList(inspectionList);
|
|
|
+ return assembleInitNodeStatusList(inspectionList, "outside");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -227,7 +227,7 @@ public class ZhcxItpProjectNodeStateServiceImpl extends ServiceImpl<ZhcxItpProje
|
|
|
* @param inspectionList
|
|
|
* @return
|
|
|
*/
|
|
|
- private List<RelactionNodeStateBo> assembleInitNodeStatusList(List<JSONObject> inspectionList) {
|
|
|
+ private List<RelactionNodeStateBo> assembleInitNodeStatusList(List<JSONObject> inspectionList, String type) {
|
|
|
if(ObjectUtil.isEmpty(inspectionList)) {
|
|
|
return Collections.emptyList();
|
|
|
}
|
|
@@ -255,7 +255,7 @@ public class ZhcxItpProjectNodeStateServiceImpl extends ServiceImpl<ZhcxItpProje
|
|
|
.conclusion(inspection.getString("INSPECTIONCONCLUSION"))
|
|
|
.inspectionCount(inspection.getInteger("INSPECTIONCOUNT"))
|
|
|
.complateTime(inspection.getDate("INSPECTIONCOMPLATETIME"))
|
|
|
- .type("outside")
|
|
|
+ .type(type)
|
|
|
.build();
|
|
|
if("40".equals(inspection.getString("INSPECTIONSTATUS"))) {
|
|
|
nodeStateBo.setConclusion("40");
|