From ca8a12abd21bec259ab910f6e372ca0e3ca4f469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E8=8D=A3=E7=90=B3?= Date: Sat, 16 Dec 2023 09:30:16 +0800 Subject: [PATCH] =?UTF-8?q?feature=EF=BC=9A=E5=8E=BB=E9=99=A4aisinoutils?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- order-management-consumer/pom.xml | 10 ++--- .../consumer/modules/bigdata/util/ProXml.java | 30 +++++++-------- .../consumer/modules/jdjos/utils/ProXml.java | 30 +++++++-------- .../service/impl/HomeBoardServiceImpl.java | 38 +++++++++---------- 4 files changed, 54 insertions(+), 54 deletions(-) diff --git a/order-management-consumer/pom.xml b/order-management-consumer/pom.xml index 7f87cbdf..3198dd78 100644 --- a/order-management-consumer/pom.xml +++ b/order-management-consumer/pom.xml @@ -480,11 +480,11 @@ - - com.aisino - aisinoutils - 1.0 - + + + + + diff --git a/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/bigdata/util/ProXml.java b/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/bigdata/util/ProXml.java index 9dcfaad1..c426c549 100644 --- a/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/bigdata/util/ProXml.java +++ b/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/bigdata/util/ProXml.java @@ -10,7 +10,7 @@ package com.dxhy.order.consumer.modules.bigdata.util; -import com.aisino.common.util.XMLShellFactory; +//import com.aisino.common.util.XMLShellFactory; import com.dxhy.order.constant.ConfigureConstant; import com.dxhy.order.utils.Base64Encoding; import com.dxhy.order.utils.GbkUtil; @@ -214,7 +214,7 @@ public class ProXml { public static String makeFirstLayerXml(BigDataGlobalInfo glo, Object reqObj, String encryptCode) { BigDataReturnStateInfo rs = ProXml.getReturnStateInfo(XmlPar.BUSI_SSUCCESS, ""); ByteArrayOutputStream out = new ByteArrayOutputStream(); - XMLShellFactory.newInstance().saveXml(out, reqObj); +// XMLShellFactory.newInstance().saveXml(out, reqObj); BigDataData data = ProXml.getData(out, encryptCode, false); return ProXml.getXml(glo, rs, data); } @@ -266,25 +266,25 @@ public class ProXml { /** *

获取二层协议中的协议对象

* - * @param xml + * @param * @return * @throws Exception List * @author: jerome.wang * @date: Created on 2016-5-11 下午02:33:25 */ @SuppressWarnings("AlibabaUndefineMagicConstant") - public static List getDataRoot(String xml) throws Exception { - String xmlRootStart = " "; - String xmlRootEnd = ""; - if (xml.startsWith(" "; +// String xmlRootEnd = ""; +// if (xml.startsWith("获取一层协议的data对象

diff --git a/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/jdjos/utils/ProXml.java b/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/jdjos/utils/ProXml.java index f5916671..158f10d3 100644 --- a/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/jdjos/utils/ProXml.java +++ b/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/jdjos/utils/ProXml.java @@ -10,7 +10,7 @@ package com.dxhy.order.consumer.modules.jdjos.utils; -import com.aisino.common.util.XMLShellFactory; +//import com.aisino.common.util.XMLShellFactory; import com.dxhy.order.constant.ConfigureConstant; import com.dxhy.order.utils.Base64Encoding; import com.dxhy.order.utils.GbkUtil; @@ -214,7 +214,7 @@ public class ProXml { public static String makeFirstLayerXml(JdJosGlobalInfo glo, Object reqObj, String encryptCode) { JdJosReturnStateInfo rs = ProXml.getReturnStateInfo(XmlPar.BUSI_SSUCCESS, ""); ByteArrayOutputStream out = new ByteArrayOutputStream(); - XMLShellFactory.newInstance().saveXml(out, reqObj); + //XMLShellFactory.newInstance().saveXml(out, reqObj); JdJosData data = ProXml.getData(out, encryptCode, false); return ProXml.getXml(glo, rs, data); } @@ -266,25 +266,25 @@ public class ProXml { /** *

获取二层协议中的协议对象

* - * @param xml + * @param * @return * @throws Exception List * @author: jerome.wang * @date: Created on 2016-5-11 下午02:33:25 */ @SuppressWarnings("AlibabaUndefineMagicConstant") - public static List getDataRoot(String xml) throws Exception { - String xmlRootStart = " "; - String xmlRootEnd = ""; - if (xml.startsWith(" "; +// String xmlRootEnd = ""; +// if (xml.startsWith("获取一层协议的data对象

diff --git a/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/order/service/impl/HomeBoardServiceImpl.java b/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/order/service/impl/HomeBoardServiceImpl.java index e87da614..80c0bd1e 100644 --- a/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/order/service/impl/HomeBoardServiceImpl.java +++ b/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/order/service/impl/HomeBoardServiceImpl.java @@ -157,37 +157,37 @@ public class HomeBoardServiceImpl implements HomeBoardService { String currDateStr = DateUtil.format(currDate, ConfigureConstant.DATE_FORMAT_DATE_Y_M_DH_M_S); if (StringUtils.equals(ConfigureConstant.STRING_0, queryType)) { //本月开票数据 - DateTime beginOfMonth = DateUtil.beginOfMonth(currDate); - String beginOfMonthStr = DateUtil.formatDateTime(beginOfMonth); - startTime = com.aisino.common.util.DateUtil.parse(beginOfMonthStr, - ConfigureConstant.DATE_FORMAT_DATE_Y_M_DH_M_S); - endTime = com.aisino.common.util.DateUtil.parse(currDateStr, - ConfigureConstant.DATE_FORMAT_DATE_Y_M_DH_M_S); +// DateTime beginOfMonth = DateUtil.beginOfMonth(currDate); +// String beginOfMonthStr = DateUtil.formatDateTime(beginOfMonth); +// startTime = com.aisino.common.util.DateUtil.parse(beginOfMonthStr, +// ConfigureConstant.DATE_FORMAT_DATE_Y_M_DH_M_S); +// endTime = com.aisino.common.util.DateUtil.parse(currDateStr, +// ConfigureConstant.DATE_FORMAT_DATE_Y_M_DH_M_S); } else if (StringUtils.equals(ConfigureConstant.STRING_1, queryType)) { //本季度开票数据 DateTime beginOfQuarter = DateUtil.beginOfQuarter(currDate); String beginOfQuarterStr = DateUtil.formatDateTime(beginOfQuarter); - startTime = com.aisino.common.util.DateUtil.parse(beginOfQuarterStr, - ConfigureConstant.DATE_FORMAT_DATE_Y_M_DH_M_S); - endTime = com.aisino.common.util.DateUtil.parse(currDateStr, - ConfigureConstant.DATE_FORMAT_DATE_Y_M_DH_M_S); +// startTime = com.aisino.common.util.DateUtil.parse(beginOfQuarterStr, +// ConfigureConstant.DATE_FORMAT_DATE_Y_M_DH_M_S); +// endTime = com.aisino.common.util.DateUtil.parse(currDateStr, +// ConfigureConstant.DATE_FORMAT_DATE_Y_M_DH_M_S); } else if (StringUtils.equals(ConfigureConstant.STRING_2, queryType)) { //累计开票数据 - endTime = com.aisino.common.util.DateUtil.parse(currDateStr, - ConfigureConstant.DATE_FORMAT_DATE_Y_M_DH_M_S); +// endTime = com.aisino.common.util.DateUtil.parse(currDateStr, +// ConfigureConstant.DATE_FORMAT_DATE_Y_M_DH_M_S); } else { throw new OrderReceiveException(ConfigureConstant.STRING_9999, "查询类型不合法,只能是0:本月,1:本季度,2:累计"); } List shList = Lists.newArrayList(kpsjBO.getNsrsbh()); List entList = Lists.newArrayList(kpsjBO.getEntId()); KpsjVO kpsjVO = new KpsjVO(); - InvoiceCount invoiceCount = invoiceCountService.countInvoiceInfoByTime(startTime, endTime, shList, entList); - if (Objects.isNull(invoiceCount)) { - throw new OrderReceiveException(ConfigureConstant.STRING_9999, "未查询到相关开票数据!"); - } - kpsjVO.setKpl(Integer.parseInt(invoiceCount.getCount())); - kpsjVO.setHjje(invoiceCount.getHjje()); - kpsjVO.setHjse(invoiceCount.getHjse()); +// InvoiceCount invoiceCount = invoiceCountService.countInvoiceInfoByTime(startTime, endTime, shList, entList); +// if (Objects.isNull(invoiceCount)) { +// throw new OrderReceiveException(ConfigureConstant.STRING_9999, "未查询到相关开票数据!"); +// } +// kpsjVO.setKpl(Integer.parseInt(invoiceCount.getCount())); +// kpsjVO.setHjje(invoiceCount.getHjje()); +// kpsjVO.setHjse(invoiceCount.getHjse()); return kpsjVO; }