From 551e1947073c278be6f5b45c208b461ece70b33b Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Wed, 1 Nov 2023 11:39:49 +0800 Subject: [PATCH] =?UTF-8?q?sap=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- op-modules/op-job/pom.xml | 5 ----- op-modules/op-job/src/main/java/com/op/job/task/RyTask.java | 4 ++-- .../java/com/op/plan/service/impl/ProOrderServiceImpl.java | 2 +- op-modules/op-sap/pom.xml | 2 +- .../java/com/op/sap/service/impl/SapOrderServiceImpl.java | 1 + 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/op-modules/op-job/pom.xml b/op-modules/op-job/pom.xml index de4012ba..8c86bd6e 100644 --- a/op-modules/op-job/pom.xml +++ b/op-modules/op-job/pom.xml @@ -81,11 +81,6 @@ com.op op-common-swagger - - - - - diff --git a/op-modules/op-job/src/main/java/com/op/job/task/RyTask.java b/op-modules/op-job/src/main/java/com/op/job/task/RyTask.java index 2016f205..4d8617b0 100644 --- a/op-modules/op-job/src/main/java/com/op/job/task/RyTask.java +++ b/op-modules/op-job/src/main/java/com/op/job/task/RyTask.java @@ -66,10 +66,10 @@ public class RyTask { remoteSapService.sapRouterSync(qo); } - /**每2小时执行一次更新当日订单 + /**每2小时执行一次同步最新订单 */ public void getTOrderTask(){ - logger.info("++同步今日订单+开始++getTOrderTask+++++"); + logger.info("++同步最新订单+开始++getTOrderTask+++++"); remotePlanService.syncSAPOrders(); } diff --git a/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderServiceImpl.java b/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderServiceImpl.java index c0b52c9b..0f839de1 100644 --- a/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderServiceImpl.java +++ b/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderServiceImpl.java @@ -694,8 +694,8 @@ public class ProOrderServiceImpl implements IProOrderService { //// calendar.add(Calendar.DAY_OF_MONTH,1);//明天 // sapqo.setCreateTime(calendar.getTime()); // -// sapqo.setFactoryCode(poolName.replace("ds_","")); SapShopOrderQuery sapqo = new SapShopOrderQuery(); + sapqo.setWerk(poolName.replace("ds_","")); SapProOrder maxCreateTime = proOrderMapper.getMaxCreatetime(); if(maxCreateTime == null ){ sapqo.setErdat(DateFormatUtils.format(new Date(), "yyyyMMdd"));//S_ERDAT(创建日期) 例如:20230923 diff --git a/op-modules/op-sap/pom.xml b/op-modules/op-sap/pom.xml index 88c22724..dbd7b644 100644 --- a/op-modules/op-sap/pom.xml +++ b/op-modules/op-sap/pom.xml @@ -94,7 +94,7 @@ sapjco 3.0.8 - + junit junit diff --git a/op-modules/op-sap/src/main/java/com/op/sap/service/impl/SapOrderServiceImpl.java b/op-modules/op-sap/src/main/java/com/op/sap/service/impl/SapOrderServiceImpl.java index bb90b2ab..713846e6 100644 --- a/op-modules/op-sap/src/main/java/com/op/sap/service/impl/SapOrderServiceImpl.java +++ b/op-modules/op-sap/src/main/java/com/op/sap/service/impl/SapOrderServiceImpl.java @@ -134,6 +134,7 @@ public class SapOrderServiceImpl implements SapOrderService { return R.ok(proOrderList); } catch (Exception e) { + System.out.println(e.getMessage()); return R.fail(e.getMessage()); } }