Commit 1bf97fbd authored by suhuiguang's avatar suhuiguang

feat(大编辑):管道增减功能开发

1.改造变更登记作废、使用登记作废联调调整
parent 540f779e
......@@ -146,8 +146,8 @@ public class EquipBackupHandler {
}
// 技术参数
techParamsBackupService.save(registerInfo.getEquList(), eq.getString(BACKUP_JSON_KEY_TECH_PARAM_INFO));
// 设备es数据
equipmentCategory.save(JSONObject.parseObject(eq.getString(BACKUP_JSON_KEY_INSPECTION_ES_INFO), ESEquipmentCategoryDto.class));
// 设备es数据-兼容有数据没es的脏数据
Optional.ofNullable(eq.getString(BACKUP_JSON_KEY_INSPECTION_ES_INFO)).ifPresent(v->equipmentCategory.save(JSONObject.parseObject(v, ESEquipmentCategoryDto.class)));
});
});
// insert的删除
......
......@@ -151,10 +151,6 @@ public class PieLineDataChangeServiceImpl {
// 检验信息
IdxBizJgInspectionDetectionInfo inspectionDetectionInfo = BeanUtil.copyProperties(newPieLine, IdxBizJgInspectionDetectionInfo.class);
if (!ValidationUtil.isEmpty(inspectionDetectionInfo)) {
List<Map<String, Object>> inspectionAndTestingInstitutions = commonEquipDataProcessService.getCommonService().getUnitListByType("inspection", "gasCylindersForCars", false);
Optional<Map<String, Object>> optional = inspectionAndTestingInstitutions.stream().filter(x -> x.get("useCode").equals(inspectionDetectionInfo.getInspectOrgCode())).findFirst();
Map<String, Object> mapOrDefault = optional.orElse(Collections.emptyMap());
inspectionDetectionInfo.setInspectOrgName((String) mapOrDefault.getOrDefault("useUnit", inspectionDetectionInfo.getInspectOrgName()));
inspectionDetectionInfo.setRecord(record);
inspectionDetectionInfo.setRecDate(new Date());
inspectionDetectionInfo.setSequenceNbr(null);
......@@ -162,6 +158,7 @@ public class PieLineDataChangeServiceImpl {
inspectionDetectionInfo.setNextInspectDate(DateUtil.parse(DateUtil.format(inspectionDetectionInfo.getNextInspectDate(), DatePattern.NORM_DATE_PATTERN)));
}
commonEquipDataProcessService.getJgUseRegistrationService().getInspectionDetectionInfoService().getBaseMapper().insert(inspectionDetectionInfo);
newPieLine.setJySeq(inspectionDetectionInfo.getSequenceNbr());
}
// 使用信息
......
......@@ -1158,6 +1158,9 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
IdxBizJgRegisterInfo registerInfo = JSON.parseObject(toJSONString(pipData), IdxBizJgRegisterInfo.class);
registerInfo.setRecord(record);
registerInfo.setRecDate(date);
registerInfo.setEquList(projectContraption.getEquList());
registerInfo.setEquCategory(projectContraption.getEquCategory());
registerInfo.setEquDefine(projectContraption.getEquDefine());
registerInfo.setSequenceNbr(null);
registerInfo.setEquCodeType("2");
registerInfo.setRegisterState("6045");
......
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