From 74762fde11e56eaf684909c4a3a69cd25d309d1f Mon Sep 17 00:00:00 2001 From: yishiqihuasheng <1191093413@qq.com> Date: Mon, 22 May 2023 16:48:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=8B=E5=B7=A5=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E5=92=8C=E8=AE=A4=E8=AF=81=E6=9F=A5=E8=AF=A2=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../export/impl/RzFpxxServiceImpl.java | 2 +- .../src/main/resources/mapper/FpZhMapper.xml | 101 +++++------------- 2 files changed, 27 insertions(+), 76 deletions(-) diff --git a/dxhy-core/src/main/java/com/dxhy/core/service/export/impl/RzFpxxServiceImpl.java b/dxhy-core/src/main/java/com/dxhy/core/service/export/impl/RzFpxxServiceImpl.java index f421f90c..b01ef5f3 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/service/export/impl/RzFpxxServiceImpl.java +++ b/dxhy-core/src/main/java/com/dxhy/core/service/export/impl/RzFpxxServiceImpl.java @@ -71,7 +71,7 @@ public class RzFpxxServiceImpl extends MpBaseServiceImpl List returnList = new ArrayList<>(); if (resultList != null && resultList.size() > 0) { for (int i = 0; i < pageList.size(); i++) { - String[] dataArray = new String[21]; + String[] dataArray = new String[23]; dataArray[0] = String.valueOf((curr - 1) * size + i + 1); dataArray[1] = pageList.get(i).getInvoiceCode(); dataArray[2] = pageList.get(i).getInvoiceNo(); diff --git a/dxhy-core/src/main/resources/mapper/FpZhMapper.xml b/dxhy-core/src/main/resources/mapper/FpZhMapper.xml index c5a28cc7..b066e363 100644 --- a/dxhy-core/src/main/resources/mapper/FpZhMapper.xml +++ b/dxhy-core/src/main/resources/mapper/FpZhMapper.xml @@ -101,71 +101,47 @@ #{item} - - and t.comp_code = #{companyCodes} - - - and (t.comp_code = '' or t.comp_code is null) - - - + and t.invoice_status = #{invoiceStatus} and t.voucher_number like concat('%',concat(#{voucherNumber},'%')) - - and t.bzdh = #{bzdh} - - - and t.bzr like concat('%',#{bzr},'%') - - - and t.inaccount_status = #{inAccountStatus} - and t.qs_status = #{qszt} - + and t.qs_type = #{qsfs} - - and rzh_yesorno = '0' and date_format(t.invoice_date,'%Y-%m-%d') between #{wrzfpStart} and #{wrzfpEnd} - - + and date_format(t.qs_date,'%Y-%m-%d') between #{qsksrq} and #{qsjsrq} and date_format(t.rzh_date,'%Y-%m-%d') between #{rzksrq} and #{rzjsrq} - - and date_format(t.account_period,'%Y-%m') between #{accountPeriodStart} and #{accountPeriodEnd} - - - and date_format(t.posting_time,'%Y-%m-%d') between #{postingTimeStart} and #{postingTimeEnd} - - + and t.rzh_yesorno = #{rzzt} - - and (t.rzh_yesorno = '1' or t.rzh_yesorno = '2') + + and t.auth_status = #{rzclzt} - - and t.image_id = #{imageId} + + = #{paymentDateStart} ]]> - - and t.auth_status = #{rzclzt} + + - - and t.bdk_status = #{rzlx} + + and t.payment_status = #{paymentStatus} - - and (t.invoice_type = '14' or (t.invoice_type = '32' and t.lq_tdyslxDm='08') ) + + and t.bdk_status = #{rzlx} - + and t.invoice_type = #{invoiceType} @@ -174,15 +150,8 @@ and t.ele_invoice_no = #{eleInvoiceNo} - - and t.qs_type = #{qsfs} - - and t.xf_name like concat(#{xfmc},'%') - - - and t.qs_name = #{qsr} + and t.xf_name like CONCAT(#{xfmc},'%') and t.confirm_user in @@ -191,25 +160,13 @@ + test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' "> and t.invoice_no = #{invoiceNo} - - = #{paymentDateStart} ]]> - - - - - - and t.payment_status = #{paymentStatus} - and t.rzh_belong_date = #{skssq} - - and t.sn_voucher_number = #{snVoucherNumber} - and t.dept_id = #{businessCode} @@ -224,20 +181,14 @@ ) or (t.dept_id is null or t.dept_id='' or t.dept_id='99')) - - - - - and t.sn_voucher_number = #{snVoucherNumber} - - - and t.posting_time between #{postingTimeStart} and #{postingTimeEnd} + + and t.in_account_status = #{inAccountStatus} - - and t.image_id = #{imageNumber} + + and t.company = #{company} - - and t.account_period = #{accountPeriod} + + and t.qs_name = #{qsr} order by t.rzh_date desc,t.invoice_date desc