This commit is contained in:
sxu 2025-06-16 17:05:42 +08:00
parent 1d1119c5de
commit b0ce1ed9e4
1 changed files with 0 additions and 5 deletions

View File

@ -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;