From 0ff56d5fa043d901ac4af5f55787dbe2f09a9384 Mon Sep 17 00:00:00 2001 From: yishiqihuasheng <1191093413@qq.com> Date: Wed, 10 May 2023 10:53:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9mapper=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dxhy/extend/entity/ExtOtherInvoice.java | 1 + .../pool/ExtInvoicePoolServiceImpl.java | 4 ++-- .../resources/mapper/ExtInvoicePoolMapper.xml | 23 +++++++++++++++---- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/dxhy-extend/src/main/java/com/dxhy/extend/entity/ExtOtherInvoice.java b/dxhy-extend/src/main/java/com/dxhy/extend/entity/ExtOtherInvoice.java index c9ad1d03..47e9ec2e 100644 --- a/dxhy-extend/src/main/java/com/dxhy/extend/entity/ExtOtherInvoice.java +++ b/dxhy-extend/src/main/java/com/dxhy/extend/entity/ExtOtherInvoice.java @@ -71,4 +71,5 @@ public class ExtOtherInvoice implements Serializable { private String inAccountStatus; private String bzdh; private String snVoucherNumber; + private String compCode; } diff --git a/dxhy-extend/src/main/java/com/dxhy/extend/service/pool/ExtInvoicePoolServiceImpl.java b/dxhy-extend/src/main/java/com/dxhy/extend/service/pool/ExtInvoicePoolServiceImpl.java index 977abb1e..ac23168e 100644 --- a/dxhy-extend/src/main/java/com/dxhy/extend/service/pool/ExtInvoicePoolServiceImpl.java +++ b/dxhy-extend/src/main/java/com/dxhy/extend/service/pool/ExtInvoicePoolServiceImpl.java @@ -217,10 +217,10 @@ public class ExtInvoicePoolServiceImpl extends MpBaseServiceImpl AND CONCAT(IFNULL(invoice_code,''),IFNULL(invoice_no,'')) like CONCAT('%',#{keyWord},'%') - AND gf_tax_no in - - #{item} - + + + + AND invoice_type = #{invoiceType} @@ -317,6 +317,12 @@ and sn_voucher_number = #{snVoucherNumber} + + and comp_code = #{companyCode} + + + and (comp_code is null or comp_code = '') + GROUP BY uuid having min(create_date) ) t