diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/record/RecordServiceImpl.java b/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/record/RecordServiceImpl.java index a9268d9e..c4f2580f 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/record/RecordServiceImpl.java +++ b/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/record/RecordServiceImpl.java @@ -275,6 +275,10 @@ public class RecordServiceImpl implements RecordService { electronicContractsDO.setId(id); electronicContractsDO.setRecordId(recordId); electronicContractsDO.setFileStatus(AccountingStatusEnum.LOGFILE.getValue()); + //如果已归档设置完整性为完整 + if (electronicContractsDO.getFileStatus().equals(AccountingStatusEnum.LOGFILE.getValue())){ + electronicContractsDO.setCherks(Integer.valueOf(AccountingStatusEnum.COMPLETE.getValue())); + } electronicContractsMapper.updateById(electronicContractsDO); } } @@ -285,6 +289,10 @@ public class RecordServiceImpl implements RecordService { electronicConsultationDO.setId(id); electronicConsultationDO.setRecordId(recordId); electronicConsultationDO.setFileStatus(AccountingStatusEnum.LOGFILE.getValue()); + //如果已归档设置完整性为完整 + if (electronicConsultationDO.getFileStatus().equals(AccountingStatusEnum.LOGFILE.getValue())){ + electronicConsultationDO.setCherks(Integer.valueOf(AccountingStatusEnum.COMPLETE.getValue())); + } electronicConsultationMapper.updateById(electronicConsultationDO); } } @@ -295,6 +303,10 @@ public class RecordServiceImpl implements RecordService { electronicEmployeeDO.setId(id); electronicEmployeeDO.setRecordId(recordId); electronicEmployeeDO.setFileStatus(AccountingStatusEnum.LOGFILE.getValue()); + //如果已归档设置完整性为完整 + if (electronicEmployeeDO.getFileStatus().equals(AccountingStatusEnum.LOGFILE.getValue())){ + electronicEmployeeDO.setCherks(Integer.valueOf(AccountingStatusEnum.COMPLETE.getValue())); + } electronicEmployeeMapper.updateById(electronicEmployeeDO); } }