bug 5841
This commit is contained in:
parent
b96f1e0098
commit
7e1e9795e6
|
|
@ -81,13 +81,13 @@ public class AccCardServiceImpl implements IAccCardService {
|
|||
// 发卡前校验是否卡已存在, 已退卡的可以再发放
|
||||
int cardCountByUserId= accCardMapper.selectAccCardCountByUserId(accInfo.getUserId());
|
||||
if (cardCountByUserId > 0) {
|
||||
throw new ServiceException("此用户" + accInfo.getUserId() + "已有卡, 不能再次发放");
|
||||
throw new ServiceException("用户(user_id=" + accInfo.getUserId() + ")已有卡, 不能再次发放");
|
||||
}
|
||||
int count = accCardMapper.insertAccCard(accCard);
|
||||
saveAccCardChangeRecord(accCard);
|
||||
return count;
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述, " + e.getMessage());
|
||||
throw new ServiceException("发卡异常, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -144,7 +144,7 @@ public class AccCardServiceImpl implements IAccCardService {
|
|||
}
|
||||
return count;
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException("错误信息描述, " + e.getMessage());
|
||||
throw new ServiceException("更新异常, " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue