sap联调

highway
zhaoxiaolin 1 year ago
parent 9c89b70be0
commit 551e194707

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

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

@ -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

@ -94,7 +94,7 @@
<artifactId>sapjco</artifactId>
<version>3.0.8</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>

@ -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());
}
}

Loading…
Cancel
Save