From ac3587fec379a08d94d30b0a13e67e10612b3b06 Mon Sep 17 00:00:00 2001 From: nidapeng <jp@doumee.com> Date: 星期一, 01 四月 2024 15:24:32 +0800 Subject: [PATCH] 提交一把 --- server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java b/server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java index 5b3fdd8..75d7444 100644 --- a/server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java +++ b/server/service/src/main/java/com/doumee/service/business/impl/UnionApplyServiceImpl.java @@ -236,7 +236,16 @@ } PageData<UnionApply> pageData = PageData.from(unionApplyJoinMapper.selectJoinPage(page,UnionApply.class, queryWrapper)); + if(pageData!=null && pageData.getRecords()!=null){ + for(UnionApply model : pageData.getRecords()){ + initStatusInfo(model); + } + } return pageData; + } + + private void initStatusInfo(UnionApply model) { + model.setStatusInfo(Constants.UnionApplyStatus.getName(Constants.formatIntegerNum(model.getStatus()))); } @Override @@ -274,6 +283,7 @@ unionApply.setServiceDays(DateUtil.daysBetweenDates(new Date(),unionApply.getStartTime())+1); } } + initStatusInfo(unionApply); return unionApply; } @@ -722,12 +732,14 @@ multifile.setName(unionApplyBXDDTO.getFileName()); multifileMapper.insert(multifile); } - } + Constants.ApplyLogType applyLogType = Constants.ApplyLogType.IA_HBD_UPLOAD_TBD; ApplyLog log = new ApplyLog(unionApply,applyLogType.getName(), null ,unionApply.getId(),applyLogType.getKey(),null, JSONObject.toJSONString(unionApply)); applyLogMapper.insert(log); + } + } -- Gitblit v1.9.3