bms2相关修改;
This commit is contained in:
+19
-1
@@ -1151,6 +1151,12 @@ public class ReconciliationImpl extends ServiceImpl<ReconciliationMapper, Reconc
|
||||
.map(TmsMakeOutInvoiceItem::getInvoiceValue)
|
||||
.filter(java.util.Objects::nonNull)
|
||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
|
||||
// 将 feeType 用、拼接起来
|
||||
String feeTypes = list.stream()
|
||||
.map(TmsMakeOutInvoiceItem::getFeeType)
|
||||
.filter(java.util.Objects::nonNull)
|
||||
.collect(java.util.stream.Collectors.joining("、"));
|
||||
String salesmanCodeNc=order.getSalesmanCodeNc();
|
||||
String salesmanId = order.getSalesmanId();
|
||||
String customerUserDept = reconciliationMapper.getCustomerUserDept(salesmanId);
|
||||
@@ -1181,7 +1187,19 @@ public class ReconciliationImpl extends ServiceImpl<ReconciliationMapper, Reconc
|
||||
item.setPurchaseorder("");
|
||||
item.setObjtype("0");
|
||||
item.setDirection("1");
|
||||
item.setScomment("业务部:"+appointShipper+"物流费");
|
||||
if (deptName != null && !deptName.isEmpty()) {
|
||||
if (feeTypes != null && !feeTypes.isEmpty()) {
|
||||
item.setScomment(deptName+":"+appointShipper+feeTypes);
|
||||
} else {
|
||||
item.setScomment(deptName+":"+appointShipper+feeTypes);
|
||||
}
|
||||
} else {
|
||||
if (feeTypes != null && !feeTypes.isEmpty()) {
|
||||
item.setScomment("业务部:"+appointShipper+feeTypes);
|
||||
} else {
|
||||
item.setScomment("业务部:"+appointShipper+feeTypes);
|
||||
}
|
||||
}
|
||||
item.setPk_currtype(settlementCurrencyNcCode);
|
||||
item.setMoney_cr(String.valueOf(totalInvoiceValue));
|
||||
item.setMoney_bal(String.valueOf(totalInvoiceValue));
|
||||
|
||||
Reference in New Issue
Block a user