sap联调

highway
zhaoxiaolin 1 year ago
parent 9c89b70be0
commit 551e194707

@ -81,11 +81,6 @@
<groupId>com.op</groupId> <groupId>com.op</groupId>
<artifactId>op-common-swagger</artifactId> <artifactId>op-common-swagger</artifactId>
</dependency> </dependency>
<!-- <dependency>-->
<!-- <groupId>com.abc.sap</groupId>-->
<!-- <artifactId>sapjco3</artifactId>-->
<!-- <version>1.0.0</version>-->
<!-- </dependency>-->
</dependencies> </dependencies>
<build> <build>

@ -66,10 +66,10 @@ public class RyTask {
remoteSapService.sapRouterSync(qo); remoteSapService.sapRouterSync(qo);
} }
/**2 /**2
*/ */
public void getTOrderTask(){ public void getTOrderTask(){
logger.info("++同步今日订单+开始++getTOrderTask+++++"); logger.info("++同步最新订单+开始++getTOrderTask+++++");
remotePlanService.syncSAPOrders(); remotePlanService.syncSAPOrders();
} }

@ -694,8 +694,8 @@ public class ProOrderServiceImpl implements IProOrderService {
//// calendar.add(Calendar.DAY_OF_MONTH,1);//明天 //// calendar.add(Calendar.DAY_OF_MONTH,1);//明天
// sapqo.setCreateTime(calendar.getTime()); // sapqo.setCreateTime(calendar.getTime());
// //
// sapqo.setFactoryCode(poolName.replace("ds_",""));
SapShopOrderQuery sapqo = new SapShopOrderQuery(); SapShopOrderQuery sapqo = new SapShopOrderQuery();
sapqo.setWerk(poolName.replace("ds_",""));
SapProOrder maxCreateTime = proOrderMapper.getMaxCreatetime(); SapProOrder maxCreateTime = proOrderMapper.getMaxCreatetime();
if(maxCreateTime == null ){ if(maxCreateTime == null ){
sapqo.setErdat(DateFormatUtils.format(new Date(), "yyyyMMdd"));//S_ERDAT(创建日期) 例如20230923 sapqo.setErdat(DateFormatUtils.format(new Date(), "yyyyMMdd"));//S_ERDAT(创建日期) 例如20230923

@ -134,6 +134,7 @@ public class SapOrderServiceImpl implements SapOrderService {
return R.ok(proOrderList); return R.ok(proOrderList);
} catch (Exception e) { } catch (Exception e) {
System.out.println(e.getMessage());
return R.fail(e.getMessage()); return R.fail(e.getMessage());
} }
} }

Loading…
Cancel
Save