| @@ -121,8 +121,8 @@ public class WxBillDepositServiceImpl implements WxBillDepositService { | |||||
| @Override | @Override | ||||
| public ResultData saveOrUpdate(WxBillDeposit record, MallUserInfo user) { | public ResultData saveOrUpdate(WxBillDeposit record, MallUserInfo user) { | ||||
| int receivepay = record.getReceivePay().intValue(); | |||||
| int pay = record.getPay().intValue(); | |||||
| int receivepay = record.getReceivePay()==null?0:record.getReceivePay().intValue(); | |||||
| int pay = record.getPay()==null?0:record.getPay().intValue(); | |||||
| if(pay>receivepay){ | if(pay>receivepay){ | ||||
| return new ResultData(ErrorCode.BILL_PAY_ERROR.getCode(), "实收金额不能大于实际应收金额"); | return new ResultData(ErrorCode.BILL_PAY_ERROR.getCode(), "实收金额不能大于实际应收金额"); | ||||
| } | } | ||||
| @@ -135,8 +135,8 @@ public class WxBillOtherDepositServiceImpl implements WxBillOtherDepositService | |||||
| @Override | @Override | ||||
| public ResultData saveOrUpdate(WxBillOtherDeposit record, MallUserInfo user) { | public ResultData saveOrUpdate(WxBillOtherDeposit record, MallUserInfo user) { | ||||
| int receivepay = record.getReceivePay().intValue(); | |||||
| int pay = record.getPay().intValue(); | |||||
| int receivepay = record.getReceivePay()==null?0:record.getReceivePay().intValue(); | |||||
| int pay = record.getPay()==null?0:record.getPay().intValue(); | |||||
| if (pay > receivepay) { | if (pay > receivepay) { | ||||
| return new ResultData(ErrorCode.BILL_PAY_ERROR.getCode(), "实收金额不能大于实际应收金额"); | return new ResultData(ErrorCode.BILL_PAY_ERROR.getCode(), "实收金额不能大于实际应收金额"); | ||||
| } | } | ||||
| @@ -137,8 +137,8 @@ public class WxBillOtherServiceImpl implements WxBillOtherService { | |||||
| @Override | @Override | ||||
| public ResultData saveOrUpdate(WxBillOther record, MallUserInfo user) { | public ResultData saveOrUpdate(WxBillOther record, MallUserInfo user) { | ||||
| int receivepay = record.getReceivePay().intValue(); | |||||
| int pay = record.getPay().intValue(); | |||||
| int receivepay = record.getReceivePay()==null?0:record.getReceivePay().intValue(); | |||||
| int pay = record.getPay()==null?0:record.getPay().intValue(); | |||||
| if(pay>receivepay){ | if(pay>receivepay){ | ||||
| return new ResultData(ErrorCode.BILL_PAY_ERROR,"实收金额不能大于实际应收金额"); | return new ResultData(ErrorCode.BILL_PAY_ERROR,"实收金额不能大于实际应收金额"); | ||||
| } | } | ||||
| @@ -120,8 +120,8 @@ public class WxBillPropertyDepositServiceImpl implements WxBillPropertyDepositSe | |||||
| @Override | @Override | ||||
| public ResultData saveOrUpdate(WxBillPropertyDeposit record, MallUserInfo user) { | public ResultData saveOrUpdate(WxBillPropertyDeposit record, MallUserInfo user) { | ||||
| int receivepay = record.getReceivePay().intValue(); | |||||
| int pay = record.getPay().intValue(); | |||||
| int receivepay = record.getReceivePay()==null?0:record.getReceivePay().intValue(); | |||||
| int pay = record.getPay()==null?0:record.getPay().intValue(); | |||||
| if(pay>receivepay){ | if(pay>receivepay){ | ||||
| return new ResultData(ErrorCode.BILL_PAY_ERROR.getCode(), "实收金额不能大于实际应收金额"); | return new ResultData(ErrorCode.BILL_PAY_ERROR.getCode(), "实收金额不能大于实际应收金额"); | ||||
| } | } | ||||
| @@ -130,8 +130,8 @@ public class WxBillPropertyServiceImpl implements WxBillPropertyService { | |||||
| @Override | @Override | ||||
| public ResultData saveOrUpdate(WxBillProperty record, MallUserInfo user) { | public ResultData saveOrUpdate(WxBillProperty record, MallUserInfo user) { | ||||
| int receivepay = record.getReceivePay().intValue(); | |||||
| int pay = record.getPay().intValue(); | |||||
| int receivepay = record.getReceivePay()==null?0:record.getReceivePay().intValue(); | |||||
| int pay = record.getPay()==null?0:record.getPay().intValue(); | |||||
| if(pay>receivepay){ | if(pay>receivepay){ | ||||
| return new ResultData(ErrorCode.BILL_PAY_ERROR,"实收金额不能大于实际应收金额"); | return new ResultData(ErrorCode.BILL_PAY_ERROR,"实收金额不能大于实际应收金额"); | ||||
| } | } | ||||
| @@ -134,8 +134,8 @@ public class WxBillRentServiceImpl implements WxBillRentService { | |||||
| @Override | @Override | ||||
| public ResultData saveOrUpdate(WxBillRent record, MallUserInfo user) { | public ResultData saveOrUpdate(WxBillRent record, MallUserInfo user) { | ||||
| int receivepay = record.getReceivePay().intValue(); | |||||
| int pay = record.getPay().intValue(); | |||||
| int receivepay = record.getReceivePay()==null?0:record.getReceivePay().intValue(); | |||||
| int pay = record.getPay()==null?0:record.getPay().intValue(); | |||||
| if(pay>receivepay){ | if(pay>receivepay){ | ||||
| return new ResultData(ErrorCode.BILL_PAY_ERROR,"实收金额不能大于实际应收金额"); | return new ResultData(ErrorCode.BILL_PAY_ERROR,"实收金额不能大于实际应收金额"); | ||||
| } | } | ||||