发票页面添加实际开票用户;

This commit is contained in:
王奎兴
2026-03-24 11:19:25 +08:00
parent 17abc106ca
commit b13791c922
2 changed files with 13 additions and 1 deletions
@@ -55,6 +55,13 @@
<if test="bmsInvoiceListQueryDTO.remark !=null and bmsInvoiceListQueryDTO.remark != ''">
and a.remark LIKE CONCAT('%',#{bmsInvoiceListQueryDTO.remark},'%')
</if>
<if test="bmsInvoiceListQueryDTO.actualInvoiceCustomerName != null and bmsInvoiceListQueryDTO.actualInvoiceCustomerName != ''">
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},'%')
</if>
<if test="bmsInvoiceListQueryDTO.createBy !=null and bmsInvoiceListQueryDTO.createBy != ''"> and a.create_by = #{bmsInvoiceListQueryDTO.createBy} </if>
<!-- 部门 -->
<if test="bmsInvoiceListQueryDTO.sysOrgCode!=null and bmsInvoiceListQueryDTO.sysOrgCode!=''">
@@ -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
</sql>
<sql id="field_where2">