From 8a8664335cc927773628cbbedbd64dd42fa74a6c Mon Sep 17 00:00:00 2001
From: yishiqihuasheng <1191093413@qq.com>
Date: Wed, 17 May 2023 19:30:40 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E5=87=BAmapper?=
=?UTF-8?q?=E6=96=87=E4=BB=B6=E6=9D=A1=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../main/resources/mapper/CustomsMapper.xml | 7 +++-
.../main/resources/mapper/ExtPaperMapper.xml | 42 ++++++++++++++++---
.../main/resources/mapper/TicketMapper.xml | 21 ++++++++++
.../service/customs/CustomsServiceImpl.java | 9 +++-
.../main/resources/mapper/CustomsMapper.xml | 5 ++-
5 files changed, 73 insertions(+), 11 deletions(-)
diff --git a/dxhy-core/src/main/resources/mapper/CustomsMapper.xml b/dxhy-core/src/main/resources/mapper/CustomsMapper.xml
index 1872b5ee..965eecba 100644
--- a/dxhy-core/src/main/resources/mapper/CustomsMapper.xml
+++ b/dxhy-core/src/main/resources/mapper/CustomsMapper.xml
@@ -123,9 +123,12 @@
and t.rzh_type = #{rzhType}
-
+
and t.in_account_status = #{inAccountStatus}
+
+ and (t.in_account_status = '0' or t.in_account_status = '' or t.in_account_status is null)
+
and t.qs_type = #{qsfs}
@@ -140,7 +143,7 @@
and t.posting_time = #{postingTime}
- and t.image_id = #{imageId}
+ and t.image_id = #{imageNumber}
and t.account_period = #{accountPeriod}
diff --git a/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml b/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml
index fdfa6ec0..37824d4a 100644
--- a/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml
+++ b/dxhy-core/src/main/resources/mapper/ExtPaperMapper.xml
@@ -134,6 +134,30 @@
and qs_type = #{qsfs}
+
+ and sn_voucher_number = #{snVoucherNumber}
+
+
+
+ and posting_time between #{postingTimeStart} and #{postingTimeEnd}
+
+
+
+ and image_id = #{imageNumber}
+
+
+
+ and account_period = #{accountPeriod}
+
+
+ and inaccount_status = #{inAccountStatus}
+
+
+ and (inaccount_status = '0' or inaccount_status = '' or inaccount_status is null)
+
+
+ and bzdh = #{bzdh}
+
and (comp_code in
@@ -299,8 +323,11 @@
and t.qs_type = #{qsfs}
-
- and t.payment_status = #{inAccountStatus}
+
+ and t.inaccount_status = #{inAccountStatus}
+
+
+ and (t.inaccount_status = '0' or t.inaccount_status = '' or t.inaccount_status is null)
and DATE_FORMAT(t.payment_date,'%Y-%m') = #{inAccountMonth}
@@ -308,14 +335,17 @@
and t.invoice_source = #{invoiceSource}
+
+ and t.bzdh = #{bzdh}
+
and t.sn_voucher_number = #{snVoucherNumber}
-
- and t.posting_time = #{postingTime}
+
+ and t.posting_time between #{postingTimeStart} and #{postingTimeEnd}
-
- and t.image_id = #{imageId}
+
+ and t.image_id = #{imageNumber}
and t.account_period = #{accountPeriod}
diff --git a/dxhy-core/src/main/resources/mapper/TicketMapper.xml b/dxhy-core/src/main/resources/mapper/TicketMapper.xml
index ee19bbed..15251426 100644
--- a/dxhy-core/src/main/resources/mapper/TicketMapper.xml
+++ b/dxhy-core/src/main/resources/mapper/TicketMapper.xml
@@ -89,6 +89,27 @@
and t.company = #{company}
+
+ and t.posting_time between #{postingTimeStart} and #{postingTimeEnd}
+
+
+ and t.image_id = #{imageNumber}
+
+
+ and t.account_period = #{accountPeriod}
+
+
+ and t.inaccount_status = #{inAccountStatus}
+
+
+ and (t.inaccount_status = '0' or t.inaccount_status = '' or t.inaccount_status is null)
+
+
+ and t.bzdh = #{bzdh}
+
+
+ and t.sn_voucher_number = #{snVoucherNumber}
+
and (t.comp_code in
diff --git a/dxhy-extend/src/main/java/com/dxhy/extend/service/customs/CustomsServiceImpl.java b/dxhy-extend/src/main/java/com/dxhy/extend/service/customs/CustomsServiceImpl.java
index 9c1882b4..132cc1db 100644
--- a/dxhy-extend/src/main/java/com/dxhy/extend/service/customs/CustomsServiceImpl.java
+++ b/dxhy-extend/src/main/java/com/dxhy/extend/service/customs/CustomsServiceImpl.java
@@ -115,8 +115,13 @@ public class CustomsServiceImpl extends MpBaseServiceImpl
and t.rzh_type = #{rzhType}
-
+
and t.in_account_status = #{inAccountStatus}
+
+ and (t.in_account_status = '0' or t.in_account_status = '' or t.in_account_status is null)
+
and t.qs_type = #{qsfs}