bug 6338
This commit is contained in:
parent
1d1119c5de
commit
b0ce1ed9e4
|
|
@ -78,11 +78,6 @@ public class AccCardServiceImpl implements IAccCardService {
|
|||
if (cardCountByUserId > 0) {
|
||||
throw new ServiceException("此用户已有卡, 不能再次发放");
|
||||
}
|
||||
// 发卡前校验是否卡号已存在, 卡号不能重复
|
||||
int cardCountByCardSerialNum= accCardMapper.selectAccCardCountByCardSerialNum(accountCard.getSerialNum());
|
||||
if (cardCountByCardSerialNum > 0) {
|
||||
throw new ServiceException("卡号已存在, 卡号不能重复");
|
||||
}
|
||||
int count = accCardMapper.insertAccCard(accountCard);
|
||||
saveAccCardChangeRecord(accountCard);
|
||||
return count;
|
||||
|
|
|
|||
Loading…
Reference in New Issue