From 6edc6e92ad99da4f51ee40060a762a1c7bf7aec2 Mon Sep 17 00:00:00 2001 From: zhaoqiaobo <583671871@qq.com> Date: Mon, 30 Dec 2024 09:57:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat(all):=20=E7=B4=A2=E8=8F=B2=E4=BA=9A?= =?UTF-8?q?=E5=B7=A5=E5=8E=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1 增加华之韵物流对接 --- .../suofeiya/controller/OrderController.java | 10 +++++++--- .../factorydata/suofeiya/vo/FactoryOrderDataVO.java | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/controller/OrderController.java b/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/controller/OrderController.java index eaf0d67d2..206240d59 100644 --- a/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/controller/OrderController.java +++ b/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/controller/OrderController.java @@ -1,6 +1,7 @@ package com.logpm.factorydata.suofeiya.controller; import cn.hutool.core.util.ObjectUtil; +import cn.hutool.core.util.StrUtil; import cn.hutool.json.JSONUtil; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; import com.logpm.factorydata.suofeiya.service.DeliveryNoteService; @@ -64,9 +65,12 @@ public class OrderController { log.info("接收工厂订单:{} ", jsonStr); String res = ""; try { - DeliveryNoteVO params = vo.getParams(); - if (ObjectUtil.isNotEmpty(params)) { - res = service.order(params); + String params = vo.getParams(); + if(StrUtil.isNotEmpty(params)){ + DeliveryNoteVO bean = JSONUtil.toBean(params, DeliveryNoteVO.class); + if (ObjectUtil.isNotEmpty(bean)) { + res = service.order(bean); + } } } catch (Exception e) { log.error("工厂订单异常:{} ", e); diff --git a/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/vo/FactoryOrderDataVO.java b/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/vo/FactoryOrderDataVO.java index 784eb71bf..7bb8a98c5 100644 --- a/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/vo/FactoryOrderDataVO.java +++ b/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/vo/FactoryOrderDataVO.java @@ -22,6 +22,6 @@ public class FactoryOrderDataVO { private String companyCode; @ApiModelProperty("订单信息") - private DeliveryNoteVO params; + private String params; } From b17b17f6d921957ca30db3e2f57c400403ffd08c Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Mon, 30 Dec 2024 10:00:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?1.=E5=BC=80=E5=8D=95=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logpm/trunkline/mapper/TrunklineAdvanceDetailMapper.xml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceDetailMapper.xml b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceDetailMapper.xml index f6ff2b592..923d23412 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceDetailMapper.xml +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceDetailMapper.xml @@ -513,12 +513,9 @@ ltad.weight weight, ltad.volume volume, lbfc1.category_id incomeCategoryId, - IFNULL(lbfc1.category,'其他') incomeCategoryName, - lbfc2.category_id costCategoryId, - IFNULL(lbfc2.category,'其他') costCategoryName + IFNULL(lbfc1.category,'其他') incomeCategoryName from logpm_trunkline_advance_detail ltad left join logpm_basicdata_factory_category lbfc1 on lbfc1.brand = ltad.brand and IFNULL(lbfc1.firsts,1) = IFNULL(ltad.first_pack_name,1) and IFNULL(lbfc1.seconds,2) = IFNULL(ltad.second_pack_name,2) and IFNULL(lbfc1.thirds,3) = IFNULL(ltad.third_pack_name,3) and lbfc1.type = 1 AND IFNULL(lbfc1.materiel_name,4) = IFNULL(ltad.material_name,4) AND lbfc1.is_deleted = 0 - left join logpm_basicdata_factory_category lbfc2 on lbfc2.brand = ltad.brand and IFNULL(lbfc2.firsts,1) = IFNULL(ltad.first_pack_name,1) and IFNULL(lbfc2.seconds,2) = IFNULL(ltad.second_pack_name,2) and IFNULL(lbfc2.thirds,3) = IFNULL(ltad.third_pack_name,3) and lbfc1.type = 2 AND IFNULL(lbfc2.materiel_name,4) = IFNULL(ltad.material_name,4) AND lbfc2.is_deleted = 0 where ltad.is_deleted = 0 and ltad.advance_id in