From 70305cc1ed2da490f2fab66b6bb1392633ee463c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E8=8D=A3=E7=90=B3?= Date: Mon, 18 Dec 2023 13:31:09 +0800 Subject: [PATCH] =?UTF-8?q?feature=EF=BC=9A=E7=BA=A2=E5=AD=97=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- order-management-consumer/pom.xml | 5 ----- order-management-invoice/pom.xml | 5 +++++ .../service/impl/SpecialInvoiceServiceImpl.java | 9 +++++++++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/order-management-consumer/pom.xml b/order-management-consumer/pom.xml index 7b2e5f4d..fbde80ee 100644 --- a/order-management-consumer/pom.xml +++ b/order-management-consumer/pom.xml @@ -557,11 +557,6 @@ redis.clients jedis - - com.alibaba - fastjson - 1.2.33 - diff --git a/order-management-invoice/pom.xml b/order-management-invoice/pom.xml index c86bd38b..d3d414ba 100644 --- a/order-management-invoice/pom.xml +++ b/order-management-invoice/pom.xml @@ -378,6 +378,11 @@ org.springframework spring-test + + com.alibaba + fastjson + 1.2.33 + diff --git a/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoicespecial/service/impl/SpecialInvoiceServiceImpl.java b/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoicespecial/service/impl/SpecialInvoiceServiceImpl.java index 56b20e71..4f6075d7 100644 --- a/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoicespecial/service/impl/SpecialInvoiceServiceImpl.java +++ b/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoicespecial/service/impl/SpecialInvoiceServiceImpl.java @@ -3442,4 +3442,13 @@ public class SpecialInvoiceServiceImpl implements SpecialInvoiceService { return hpResponseExtend; } + public static void main(String[] args) { + String data = "{\"bZSL\":\"1\",\"dQBS\":\"1\",\"rED_INVOICE_FORM_DOWNLOADS\":[{\"rED_INVOICE_FORM_DOWN_DETAIL\":[{\"dW\":\"\",\"fPHXZ\":\"\",\"gGXH\":\"\",\"hSBZ\":\"0\",\"lSLBS\":\"\",\"sE\":\"-186110.06\",\"sL\":\"0.090000\",\"sPBM\":\"3040502029902000000\",\"xMDJ\":\"0.000000\",\"xMJE\":\"-2067889.94\",\"xMMC\":\"*经营租赁*土地租赁费\",\"xMSL\":\"0.000000\",\"xMXH\":\"1\",\"yHZCBS\":\"0\",\"zXBM\":\"\",\"zZSTSGL\":\"\"}],\"rED_INVOICE_FORM_DOWN_HEAD\":{\"bMB_BBH\":\"51.0\",\"dSLBZ\":\"0\",\"fPZLDM\":\"\",\"gMF_MC\":\"山东新宝龙工业科技有限公司\",\"gMF_NSRSBH\":\"91370883MA3UQ8PK6W\",\"hJJE\":\"-2067889.94\",\"hJSE\":\"-186110.06\",\"sQBSCLSH\":\"667902776911231213094743\",\"sQDH\":\"667902776911231213094743\",\"sQSM\":\"Y\",\"tKSJ\":\"20231213\",\"xSF_MC\":\"兖矿集团唐村实业有限公司\",\"xSF_NSRSBH\":\"913708831661200960\",\"xXBBH\":\"3708832312005653\",\"xXBLX\":\"0\",\"xXBZT\":\"TZD0000\",\"yFP_DM\":\"0000000000\",\"yFP_HM\":\"00000000\",\"yYSBZ\":\"0000000000\",\"zTMS\":\"审核通过\"}}],\"sUCCESS_COUNT\":\"1\"}"; + FgRedInvoiceDownloadReqNew fgRedInvoiceDownloadReqBO = JSONObject.parseObject(data, FgRedInvoiceDownloadReqNew.class); + + boolean success = false; + if(ObjectUtil.isNotNull(fgRedInvoiceDownloadReqBO) && ObjectUtil.isNotEmpty(fgRedInvoiceDownloadReqBO.getRED_INVOICE_FORM_DOWNLOADS())){ + success = true; + } + } }