diff --git a/dxhy-core/src/main/java/com/dxhy/core/thread/FpzhcxmxExportThread.java b/dxhy-core/src/main/java/com/dxhy/core/thread/FpzhcxmxExportThread.java index 73d4ad9b..f248d0a8 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/thread/FpzhcxmxExportThread.java +++ b/dxhy-core/src/main/java/com/dxhy/core/thread/FpzhcxmxExportThread.java @@ -138,13 +138,7 @@ public class FpzhcxmxExportThread extends BaseThread { Map pramsMap = new HashMap<>(31); pramsMap.put("dbName", dbName); pramsMap.put("business", businesses); - List gfshList = new ArrayList<>(); - if (!StringHelper.isBlank(gfsh)) { - gfshList = StringHelper.stringToList(gfsh); - pramsMap.put("gfsh", gfshList); - } else { - pramsMap.put("gfsh", gfshList); - } + pramsMap.put("gfsh", gfsh); if (!StringHelper.isBlank(invoiceType)) { if (!"99".equals(invoiceType)) { pramsMap.put("invoiceType", invoiceType); diff --git a/dxhy-core/src/main/java/com/dxhy/core/thread/FpzhcxslExportThread.java b/dxhy-core/src/main/java/com/dxhy/core/thread/FpzhcxslExportThread.java index 4f9b1658..4d3cef9f 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/thread/FpzhcxslExportThread.java +++ b/dxhy-core/src/main/java/com/dxhy/core/thread/FpzhcxslExportThread.java @@ -135,13 +135,7 @@ public class FpzhcxslExportThread extends BaseThread { Map pramsMap = new HashMap<>(31); pramsMap.put("dbName", dbName); pramsMap.put("business", businesses); - List gfshList = new ArrayList<>(); - if (!StringHelper.isBlank(gfsh)) { - gfshList = StringHelper.stringToList(gfsh); - pramsMap.put("gfsh", gfshList); - } else { - pramsMap.put("gfsh", gfshList); - } + pramsMap.put("gfsh", gfsh); if (!StringHelper.isBlank(invoiceType)) { if (!"99".equals(invoiceType)) { pramsMap.put("invoiceType", invoiceType); diff --git a/dxhy-core/src/main/resources/mapper/BbfpzhMapper.xml b/dxhy-core/src/main/resources/mapper/BbfpzhMapper.xml index 5d05acb9..f05c0c0f 100644 --- a/dxhy-core/src/main/resources/mapper/BbfpzhMapper.xml +++ b/dxhy-core/src/main/resources/mapper/BbfpzhMapper.xml @@ -67,23 +67,9 @@ from t_dx_record_invoice t WHERE t.invoice_date between #{kpksrq} and #{kpjsrq} and t.company = #{company} - and t.gf_tax_no in - - #{item} - - - and (t.comp_code in - - #{companyCode} - - or t.comp_code is null or t.comp_code = '' - ) - - - and t.comp_code = #{companyCode} - - - and (t.comp_code = '' or t.comp_code is null) + and t.gf_tax_no = #{gfsh} + + and (t.comp_code = #{companyCode} or t.comp_code is null or t.comp_code = '') and t.bzdh = #{bzdh} diff --git a/dxhy-core/src/main/resources/mapper/BbfpzhmxMapper.xml b/dxhy-core/src/main/resources/mapper/BbfpzhmxMapper.xml index 5a5a1557..7a1efb90 100644 --- a/dxhy-core/src/main/resources/mapper/BbfpzhmxMapper.xml +++ b/dxhy-core/src/main/resources/mapper/BbfpzhmxMapper.xml @@ -52,10 +52,7 @@ ${dxhyTertiary}.t_dx_record_invoice t left JOIN ${dxhyDetail}.t_dx_record_invoice_detail b ON t.uuid = b.uuid WHERE t.invoice_date between #{kpksrq} and #{kpjsrq} - and t.gf_tax_no in - - #{item} - + and t.gf_tax_no = #{gfsh} and t.invoice_status = #{invoiceStatus} diff --git a/dxhy-core/src/main/resources/mapper/BbfpzhslMapper.xml b/dxhy-core/src/main/resources/mapper/BbfpzhslMapper.xml index c29d61e2..dae7676b 100644 --- a/dxhy-core/src/main/resources/mapper/BbfpzhslMapper.xml +++ b/dxhy-core/src/main/resources/mapper/BbfpzhslMapper.xml @@ -30,10 +30,7 @@ on t.invoice_no = tdis.invoice_no where t.invoice_date between #{kpksrq} and #{kpjsrq} - and t.gf_tax_no in - - #{item} - + and t.gf_tax_no = #{gfsh} and t.invoice_status = #{invoiceStatus} diff --git a/dxhy-extend/src/main/java/com/dxhy/extend/controller/ExtFpzhcxController.java b/dxhy-extend/src/main/java/com/dxhy/extend/controller/ExtFpzhcxController.java index fbf235d9..aa8ba18f 100644 --- a/dxhy-extend/src/main/java/com/dxhy/extend/controller/ExtFpzhcxController.java +++ b/dxhy-extend/src/main/java/com/dxhy/extend/controller/ExtFpzhcxController.java @@ -371,16 +371,8 @@ public class ExtFpzhcxController extends AbstractController { Map data = new HashMap<>(16); data.put("dbName", getUserInfo().getDbName()); - List gfshList = new ArrayList<>(); - if (!"99".equals(pramsMap.get("gfsh")) && pramsMap.get("gfsh") != null && !"".equals(pramsMap.get("gfsh"))) { - gfshList.add(pramsMap.get("gfsh").toString()); - } else { - gfshList = UserInfoUtil.getGfshAll(getUserInfo().getOrg()); - if (gfshList.size() == 0) { - return ResponseEntity.ok(R.ok().put("data", "")); - } - } - data.put("gfsh", gfshList); + + data.put("gfsh", pramsMap.get("gfsh").toString()); if (pramsMap.get("yczt") != null && !"".equals(pramsMap.get("yczt")) && !"99".equals(pramsMap.get("yczt"))) { data.put("yczt", pramsMap.get("yczt")); }