|
|
@@ -259,7 +259,7 @@ public class DzCardsServiceImpl implements IDzCardsService
|
|
|
|
|
|
dzCardsMapper.selectListByCond(cond).stream().forEach(c -> {
|
|
|
dzCards.setCardId(c.getCardId());
|
|
|
- if(null != c.getAgentId() && !c.getAgentId().equals(agentId)) {
|
|
|
+ if(!CardStatus.Free.getVal().equals(c.getStatus())) {
|
|
|
throw new ValidationException("卡分配错误");
|
|
|
}
|
|
|
dzCards.setAgentId(agentId);
|