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() {