|
@@ -159,7 +159,18 @@ public class CollectionPaymentServiceImpl implements CollectionPaymentService {
|
|
|
insertDO.setGmtUpdate(now);
|
|
|
insertDO.setGmtCreate(now);
|
|
|
insertDO.setStatus(0);
|
|
|
+ insertDO.setPayNo(getlinkNo());
|
|
|
collectionPaymentMapper.insert(insertDO);
|
|
|
+ if ("1".equalsIgnoreCase(insertDO.getBusinessType())) {
|
|
|
+ // 客户已付联动
|
|
|
+ CustomerInfoDO customerInfoDO1 = new CustomerInfoDO();
|
|
|
+ customerInfoDO1.setCustomer(insertDO.getReceivingWithdrawingPeople());
|
|
|
+ CustomerInfoDO customerInfoDO = customerInfoMapper.selectOne(customerInfoDO1);
|
|
|
+ if (customerInfoDO != null) {
|
|
|
+ customerInfoDO.setUnpaidAmount(insertDO.getDeductionEuro()+(customerInfoDO.getUnpaidAmount()!= null?customerInfoDO.getUnpaidAmount():0));
|
|
|
+ }
|
|
|
+ customerInfoMapper.updateById(customerInfoDO);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|