|
|
@@ -227,9 +227,9 @@ public class CustomerServiceImpl extends CommonBaseServiceImpl<CustomerMapper, C
|
|
|
|
|
|
//限制关联单据不可修改金额
|
|
|
Customer customer1 = getMapper().selectByPrimaryKey(customer.getId());
|
|
|
- if (customer.getCu_beginaramount().doubleValue() != customer1.getCu_beginaramount().doubleValue() ||
|
|
|
+ if (customer.getCu_beginaramount()!=null&&(customer.getCu_beginaramount().doubleValue() != customer1.getCu_beginaramount().doubleValue() ||
|
|
|
customer.getCu_beginprerecamount().doubleValue() != customer1.getCu_beginprerecamount().doubleValue() ||
|
|
|
- customer1.getCu_begindate().compareTo(customer.getCu_begindate()) != 0){
|
|
|
+ customer1.getCu_begindate().compareTo(customer.getCu_begindate()) != 0)){
|
|
|
throw new BizException(BizExceptionCode.BIZ_RELUPDATE_AMOUNT);
|
|
|
}
|
|
|
}
|