Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -75,6 +75,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<sql id="selectLeasePo1">
|
<sql id="selectLeasePo1">
|
||||||
<where>
|
<where>
|
||||||
<!-- 租赁查询条件 -->
|
<!-- 租赁查询条件 -->
|
||||||
|
<if test="id != null ">
|
||||||
|
and a.id = #{id}
|
||||||
|
</if>
|
||||||
<if test="organizationId != null ">
|
<if test="organizationId != null ">
|
||||||
and a.organization_id = #{organizationId}
|
and a.organization_id = #{organizationId}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
+1
-1
@@ -790,7 +790,7 @@ public class UserApplicationService {
|
|||||||
userDO.setUserAuthStatus(1);
|
userDO.setUserAuthStatus(1);
|
||||||
//删除标记:0-无状态,1-正常,2-已删除
|
//删除标记:0-无状态,1-正常,2-已删除
|
||||||
userDO.setDelFlag(1);
|
userDO.setDelFlag(1);
|
||||||
userDO.setBusinessType(1);
|
userDO.setBusinessType(4);
|
||||||
if (ObjectUtil.isNull(userDO.getUserAccount()) && ObjectUtil.isNotNull(userDO.getUserPhone())) {
|
if (ObjectUtil.isNull(userDO.getUserAccount()) && ObjectUtil.isNotNull(userDO.getUserPhone())) {
|
||||||
userDO.setUserAccount(userDO.getUserPhone());
|
userDO.setUserAccount(userDO.getUserPhone());
|
||||||
}
|
}
|
||||||
|
|||||||
+7
-7
@@ -62,15 +62,15 @@ public class PaymentWalletApplicationService {
|
|||||||
throw new DigitalLogisticsException(UserError.TIMEOUT);
|
throw new DigitalLogisticsException(UserError.TIMEOUT);
|
||||||
}
|
}
|
||||||
//根据支付方式编码查询支付方式
|
//根据支付方式编码查询支付方式
|
||||||
if(!StringUtils.isNotEmpty(paymentWalletDO.getPaymentMethodCode())){
|
/*if(!StringUtils.isNotEmpty(paymentWalletDO.getPaymentMethodCode())){
|
||||||
throw new ServiceException("支付方式编码不能为空");
|
throw new ServiceException("支付方式编码不能为空");
|
||||||
}
|
}*/
|
||||||
PaymentManage paymentManage = paymentManageDomainService.selectByPaymentCode(paymentWalletDO.getPaymentMethodCode());
|
/*PaymentManage paymentManage = paymentManageDomainService.selectByPaymentCode(paymentWalletDO.getPaymentMethodCode());
|
||||||
if(null == paymentManage){
|
if(null == paymentManage){
|
||||||
throw new ServiceException("支付方式信息未找到");
|
throw new ServiceException("支付方式信息未找到");
|
||||||
}
|
}*/
|
||||||
paymentWalletDO.setPaymentMethod(paymentManage.getPaymentMethod());
|
//paymentWalletDO.setPaymentMethod(paymentManage.getPaymentMethod());
|
||||||
paymentWalletDO.setPaymentManageId(paymentManage.getPaymentManageId());
|
//paymentWalletDO.setPaymentManageId(paymentManage.getPaymentManageId());
|
||||||
paymentWalletDO.setTopOrganizationId(loginUser.getUserPo().getTopOrganizationId());
|
paymentWalletDO.setTopOrganizationId(loginUser.getUserPo().getTopOrganizationId());
|
||||||
paymentWalletDO.setOrganizationId(loginUser.getUserPo().getOrganizationId());
|
paymentWalletDO.setOrganizationId(loginUser.getUserPo().getOrganizationId());
|
||||||
paymentWalletDO.setOrganizationId(loginUser.getUserPo().getOrganizationId());
|
paymentWalletDO.setOrganizationId(loginUser.getUserPo().getOrganizationId());
|
||||||
@@ -133,4 +133,4 @@ public class PaymentWalletApplicationService {
|
|||||||
}
|
}
|
||||||
return paymentWalletDomainService.getInfo(paymentWalletDTO.getPaymentWalletId());
|
return paymentWalletDomainService.getInfo(paymentWalletDTO.getPaymentWalletId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+16
-2
@@ -468,6 +468,12 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
|
|||||||
.map(BmsMakeOutInvoiceItem::getInvoiceValue)
|
.map(BmsMakeOutInvoiceItem::getInvoiceValue)
|
||||||
.filter(java.util.Objects::nonNull)
|
.filter(java.util.Objects::nonNull)
|
||||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
.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 salesmanId = reconciliation.getSalesmanId();
|
||||||
String customerUserDept = billManageMapper.getCustomerUserDept(salesmanId);
|
String customerUserDept = billManageMapper.getCustomerUserDept(salesmanId);
|
||||||
String deptValue = billManageMapper.getDeptValue(customerUserDept);
|
String deptValue = billManageMapper.getDeptValue(customerUserDept);
|
||||||
@@ -499,9 +505,17 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
|
|||||||
item.setObjtype("0");
|
item.setObjtype("0");
|
||||||
item.setDirection("1");
|
item.setDirection("1");
|
||||||
if (deptName != null && !deptName.isEmpty()) {
|
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 {
|
} else {
|
||||||
item.setScomment("业务部:"+appointShipper+"物流费");
|
if (feeTypes != null && !feeTypes.isEmpty()) {
|
||||||
|
item.setScomment("业务部:"+appointShipper+feeTypes);
|
||||||
|
} else {
|
||||||
|
item.setScomment("业务部:"+appointShipper+feeTypes);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
item.setPk_currtype(settlementCurrencyNcCode);
|
item.setPk_currtype(settlementCurrencyNcCode);
|
||||||
item.setMoney_cr(String.valueOf(totalInvoiceValue));
|
item.setMoney_cr(String.valueOf(totalInvoiceValue));
|
||||||
|
|||||||
+1
-1
@@ -177,7 +177,7 @@ public class BusinessDocument extends BaseVOEntity{
|
|||||||
@ApiModelProperty("业务员名称")
|
@ApiModelProperty("业务员名称")
|
||||||
private String salesmanName;
|
private String salesmanName;
|
||||||
@ApiModelProperty("税率")
|
@ApiModelProperty("税率")
|
||||||
private String taxRate;
|
private Double taxRate;
|
||||||
@ApiModelProperty("收款帐户")
|
@ApiModelProperty("收款帐户")
|
||||||
private String paymentAccountId;
|
private String paymentAccountId;
|
||||||
@ApiModelProperty("收款帐户名称")
|
@ApiModelProperty("收款帐户名称")
|
||||||
|
|||||||
+1
-1
@@ -182,7 +182,7 @@ public class BusinessDocumentPO extends BaseVOEntity{
|
|||||||
@ApiModelProperty("业务员名称")
|
@ApiModelProperty("业务员名称")
|
||||||
private String salesmanName;
|
private String salesmanName;
|
||||||
@ApiModelProperty("税率")
|
@ApiModelProperty("税率")
|
||||||
private String taxRate;
|
private Double taxRate;
|
||||||
@ApiModelProperty("收款帐户")
|
@ApiModelProperty("收款帐户")
|
||||||
private String paymentAccountId;
|
private String paymentAccountId;
|
||||||
@ApiModelProperty("收款帐户名称")
|
@ApiModelProperty("收款帐户名称")
|
||||||
|
|||||||
+1
-1
@@ -202,7 +202,7 @@ public class BusinessDocumentDO extends BaseVOEntity{
|
|||||||
@ApiModelProperty("业务员名称")
|
@ApiModelProperty("业务员名称")
|
||||||
private String salesmanName;
|
private String salesmanName;
|
||||||
@ApiModelProperty("税率")
|
@ApiModelProperty("税率")
|
||||||
private String taxRate;
|
private Double taxRate;
|
||||||
@ApiModelProperty("收款帐户")
|
@ApiModelProperty("收款帐户")
|
||||||
private String paymentAccountId;
|
private String paymentAccountId;
|
||||||
@ApiModelProperty("收款帐户名称")
|
@ApiModelProperty("收款帐户名称")
|
||||||
|
|||||||
+1
-1
@@ -208,7 +208,7 @@ public class BusinessDocumentDTO extends BaseVOEntity{
|
|||||||
@ApiModelProperty("业务员名称")
|
@ApiModelProperty("业务员名称")
|
||||||
private String salesmanName;
|
private String salesmanName;
|
||||||
@ApiModelProperty("税率")
|
@ApiModelProperty("税率")
|
||||||
private String taxRate;
|
private Double taxRate;
|
||||||
@ApiModelProperty("收款帐户")
|
@ApiModelProperty("收款帐户")
|
||||||
private String paymentAccountId;
|
private String paymentAccountId;
|
||||||
@ApiModelProperty("收款帐户名称")
|
@ApiModelProperty("收款帐户名称")
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND a.reconciliation_status = #{billManageDO.reconciliationStatus}
|
AND a.reconciliation_status = #{billManageDO.reconciliationStatus}
|
||||||
</if>
|
</if>
|
||||||
<if test="billManageDO.applyNumber != null and billManageDO.applyNumber != ''">
|
<if test="billManageDO.applyNumber != null and billManageDO.applyNumber != ''">
|
||||||
AND a.apply_number = #{billManageDO.applyNumber}
|
AND a.apply_number like concat('%', #{billManageDO.applyNumber}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="billManageDO.settlementCurrency != null and billManageDO.settlementCurrency != ''">
|
<if test="billManageDO.settlementCurrency != null and billManageDO.settlementCurrency != ''">
|
||||||
AND a.settlement_currency = #{billManageDO.settlementCurrency}
|
AND a.settlement_currency = #{billManageDO.settlementCurrency}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
</select>
|
</select>
|
||||||
<sql id="common_where">
|
<sql id="common_where">
|
||||||
<if test="bmsInvoiceListQueryDTO.id !=null and bmsInvoiceListQueryDTO.id != ''"> and a.id = #{bmsInvoiceListQueryDTO.id} </if>
|
<if test="bmsInvoiceListQueryDTO.id !=null and bmsInvoiceListQueryDTO.id != ''"> and a.id = #{bmsInvoiceListQueryDTO.id} </if>
|
||||||
<if test="bmsInvoiceListQueryDTO.billNumber !=null and bmsInvoiceListQueryDTO.billNumber != ''"> and b.bill_number = #{bmsInvoiceListQueryDTO.billNumber} </if>
|
<if test="bmsInvoiceListQueryDTO.billNumber !=null and bmsInvoiceListQueryDTO.billNumber != ''"> and b.bill_number like concat('%', #{bmsInvoiceListQueryDTO.billNumber}, '%') </if>
|
||||||
<if test="bmsInvoiceListQueryDTO.id!=null and bmsInvoiceListQueryDTO.id!=''"> and instr(a.id ,#{bmsInvoiceListQueryDTO.id}) > 0 </if>
|
<if test="bmsInvoiceListQueryDTO.id!=null and bmsInvoiceListQueryDTO.id!=''"> and instr(a.id ,#{bmsInvoiceListQueryDTO.id}) > 0 </if>
|
||||||
<if test="bmsInvoiceListQueryDTO.invoiceState!=null"> and instr(a.invoice_state ,#{bmsInvoiceListQueryDTO.invoiceState}) > 0 </if>
|
<if test="bmsInvoiceListQueryDTO.invoiceState!=null"> and instr(a.invoice_state ,#{bmsInvoiceListQueryDTO.invoiceState}) > 0 </if>
|
||||||
<if test="bmsInvoiceListQueryDTO.createStartTime!=null and bmsInvoiceListQueryDTO.createEndTime!=null ">
|
<if test="bmsInvoiceListQueryDTO.createStartTime!=null and bmsInvoiceListQueryDTO.createEndTime!=null ">
|
||||||
|
|||||||
+19
-1
@@ -1151,6 +1151,12 @@ public class ReconciliationImpl extends ServiceImpl<ReconciliationMapper, Reconc
|
|||||||
.map(TmsMakeOutInvoiceItem::getInvoiceValue)
|
.map(TmsMakeOutInvoiceItem::getInvoiceValue)
|
||||||
.filter(java.util.Objects::nonNull)
|
.filter(java.util.Objects::nonNull)
|
||||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
.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 salesmanCodeNc=order.getSalesmanCodeNc();
|
||||||
String salesmanId = order.getSalesmanId();
|
String salesmanId = order.getSalesmanId();
|
||||||
String customerUserDept = reconciliationMapper.getCustomerUserDept(salesmanId);
|
String customerUserDept = reconciliationMapper.getCustomerUserDept(salesmanId);
|
||||||
@@ -1181,7 +1187,19 @@ public class ReconciliationImpl extends ServiceImpl<ReconciliationMapper, Reconc
|
|||||||
item.setPurchaseorder("");
|
item.setPurchaseorder("");
|
||||||
item.setObjtype("0");
|
item.setObjtype("0");
|
||||||
item.setDirection("1");
|
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.setPk_currtype(settlementCurrencyNcCode);
|
||||||
item.setMoney_cr(String.valueOf(totalInvoiceValue));
|
item.setMoney_cr(String.valueOf(totalInvoiceValue));
|
||||||
item.setMoney_bal(String.valueOf(totalInvoiceValue));
|
item.setMoney_bal(String.valueOf(totalInvoiceValue));
|
||||||
|
|||||||
Reference in New Issue
Block a user