Commit 0eca30c4 authored by suhuiguang's avatar suhuiguang

Merge branch 'develop_tzs_register' into develop_tzs_feat/xzspj

parents c0be2fa0 99e0c993
...@@ -272,7 +272,6 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign ...@@ -272,7 +272,6 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
equip.setSafetyAssessmentCreditCode(Objects.toString(device.get("safetyAssessmentCreditCode"), "")); equip.setSafetyAssessmentCreditCode(Objects.toString(device.get("safetyAssessmentCreditCode"), ""));
equip.setSafetyAssessmentResult(Objects.toString(device.get("safetyAssessmentResult"), "")); equip.setSafetyAssessmentResult(Objects.toString(device.get("safetyAssessmentResult"), ""));
equip.setSafetyAssessmentDate(castDate2TimeStr(Objects.toString(device.get("safetyAssessmentDate"), null))); equip.setSafetyAssessmentDate(castDate2TimeStr(Objects.toString(device.get("safetyAssessmentDate"), null)));
equip.setSafetyAssessmentName(Objects.toString(device.get("equListCode"), ""));
if (!ObjectUtils.isEmpty(device.get("safetyAssessmentReport"))) { if (!ObjectUtils.isEmpty(device.get("safetyAssessmentReport"))) {
equip.setSafetyAssessmentReport(JSONObject.toJSONString(device.get("safetyAssessmentReport"))); equip.setSafetyAssessmentReport(JSONObject.toJSONString(device.get("safetyAssessmentReport")));
} }
...@@ -667,6 +666,10 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign ...@@ -667,6 +666,10 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
equipment.remove("recDate"); equipment.remove("recDate");
InspectionDetectionInfo inspectionDetectionInfo = new InspectionDetectionInfo(); InspectionDetectionInfo inspectionDetectionInfo = new InspectionDetectionInfo();
BeanUtil.copyProperties(equipment, inspectionDetectionInfo); BeanUtil.copyProperties(equipment, inspectionDetectionInfo);
if (!ObjectUtils.isEmpty(equipment.get("inspectReport"))) {
inspectionDetectionInfo.setInspectReport(JSONObject.toJSONString(equipment.get("inspectReport")));
}
inspectionDetectionInfo.setInspectConclusion(Objects.toString(equipment.get("inspectConclusionCode"),""));
// 处理jySeq更新逻辑 // 处理jySeq更新逻辑
String jySeq = Objects.toString(equipment.get("jySeq"), ""); String jySeq = Objects.toString(equipment.get("jySeq"), "");
if (!jySeq.isEmpty()) { if (!jySeq.isEmpty()) {
...@@ -1052,7 +1055,6 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign ...@@ -1052,7 +1055,6 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
.findFirst() .findFirst()
.map(info -> { .map(info -> {
Map<String, Object> result = new HashMap<>(Bean.BeantoMap(info)); Map<String, Object> result = new HashMap<>(Bean.BeantoMap(info));
result.put("inspectReport", JSON.parseArray(info.getInspectReport()));
result.put("inspectConclusionCode", info.getInspectConclusion()); result.put("inspectConclusionCode", info.getInspectConclusion());
result.put("inspectConclusion", result.put("inspectConclusion",
Optional.ofNullable(dataDictionaryServiceImpl.getByCode(info.getInspectConclusion(), "JYJL")) Optional.ofNullable(dataDictionaryServiceImpl.getByCode(info.getInspectConclusion(), "JYJL"))
...@@ -1067,6 +1069,7 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign ...@@ -1067,6 +1069,7 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
result.put("safetyAssessmentDate", overDesignServiceLifeEq.getSafetyAssessmentDate()); result.put("safetyAssessmentDate", overDesignServiceLifeEq.getSafetyAssessmentDate());
} }
commonService.convertStringToJsonobject(result, new String[]{"safetyAssessmentReport"}); commonService.convertStringToJsonobject(result, new String[]{"safetyAssessmentReport"});
commonService.convertStringToJsonobject(result, new String[]{"inspectReport"});
return result; return result;
}) })
.orElse(Collections.emptyMap()); .orElse(Collections.emptyMap());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment