|
|
|
@@ -1040,19 +1040,19 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
|
createNewBill = false; |
|
|
|
needpay = uneedPay.toPlainString(); |
|
|
|
//此处取高的比提成高,如果之前有将参与取高的账单设置为已删除,则需要恢复 |
|
|
|
wxAllBillMapper.setIsDel(rentcontract.getTenantId(),dto.getBillIds(),EnumYesOrNo.NO.getCode(),EnumYesOrNo.YES.getCode()); |
|
|
|
wxAllBillMapper.setIsDel(rentcontract.getTenantId(),dto.getBillIds(),EnumYesOrNo.NO.getCode(),EnumYesOrNo.YES.getCode(),""); |
|
|
|
}else { |
|
|
|
//取高比扣点低 |
|
|
|
if (null != dto.getBillIds() && dto.getBillIds().size() > 0 ) { |
|
|
|
//如果提成的比参与取高的款项高,将这些参与取高的账单设置为已删除 |
|
|
|
wxAllBillMapper.setIsDel(rentcontract.getTenantId(),dto.getBillIds(),EnumYesOrNo.YES.getCode(),null); |
|
|
|
wxAllBillMapper.setIsDel(rentcontract.getTenantId(),dto.getBillIds(),EnumYesOrNo.YES.getCode(),null,"录入销售额取高,该账单已删除"); |
|
|
|
} |
|
|
|
} |
|
|
|
}else { |
|
|
|
//无取高费用 |
|
|
|
if (null != dto.getBillIds() && dto.getBillIds().size() > 0 ) { |
|
|
|
//如果提成的比参与取高的款项高,将这些参与取高的账单设置为已删除 |
|
|
|
wxAllBillMapper.setIsDel(rentcontract.getTenantId(),dto.getBillIds(),EnumYesOrNo.YES.getCode(),null); |
|
|
|
wxAllBillMapper.setIsDel(rentcontract.getTenantId(),dto.getBillIds(),EnumYesOrNo.YES.getCode(),null,"录入销售额取高,该账单已删除"); |
|
|
|
} |
|
|
|
} |
|
|
|
sb.append("取高后总金额为:["+needpay+"]."); |
|
|
|
|