| | |
| | | aftersale.setCode(getNextInCode()); |
| | | |
| | | //订单退回返回给经销商的积分 |
| | | if(Objects.nonNull(goodsorder.getDistributionShopId())&&goodsorder.getReturnCustomerIntegral().compareTo(BigDecimal.ZERO)>Constants.ZERO){ |
| | | if(Objects.nonNull(goodsorder.getDistributionShopId())){ |
| | | Shop shop = shopMapper.selectById(goodsorder.getDistributionShopId()); |
| | | //经销商存在剩余积分 |
| | | if(Objects.nonNull(shop)&&shop.getIntegral().compareTo(BigDecimal.ZERO)>Constants.ZERO){ |
| | |
| | | } |
| | | |
| | | //订单退回 经销商结算余额 |
| | | if(Objects.nonNull(goodsorder.getDistributionShopId())&&goodsorder.getShopSettlement().compareTo(BigDecimal.ZERO)>Constants.ZERO){ |
| | | if(Objects.nonNull(goodsorder.getDistributionShopId())){ |
| | | Shop shop = shopMapper.selectById(goodsorder.getDistributionShopId()); |
| | | //经销商存在剩余积分 |
| | | if(Objects.nonNull(shop)&&shop.getAmount().compareTo(BigDecimal.ZERO)>Constants.ZERO){ |
| | |
| | | } |
| | | |
| | | //订单退回 返还给客户的积分 |
| | | if(Objects.nonNull(goodsorder.getDistributionShopId())&&goodsorder.getReturnMemberIntegral().compareTo(BigDecimal.ZERO)>Constants.ZERO){ |
| | | if(Objects.nonNull(goodsorder.getDistributionShopId())){ |
| | | Member member = memberMapper.selectById(goodsorder.getMemberId()); |
| | | //客户存在剩余积分 |
| | | if(Objects.nonNull(member)&&member.getIntegral().compareTo(BigDecimal.ZERO)>Constants.ZERO){ |