Commit 457cb9ff authored by suhuiguang's avatar suhuiguang

refactor(大编辑):代码重构

1.使用登记证编辑时,进行检验重复,台套类为所有证下不能重复,气瓶类为与其他使用单位证不能重复 2.使用信息表及设备的es都进行使用登记证的更新
parent 36102fc5
...@@ -174,6 +174,7 @@ public class EquipChangeDataUpdateServiceImpl { ...@@ -174,6 +174,7 @@ public class EquipChangeDataUpdateServiceImpl {
esEquipmentCategoryDto.setEQU_TYPE(registerChangeDataDto.getEquType()); esEquipmentCategoryDto.setEQU_TYPE(registerChangeDataDto.getEquType());
esEquipmentCategoryDto.setEQU_CATEGORY_CODE(registerChangeDataDto.getEquCategory()); esEquipmentCategoryDto.setEQU_CATEGORY_CODE(registerChangeDataDto.getEquCategory());
esEquipmentCategoryDto.setEQU_DEFINE_CODE(registerChangeDataDto.getEquDefine()); esEquipmentCategoryDto.setEQU_DEFINE_CODE(registerChangeDataDto.getEquDefine());
esEquipmentCategoryDto.setUSE_ORG_CODE(registerChangeDataDto.getUseOrgCode());
// 冗余设备类别名称 // 冗余设备类别名称
if (StringUtils.isEmpty(registerChangeDataDto.getEquCategory())) { if (StringUtils.isEmpty(registerChangeDataDto.getEquCategory())) {
esEquipmentCategoryDto.setEQU_CATEGORY(null); esEquipmentCategoryDto.setEQU_CATEGORY(null);
......
...@@ -119,6 +119,7 @@ public class SingleEquipChangeProcess implements IEquipChangeDataProcessStrategy ...@@ -119,6 +119,7 @@ public class SingleEquipChangeProcess implements IEquipChangeDataProcessStrategy
List<FieldChangeMeta> idxBizJgSupervisionInfoFieldChangeMetas = commonEquipDataProcessService.simpleTrackAndUpdate(commonEquipDataProcessService.getJgUseRegistrationService().getIdxBizJgSupervisionInfoMapper(), idxBizJgSupervisionInfoOld, idxBizJgSupervisionInfoNew, useInfoNew.getRecord(), "record", useInfoNew.getRecord()); List<FieldChangeMeta> idxBizJgSupervisionInfoFieldChangeMetas = commonEquipDataProcessService.simpleTrackAndUpdate(commonEquipDataProcessService.getJgUseRegistrationService().getIdxBizJgSupervisionInfoMapper(), idxBizJgSupervisionInfoOld, idxBizJgSupervisionInfoNew, useInfoNew.getRecord(), "record", useInfoNew.getRecord());
allChangeColumns.addAll(idxBizJgSupervisionInfoFieldChangeMetas); allChangeColumns.addAll(idxBizJgSupervisionInfoFieldChangeMetas);
commonEquipDataProcessService.updateEsDataOfEquip(record, registerInfoNew);
commonEquipDataProcessService.updateEsDataOfEquip(record, useInfoNew); commonEquipDataProcessService.updateEsDataOfEquip(record, useInfoNew);
commonEquipDataProcessService.updateEsDataOfEquip(record, designInfoNew); commonEquipDataProcessService.updateEsDataOfEquip(record, designInfoNew);
commonEquipDataProcessService.updateEsDataOfEquip(record, otherInfoNew); commonEquipDataProcessService.updateEsDataOfEquip(record, otherInfoNew);
......
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