Browse Source

feat(prodIoPay, apCheckAmount): 更新付款记录查询,发货金额查询

hejq 7 years ago
parent
commit
d61f153a65

+ 2 - 2
src/main/java/com/uas/platform/b2b/service/impl/ErpProdIODetailServiceImpl.java

@@ -230,7 +230,7 @@ public class ErpProdIODetailServiceImpl implements ErpProdIODetailService {
             currencySet.forEach(currency -> {
                 Double payment = ioDetailSet.stream().filter(detail -> currency.equals(detail.getCurrency()))
                     .mapToDouble(detail -> detail.getSendPrice() * detail.getSendQty()).sum();
-                amountList.add(new ApCheckAmount(currency, 100d));
+                amountList.add(new ApCheckAmount(currency, payment));
             });
         }
         return amountList;
@@ -263,7 +263,7 @@ public class ErpProdIODetailServiceImpl implements ErpProdIODetailService {
             currencySet.forEach(currency -> {
                 Double payment = detailSet.stream().filter(detail -> currency.equals(detail.getCurrency()) && null != detail.getPayment())
                     .mapToDouble(ErpProdIODetail::getPayment).sum();
-                amountList.add(new ApCheckAmount(currency, 100d));
+                amountList.add(new ApCheckAmount(currency, payment));
             });
             return amountList;
         } else {