From cbd0780abd9b9cb3ffe2c8d85dfc0bcf80c916d8 Mon Sep 17 00:00:00 2001 From: yewj Date: Wed, 27 Nov 2024 17:07:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=95=B0=E6=8D=AE=E6=BA=90?= =?UTF-8?q?=EF=BC=8C=E6=8B=89=E5=8F=96=E9=87=87=E8=B4=AD=E5=8D=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/glxp/mipsdl/client/ctqyy/CtqyyClient.java | 11 ++++++++--- src/main/resources/application.yml | 6 ++++-- src/main/resources/logback-spring.xml | 4 +--- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/glxp/mipsdl/client/ctqyy/CtqyyClient.java b/src/main/java/com/glxp/mipsdl/client/ctqyy/CtqyyClient.java index 2ceb652..7fdf085 100644 --- a/src/main/java/com/glxp/mipsdl/client/ctqyy/CtqyyClient.java +++ b/src/main/java/com/glxp/mipsdl/client/ctqyy/CtqyyClient.java @@ -65,6 +65,7 @@ import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.DocumentHelper; import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import javax.annotation.Resource; @@ -156,6 +157,10 @@ public class CtqyyClient extends CommonHttpClient { @Resource private RelCodeDetailService relCodeDetailService; + + @Value("${DBTYPE}") + private String DBTYPE; + /** * 拼接xml请求头 * @@ -1576,7 +1581,7 @@ public class CtqyyClient extends CommonHttpClient { .or().like(VYpzsIoInfo::getIO_SORT, keywords)//收货方 ); - udiwmsThrOrderRequest.setDatabaseProductName(getDataSourceType()); + udiwmsThrOrderRequest.setDatabaseProductName(DBTYPE); Page page = vYpzsIoInfoMapper.selectGroupedWithPagination(new Page(udiwmsThrOrderRequest.getPage(), udiwmsThrOrderRequest.getLimit()), udiwmsThrOrderRequest); @@ -1612,13 +1617,13 @@ public class CtqyyClient extends CommonHttpClient { List bizList = new ArrayList<>(); value.forEach(entity -> { IoCollectOrderBiz collectOrderBiz = new IoCollectOrderBiz(); - BasicUdirelEntity basicUdirelEntity = basicUdirelDao.selectOne(new LambdaQueryWrapper().eq(BasicUdirelEntity::getMainId, entity.getPHYSIC_CODE()).last("limit 1")); + BasicUdirelEntity basicUdirelEntity = basicUdirelDao.selectOne(new LambdaQueryWrapper().eq(BasicUdirelEntity::getMainId, entity.getCOUNTRY_CODE()).last("limit 1")); if (basicUdirelEntity != null) { collectOrderBiz.setRelId(basicUdirelEntity.getId()); } else { errorMsg.append(entity.getPHYSIC_NAME()).append("字典未对照").append(";"); } - collectOrderBiz.setThrCode(entity.getPHYSIC_CODE()); + collectOrderBiz.setThrCode(entity.getCOUNTRY_CODE()); collectOrderBiz.setCpmctymc(entity.getPHYSIC_NAME()); collectOrderBiz.setBatchNo(entity.getBATCH_NO()); collectOrderBiz.setCount(entity.getQUANTITY()); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 56d884d..0fe1dae 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -18,7 +18,7 @@ server: #第三方系统标识 THIRD_ID: thirdId THIRD_NAME: thirdName - +DBTYPE: Oracle #UDI管理系统地址 UDIWMS_IP: http://127.0.0.1:9991 @@ -32,7 +32,9 @@ mybatis-plus: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl global-config: banner: false - +logging: + level: + com.glxp.mipsdl.dao: debug ok: http: connect-timeout: 30000 diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index a2727f4..496f3f3 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -36,9 +36,7 @@ - debug - ACCEPT - DENY +