bms2相关修改;

This commit is contained in:
王奎兴
2026-03-18 21:11:49 +08:00
parent f7ad001154
commit caf5adfc3e
11 changed files with 52 additions and 17 deletions
@@ -62,15 +62,15 @@ public class PaymentWalletApplicationService {
throw new DigitalLogisticsException(UserError.TIMEOUT);
}
//根据支付方式编码查询支付方式
if(!StringUtils.isNotEmpty(paymentWalletDO.getPaymentMethodCode())){
/*if(!StringUtils.isNotEmpty(paymentWalletDO.getPaymentMethodCode())){
throw new ServiceException("支付方式编码不能为空");
}
PaymentManage paymentManage = paymentManageDomainService.selectByPaymentCode(paymentWalletDO.getPaymentMethodCode());
}*/
/*PaymentManage paymentManage = paymentManageDomainService.selectByPaymentCode(paymentWalletDO.getPaymentMethodCode());
if(null == paymentManage){
throw new ServiceException("支付方式信息未找到");
}
paymentWalletDO.setPaymentMethod(paymentManage.getPaymentMethod());
paymentWalletDO.setPaymentManageId(paymentManage.getPaymentManageId());
}*/
//paymentWalletDO.setPaymentMethod(paymentManage.getPaymentMethod());
//paymentWalletDO.setPaymentManageId(paymentManage.getPaymentManageId());
paymentWalletDO.setTopOrganizationId(loginUser.getUserPo().getTopOrganizationId());
paymentWalletDO.setOrganizationId(loginUser.getUserPo().getOrganizationId());
paymentWalletDO.setOrganizationId(loginUser.getUserPo().getOrganizationId());
@@ -133,4 +133,4 @@ public class PaymentWalletApplicationService {
}
return paymentWalletDomainService.getInfo(paymentWalletDTO.getPaymentWalletId());
}
}
}
@@ -468,6 +468,12 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
.map(BmsMakeOutInvoiceItem::getInvoiceValue)
.filter(java.util.Objects::nonNull)
.reduce(BigDecimal.ZERO, BigDecimal::add);
// 将 feeType 用、拼接起来
String feeTypes = bmsMakeOutInvoiceItems.stream()
.map(BmsMakeOutInvoiceItem::getFeeType)
.filter(java.util.Objects::nonNull)
.collect(java.util.stream.Collectors.joining(""));
String salesmanId = reconciliation.getSalesmanId();
String customerUserDept = billManageMapper.getCustomerUserDept(salesmanId);
String deptValue = billManageMapper.getDeptValue(customerUserDept);
@@ -499,9 +505,17 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
item.setObjtype("0");
item.setDirection("1");
if (deptName != null && !deptName.isEmpty()) {
item.setScomment(deptName+""+appointShipper+"物流费");
if (feeTypes != null && !feeTypes.isEmpty()) {
item.setScomment(deptName+""+appointShipper+feeTypes);
} else {
item.setScomment(deptName+""+appointShipper+feeTypes);
}
} else {
item.setScomment("业务部:"+appointShipper+"物流费");
if (feeTypes != null && !feeTypes.isEmpty()) {
item.setScomment("业务部:"+appointShipper+feeTypes);
} else {
item.setScomment("业务部:"+appointShipper+feeTypes);
}
}
item.setPk_currtype(settlementCurrencyNcCode);
item.setMoney_cr(String.valueOf(totalInvoiceValue));
@@ -177,7 +177,7 @@ public class BusinessDocument extends BaseVOEntity{
@ApiModelProperty("业务员名称")
private String salesmanName;
@ApiModelProperty("税率")
private String taxRate;
private Double taxRate;
@ApiModelProperty("收款帐户")
private String paymentAccountId;
@ApiModelProperty("收款帐户名称")
@@ -182,7 +182,7 @@ public class BusinessDocumentPO extends BaseVOEntity{
@ApiModelProperty("业务员名称")
private String salesmanName;
@ApiModelProperty("税率")
private String taxRate;
private Double taxRate;
@ApiModelProperty("收款帐户")
private String paymentAccountId;
@ApiModelProperty("收款帐户名称")
@@ -202,7 +202,7 @@ public class BusinessDocumentDO extends BaseVOEntity{
@ApiModelProperty("业务员名称")
private String salesmanName;
@ApiModelProperty("税率")
private String taxRate;
private Double taxRate;
@ApiModelProperty("收款帐户")
private String paymentAccountId;
@ApiModelProperty("收款帐户名称")
@@ -208,7 +208,7 @@ public class BusinessDocumentDTO extends BaseVOEntity{
@ApiModelProperty("业务员名称")
private String salesmanName;
@ApiModelProperty("税率")
private String taxRate;
private Double taxRate;
@ApiModelProperty("收款帐户")
private String paymentAccountId;
@ApiModelProperty("收款帐户名称")