|
@@ -61,6 +61,9 @@ public class CustomerBillingServiceImpl implements CustomerBillingService {
|
|
if (!StringUtils.isEmpty(selectDTO.getPayNo())) {
|
|
if (!StringUtils.isEmpty(selectDTO.getPayNo())) {
|
|
wrapper.like("pay_no", selectDTO.getPayNo());
|
|
wrapper.like("pay_no", selectDTO.getPayNo());
|
|
}
|
|
}
|
|
|
|
+ if (!StringUtils.isEmpty(selectDTO.getCustomer())) {
|
|
|
|
+ wrapper.eq("customer", selectDTO.getCustomer());
|
|
|
|
+ }
|
|
if (!StringUtils.isEmpty(selectDTO.getBusinessType())) {
|
|
if (!StringUtils.isEmpty(selectDTO.getBusinessType())) {
|
|
wrapper.eq("business_type", selectDTO.getBusinessType());
|
|
wrapper.eq("business_type", selectDTO.getBusinessType());
|
|
}
|
|
}
|
|
@@ -222,9 +225,9 @@ public class CustomerBillingServiceImpl implements CustomerBillingService {
|
|
customerBillingDetailDO.setTruckCost(customerBillingInfoDTO.getTruckCost());
|
|
customerBillingDetailDO.setTruckCost(customerBillingInfoDTO.getTruckCost());
|
|
customerBillingDetailDO.setOtherExpenses(customerBillingInfoDTO.getOtherExpenses());
|
|
customerBillingDetailDO.setOtherExpenses(customerBillingInfoDTO.getOtherExpenses());
|
|
customerBillingDetailDO.setOtherCost(customerBillingInfoDTO.getOtherCost());
|
|
customerBillingDetailDO.setOtherCost(customerBillingInfoDTO.getOtherCost());
|
|
- customerBillingDetailDO.setPricePayable(customerBillingInfoDTO.getClearanceFee() + customerBillingInfoDTO.getTruck() + customerBillingInfoDTO.getOtherExpenses());
|
|
|
|
|
|
+ customerBillingDetailDO.setPricePayable((customerBillingInfoDTO.getClearanceFee()!=null?customerBillingInfoDTO.getClearanceFee():0) + (customerBillingInfoDTO.getTruck()!=null?customerBillingInfoDTO.getTruck():0) + (customerBillingInfoDTO.getOtherExpenses()!=null?customerBillingInfoDTO.getOtherExpenses():0));
|
|
amount = amount + customerBillingDetailDO.getPricePayable();
|
|
amount = amount + customerBillingDetailDO.getPricePayable();
|
|
- customerBillingDetailDO.setCost(customerBillingInfoDTO.getClearanceCost() + customerBillingInfoDTO.getTruckCost() + customerBillingInfoDTO.getOtherCost());
|
|
|
|
|
|
+ customerBillingDetailDO.setCost((customerBillingInfoDTO.getClearanceCost()!=null?customerBillingInfoDTO.getClearanceCost():0) + (customerBillingInfoDTO.getTruckCost()!=null?customerBillingInfoDTO.getTruckCost():0) + (customerBillingInfoDTO.getOtherCost()!=null?customerBillingInfoDTO.getOtherCost():0));
|
|
// cost =cost+customerBillingDetailDO.getCost();
|
|
// cost =cost+customerBillingDetailDO.getCost();
|
|
customerBillingDetailDO.setGmtUpdate(now);
|
|
customerBillingDetailDO.setGmtUpdate(now);
|
|
customerBillingDetailDO.setGmtCreate(now);
|
|
customerBillingDetailDO.setGmtCreate(now);
|