|
|
@@ -518,7 +518,7 @@ public class GoodsWholesalePayServiceImpl implements GoodsWholesalePayService {
|
|
|
returnWholesaleBalanceDiffer(orderDon, userIdList);
|
|
|
|
|
|
//余额使用记录
|
|
|
- if (orderDon.getBalance().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
+ if (orderDon.getBalance() != null && orderDon.getBalance().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
Long goodsId = orderDon.getGoodsId();
|
|
|
GoodsDon goodsDon = goodsDonMapper.selectById(goodsId);
|
|
|
userBenefitsService.recordBalanceBySource(orderDon.getUserId(), orderDon.getBalance().negate(), UserBalanceSourceRecord.Source.wholesale_order, orderDon.getId(), goodsDon.getTitle() + UserBalanceSourceRecord.Source.wholesale_order.getDesc());
|