From 2fa31d607ca3f428cf675873f133bae7181f25ac Mon Sep 17 00:00:00 2001 From: yishiqihuasheng <1191093413@qq.com> Date: Mon, 22 May 2023 16:06:48 +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 --- .../java/com/dxhy/core/model/FpRzRespVO.java | 2 + .../export/impl/RzFpxxServiceImpl.java | 3 +- .../dxhy/core/thread/ManualAthensThread.java | 10 +- .../dxhy/core/thread/RzFpxxExportThread.java | 9 +- .../src/main/resources/mapper/FpZhMapper.xml | 107 +++++++++++++----- 5 files changed, 95 insertions(+), 36 deletions(-) diff --git a/dxhy-core/src/main/java/com/dxhy/core/model/FpRzRespVO.java b/dxhy-core/src/main/java/com/dxhy/core/model/FpRzRespVO.java index a990e26a..52199b45 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/model/FpRzRespVO.java +++ b/dxhy-core/src/main/java/com/dxhy/core/model/FpRzRespVO.java @@ -223,4 +223,6 @@ public class FpRzRespVO implements Serializable { private String postingTime; private String accountPeriod; + + private String bzr; } 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 26a05d58..f421f90c 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 @@ -95,7 +95,8 @@ public class RzFpxxServiceImpl extends MpBaseServiceImpl dataArray[17] = pageList.get(i).getImageNumber(); dataArray[18] = pageList.get(i).getAccountPeriod(); dataArray[19] = pageList.get(i).getBzdh(); - dataArray[20] = pageList.get(i).getCompCode(); + dataArray[20] = pageList.get(i).getBzr(); + dataArray[21] = pageList.get(i).getCompCode(); returnList.add(dataArray); } diff --git a/dxhy-core/src/main/java/com/dxhy/core/thread/ManualAthensThread.java b/dxhy-core/src/main/java/com/dxhy/core/thread/ManualAthensThread.java index 8c618d54..d642dc7c 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/thread/ManualAthensThread.java +++ b/dxhy-core/src/main/java/com/dxhy/core/thread/ManualAthensThread.java @@ -66,13 +66,9 @@ public class ManualAthensThread extends BaseThread { * 导出excel的列名 */ private final String[] titleColumns = {"序号", "发票代码", "发票号码", "发票类型","发票状态", "开票日期","购方名称", "销方名称", "金额", "税额", - "抵扣税额", "签收状态", "签收日期", "签收方式", "签收人","凭证号", "过账时间", "影像号", "账期", "报账单号", "所属组织"}; + "抵扣税额", "签收状态", "签收日期", "签收方式", "签收人","凭证号", "过账时间", "影像号", "账期", "报账单号", "报账人","所属组织"}; + - /** - * 导出excel的列名 - */ - private final String[] detailTitleColumns = - {"序号", "发票代码", "发票号码", "货物或应税劳务名称", "规格型号", "单位", "数量", "单价", "金额", "税额", "税率", "车牌号", "类型", "通行日期起", "通行日期止"}; // private Sheet sheet; // private Table table; @@ -146,6 +142,7 @@ public class ManualAthensThread extends BaseThread { String cjksyf = prams.getString("cjksyf"); String cjjsyf = prams.getString("cjjsyf"); String gfTaxNo = prams.getString("gfTaxNo"); + String bzr = prams.getString("bzr"); String inAccountStatus = prams.getString("inAccountStatus"); String inAccountMonth = prams.getString("inAccountMonth"); JSONArray companyCodeArray = prams.getJSONArray("companyCodes"); @@ -153,6 +150,7 @@ public class ManualAthensThread extends BaseThread { // 参数转换为需要的形式 Map pramsMap = new HashMap<>(16); pramsMap.put("dbName", dbName); + pramsMap.put("bzr",bzr); List gfshList = new ArrayList<>(); if (!StringHelper.isBlank(gfsh)) { gfshList = StringHelper.stringToList(gfsh); diff --git a/dxhy-core/src/main/java/com/dxhy/core/thread/RzFpxxExportThread.java b/dxhy-core/src/main/java/com/dxhy/core/thread/RzFpxxExportThread.java index e24c9531..30659e62 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/thread/RzFpxxExportThread.java +++ b/dxhy-core/src/main/java/com/dxhy/core/thread/RzFpxxExportThread.java @@ -59,7 +59,8 @@ public class RzFpxxExportThread extends BaseThread { */ private String[] titleColumns = {"序号", "发票代码", "发票号码", "发票类型", "开票日期", "购方名称", "购方税号", "销方名称", "销方税号", "金额", "税额", "抵扣税额", "发票状态", "签收状态", - "签收日期", "签收方式", "签收人", "认证时间", "认证状态", "认证处理状态", "认证类型", "认证人", "税款所属期", "撤销认证处理状态", "业务单元","报账单号","入账状态","所属组织"}; + "签收日期", "签收方式", "签收人", "认证时间", "认证状态", "认证处理状态", "认证类型", "认证人", "税款所属期", "撤销认证处理状态", + "业务单元","报账单号","报账人","入账状态","所属组织"}; private final IExcelExportlogService exportLogService; @@ -133,6 +134,8 @@ public class RzFpxxExportThread extends BaseThread { String company = prams.getString("company"); String menuId = prams.getString("menuId"); String companyCode = prams.getString("companyCode"); + String bzdh = prams.getString("bzdh"); + String bzr = prams.getString("bzr"); JSONObject jsonObject = tabulateRedisService.getTabulateExcel(company, menuId); List businesses = (List)prams.get("userBusiness"); String inAccountStatus = prams.getString("inAccountStatus"); @@ -145,6 +148,8 @@ public class RzFpxxExportThread extends BaseThread { pramsMap.put("paymentDateEnd", prams.getString("paymentDateEnd")); pramsMap.put("paymentStatus", prams.getString("paymentStatus")); pramsMap.put("voucherNumber", prams.getString("voucherNumber")); + pramsMap.put("bzdh",bzdh); + pramsMap.put("bzr",bzr); List gfshList = new ArrayList<>(); if (!StringHelper.isBlank(gfsh)) { @@ -234,7 +239,7 @@ public class RzFpxxExportThread extends BaseThread { if (StringUtils.isNotBlank(inAccountStatus)) { titleColumns = new String[] {"序号", "打款状态", "发票代码", "发票号码", "发票类型", "开票日期", "购方名称", "购方税号", "销方名称", "销方税号", "金额", "税额", "抵扣税额", "发票状态", "签收状态", "签收日期", "签收方式", "签收人", "认证时间", "认证状态", "认证处理状态", - "认证类型", "认证人", "税款所属期", "撤销认证处理状态", "业务单元","报账单号","入账状态","所属组织"}; + "认证类型", "认证人", "税款所属期", "撤销认证处理状态", "业务单元","报账单号","报账人","入账状态","所属组织"}; } if ("1".equals(prams.getString("payment"))) { titleColumns = new String[] {"序号", "发票代码", "发票号码", "发票类型", "开票日期", "购方名称", "购方税号", "销方名称", "销方税号", diff --git a/dxhy-core/src/main/resources/mapper/FpZhMapper.xml b/dxhy-core/src/main/resources/mapper/FpZhMapper.xml index 012f5cbd..aa1f1f01 100644 --- a/dxhy-core/src/main/resources/mapper/FpZhMapper.xml +++ b/dxhy-core/src/main/resources/mapper/FpZhMapper.xml @@ -100,47 +100,71 @@ #{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 t.rzh_yesorno = #{rzzt} + + and date_format(t.account_period,'%Y-%m') between #{accountPeriodStart} and #{accountPeriodEnd} - - and t.auth_status = #{rzclzt} + + and date_format(t.posting_time,'%Y-%m-%d') between #{postingTimeStart} and #{postingTimeEnd} - - = #{paymentDateStart} ]]> + + and t.rzh_yesorno = #{rzzt} - - + + and (t.rzh_yesorno = '1' or t.rzh_yesorno = '2') - - and t.payment_status = #{paymentStatus} + + and t.image_id = #{imageId} - + + and t.auth_status = #{rzclzt} + + and t.bdk_status = #{rzlx} - + + and (t.invoice_type = '14' or (t.invoice_type = '32' and t.lq_tdyslxDm='08') ) + + and t.invoice_type = #{invoiceType} @@ -149,8 +173,15 @@ and t.ele_invoice_no = #{eleInvoiceNo} + + and t.qs_type = #{qsfs} + - and t.xf_name like CONCAT(#{xfmc},'%') + and t.xf_name like concat(#{xfmc},'%') + + + and t.qs_name = #{qsr} and t.confirm_user in @@ -159,13 +190,25 @@ + 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} @@ -180,14 +223,20 @@ ) or (t.dept_id is null or t.dept_id='' or t.dept_id='99')) - - and t.in_account_status = #{inAccountStatus} + + + + + and t.sn_voucher_number = #{snVoucherNumber} - - and t.company = #{company} + + and t.posting_time between #{postingTimeStart} and #{postingTimeEnd} - - and t.qs_name = #{qsr} + + and t.image_id = #{imageNumber} + + + and t.account_period = #{accountPeriod} order by t.rzh_date desc,t.invoice_date desc @@ -485,6 +534,7 @@ +