From b13791c922e82c3b929673743c939d44e686ba44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=A5=8E=E5=85=B4?= <2220574228@qq.com> Date: Tue, 24 Mar 2026 11:19:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8=E9=A1=B5=E9=9D=A2=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=AE=9E=E9=99=85=E5=BC=80=E7=A5=A8=E7=94=A8=E6=88=B7?= =?UTF-8?q?;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/vo/BmsInvoiceListVO.java | 2 +- .../main/resources/mapper/BmsInvoiceListMapper.xml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/mhd_bms/src/main/java/com/mhd/bms/domain/bmsInvoiceList/repository/vo/BmsInvoiceListVO.java b/mhd_bms/src/main/java/com/mhd/bms/domain/bmsInvoiceList/repository/vo/BmsInvoiceListVO.java index 7b55a68d8..7b21bbf2b 100644 --- a/mhd_bms/src/main/java/com/mhd/bms/domain/bmsInvoiceList/repository/vo/BmsInvoiceListVO.java +++ b/mhd_bms/src/main/java/com/mhd/bms/domain/bmsInvoiceList/repository/vo/BmsInvoiceListVO.java @@ -191,7 +191,7 @@ public class BmsInvoiceListVO implements Serializable { @ApiModelProperty(value = "账单管理id") private String billManageId; - + private String actualInvoiceCustomerName; public void setTransportationIds(String transportationIds) { this.transportationIds = transportationIds; this.transportationIdsNum = transportationIds.split(",").length; diff --git a/mhd_bms/src/main/resources/mapper/BmsInvoiceListMapper.xml b/mhd_bms/src/main/resources/mapper/BmsInvoiceListMapper.xml index 9707ed13c..04aece942 100644 --- a/mhd_bms/src/main/resources/mapper/BmsInvoiceListMapper.xml +++ b/mhd_bms/src/main/resources/mapper/BmsInvoiceListMapper.xml @@ -55,6 +55,13 @@ and a.remark LIKE CONCAT('%',#{bmsInvoiceListQueryDTO.remark},'%') + + and (SELECT + LISTAGG(ACTUAL_INVOICE_CUSTOMER_NAME, ', ') WITHIN GROUP (ORDER BY ACTUAL_INVOICE_CUSTOMER_NAME) as name + FROM BMS_MAKE_OUT_INVOICE + WHERE + INVOICE_ID = a.id) LIKE CONCAT('%',#{bmsInvoiceListQueryDTO.actualInvoiceCustomerName},'%') + and a.create_by = #{bmsInvoiceListQueryDTO.createBy} @@ -143,6 +150,11 @@ a.organization_id AS organizationId, a.organization_name AS organizationName, a.tax_reg_account AS taxRegAccount, + (SELECT + LISTAGG(ACTUAL_INVOICE_CUSTOMER_NAME, ', ') WITHIN GROUP (ORDER BY ACTUAL_INVOICE_CUSTOMER_NAME) as name + FROM BMS_MAKE_OUT_INVOICE + WHERE + INVOICE_ID = a.id) as actualInvoiceCustomerName, a.top_organization_id AS topOrganizationId