From fdb5613633223b660d5d6b686cf9ea4ff631ca15 Mon Sep 17 00:00:00 2001 From: TS-QD1 Date: Mon, 12 Aug 2024 14:26:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E6=96=B0=E9=82=80=E8=AF=B7=E7=A0=81?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E8=AE=B0=E5=BD=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/user/ic/apply/UserIcApplyService.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/cn/com/tenlion/operator/service/user/ic/apply/UserIcApplyService.java b/src/main/java/cn/com/tenlion/operator/service/user/ic/apply/UserIcApplyService.java index 82fec2b..1b109b4 100644 --- a/src/main/java/cn/com/tenlion/operator/service/user/ic/apply/UserIcApplyService.java +++ b/src/main/java/cn/com/tenlion/operator/service/user/ic/apply/UserIcApplyService.java @@ -70,7 +70,7 @@ public class UserIcApplyService extends DefaultBaseService { if (po == null) { throw new SearchException("申请不存在"); } - if(!ApplyStatusEnum.PENDING.equals(po.getApplyStatus())) { + if (!ApplyStatusEnum.PENDING.equals(po.getApplyStatus())) { throw new SearchException("不能重复审核"); } Map params = getHashMap(6); @@ -115,7 +115,13 @@ public class UserIcApplyService extends DefaultBaseService { public UserIcApplyDTO getByUserId(String userId) { Map params = getHashMap(2); params.put("creator", userId); - return userIcApplyDao.get(params); + UserIcApplyPO userIcApplyPO = userIcApplyDao.getLatestPOByCreator(userId); + if (userIcApplyPO == null) { + return null; + } + UserIcApplyDTO userIcApplyDTO = new UserIcApplyDTO(); + BeanUtils.copyProperties(userIcApplyPO, userIcApplyDTO); + return userIcApplyDTO; } public UserIcApplyDTO getSelf() {