|
|
@@ -237,10 +237,10 @@ public class RecbalanceServiceImpl implements RecbalanceService {
|
|
|
* cu_leftamount=cu_beginaramount-cu_beginprerecamount+cu_recamount-cu_preamount;
|
|
|
*/
|
|
|
Customer customerData = recbalanceMapper.selectCustomerByPrimaryKey(recbalance.getRb_custid());
|
|
|
- Double preamount = customerData.getCu_preamount();
|
|
|
- Double beginapamount = customerData.getCu_beginaramount();
|
|
|
- Double beginprepayamount= customerData.getCu_beginprerecamount();
|
|
|
- Double recamount = customerData.getCu_recamount();
|
|
|
+ Double preamount = customerData.getCu_preamount()==null?new Double(0):customerData.getCu_preamount();
|
|
|
+ Double beginapamount = customerData.getCu_beginaramount()==null?new Double(0):customerData.getCu_beginaramount();
|
|
|
+ Double beginprepayamount= customerData.getCu_beginprerecamount()==null?new Double(0):customerData.getCu_beginprerecamount();
|
|
|
+ Double recamount = customerData.getCu_recamount()==null?new Double(0):customerData.getCu_recamount();
|
|
|
|
|
|
Customer customer = new Customer();
|
|
|
customer.setId(Long.valueOf(String.valueOf(recbalance.getRb_custid())));
|
|
|
@@ -258,9 +258,9 @@ public class RecbalanceServiceImpl implements RecbalanceService {
|
|
|
* ve_payamount=nvl(ve_payamount,0)+pb_pbdamount,
|
|
|
* ve_leftamount=ve_beginapamount-ve_beginprepayamount+ve_payamount-ve_preamount;
|
|
|
*/
|
|
|
- Recbalance rec = recbalanceMapper.selectByPrimaryKey(Long.valueOf(id));
|
|
|
- Double pay_preamount = rec.getRb_preamount();
|
|
|
- Double pay_pbdamount = rec.getRb_rbdamount();
|
|
|
+ Recbalance rec = recbalanceMapper.selectByPrimaryKey(Math.toIntExact(id));
|
|
|
+ Double pay_preamount = rec.getRb_preamount()==null?new Double(0):rec.getRb_preamount();
|
|
|
+ Double pay_pbdamount = rec.getRb_rbdamount()==null?new Double(0):rec.getRb_rbdamount();
|
|
|
Customer customerData = recbalanceMapper.selectCustomerByPrimaryKey(rec.getRb_custid());
|
|
|
Double preamount = customerData.getCu_preamount()==null?(new Double(0)):customerData.getCu_preamount();
|
|
|
Double beginapamount = customerData.getCu_beginaramount()==null?new Double(0):customerData.getCu_beginaramount();
|