|
|
@@ -295,7 +295,7 @@ public class WxCardSpendServiceImpl implements WxCardSpendService { |
|
|
cardSpendQ.setTenantId(tenantId); |
|
|
cardSpendQ.setTenantId(tenantId); |
|
|
cardSpendQ.setCardId(cardId); |
|
|
cardSpendQ.setCardId(cardId); |
|
|
psNum = wxCardSpendMapper.selectCount(cardSpendQ); |
|
|
psNum = wxCardSpendMapper.selectCount(cardSpendQ); |
|
|
if (psNum >= 20) { |
|
|
|
|
|
|
|
|
if (psNum > 20) { |
|
|
logger.error("微信分账已超过限制次数-20次"); |
|
|
logger.error("微信分账已超过限制次数-20次"); |
|
|
throw new MallinkException(ErrorCode.PROFIT_SHARING_NUM_UP_LIMIT); |
|
|
throw new MallinkException(ErrorCode.PROFIT_SHARING_NUM_UP_LIMIT); |
|
|
} |
|
|
} |
|
|
@@ -348,7 +348,7 @@ public class WxCardSpendServiceImpl implements WxCardSpendService { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(cardSpend.getCardRemainAmount().equals(0) |
|
|
if(cardSpend.getCardRemainAmount().equals(0) |
|
|
|| psNum == 19) { |
|
|
|
|
|
|
|
|
|| psNum == 20) { |
|
|
// 卡余额为0,或者卡已分账20次,发起分账完结 |
|
|
// 卡余额为0,或者卡已分账20次,发起分账完结 |
|
|
if (cardSpend.getCardRemainRealAmount() > 0) { |
|
|
if (cardSpend.getCardRemainRealAmount() > 0) { |
|
|
// 卡已被抵扣,但是分账还有余额 |
|
|
// 卡已被抵扣,但是分账还有余额 |
|
|
|