最新邀请码审核记录问题
This commit is contained in:
parent
69cf630a57
commit
fdb5613633
@ -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<String, Object> params = getHashMap(6);
|
||||
@ -115,7 +115,13 @@ public class UserIcApplyService extends DefaultBaseService {
|
||||
public UserIcApplyDTO getByUserId(String userId) {
|
||||
Map<String, Object> 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() {
|
||||
|
Loading…
Reference in New Issue
Block a user