Commit 02bc13b8 by “zcwang”

modify:添加日志

parent 750e5082
......@@ -599,7 +599,8 @@ public class ChangeFlowBiz {
changeFlowSubmitReq.getChangeExecProjectList());
changeExecRecords.forEach(exec -> changeFlowExecService.saveRecord(exec));
// 更新附件,覆盖操作,先删除,后插入
changeFileService.deleteByChangeRecordId(changeRecord.getId());
Integer fileCount = changeFileService.deleteByChangeRecordId(changeRecord.getId());
log.debug("[CHANGE_FLOW_SUBMIT] delete fileCount:{}", fileCount);
List<ChangeFlowFile> files = changeFlowSubmitReq.getChangeFiles();
if (CollectionUtils.isNotEmpty(files)) {
List<ChangeFile> changeFiles = buildChangeFileRecord(changeRecord.getId(), files, FileTypeEnum.CHANGE.getType());
......@@ -610,6 +611,8 @@ public class ChangeFlowBiz {
List<ChangeFile> changeFiles = buildChangeFileRecord(changeRecord.getId(), uploadFiles, FileTypeEnum.UPLOAD.getType());
changeFiles.forEach(file -> changeFileService.saveRecord(file));
}
log.debug("[CHANGE_FLOW_SUBMIT] files:{}, uploadFiles:{}", JSON.toJSONString(files),
JSON.toJSONString(uploadFiles));
HashMap<String, Object> param = new HashMap<>();
param.put("changeId", changeRecord.getFlowId());
param.put("changeSubject", ChangeSubjectEnum.getChangeSubjectEnum(changeRecord.getChangeSubject()).getDesc());
......
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