|
@@ -248,14 +248,21 @@ public class ProductInvoiceServiceImpl implements IProductInvoiceService {
|
|
|
//查询发货货品详情
|
|
|
List<ProductCodeListVO> productCodeListVOS = productOutboundRecordMapper.selectOutboundProduct(productInvoice.getNoticeNumber());
|
|
|
vo.setProductCodeListVOList(productCodeListVOS);
|
|
|
- //查询累计欠款
|
|
|
- List<Customer> customerList = customerMapper.customerList(new Customer());
|
|
|
- for (Customer customer : customerList){
|
|
|
- if(customer.getId() == productInvoice.getCustomerId()){
|
|
|
- vo.setAmounts(customer.getAmounts());
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
+ //查询客户累计欠款
|
|
|
+ Customer customer = customerMapper.selectCustomerById(productInvoice.getCustomerId());
|
|
|
+ vo.setAmounts(customer.getAmount());
|
|
|
+
|
|
|
+
|
|
|
+// List<Customer> customerList = customerMapper.customerList(new Customer());
|
|
|
+// for (Customer customer : customerList){
|
|
|
+// if(customer.getId() == productInvoice.getCustomerId()){
|
|
|
+// vo.setAmounts(customer.getAmounts());
|
|
|
+// break;
|
|
|
+// }
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return vo;
|
|
|
}
|
|
|
|