bms2相关修改;
This commit is contained in:
+7
-7
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
+16
-2
@@ -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));
|
||||
|
||||
+1
-1
@@ -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("收款帐户名称")
|
||||
|
||||
+1
-1
@@ -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("收款帐户名称")
|
||||
|
||||
+1
-1
@@ -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("收款帐户名称")
|
||||
|
||||
+1
-1
@@ -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("收款帐户名称")
|
||||
|
||||
Reference in New Issue
Block a user