|
@@ -1,8 +1,10 @@
|
|
|
package com.dk.mnls_mp.infrastructure.web;
|
|
package com.dk.mnls_mp.infrastructure.web;
|
|
|
|
|
|
|
|
|
|
+import com.dk.mnls_mp.constant.Constant;
|
|
|
import com.dk.mnls_mp.infrastructure.base.ResponseCodeEnum;
|
|
import com.dk.mnls_mp.infrastructure.base.ResponseCodeEnum;
|
|
|
import com.dk.mnls_mp.mapper.basic.WCFinfoMapper;
|
|
import com.dk.mnls_mp.mapper.basic.WCFinfoMapper;
|
|
|
import com.dk.mnls_mp.service.basic.SynchFacService;
|
|
import com.dk.mnls_mp.service.basic.SynchFacService;
|
|
|
|
|
+import com.dk.mnls_mp.service.iboss.PullIbossDataService;
|
|
|
import com.dk.mnls_mp.service.synchCode.SynchCodeService;
|
|
import com.dk.mnls_mp.service.synchCode.SynchCodeService;
|
|
|
import com.dongke.base.exceptionHandler.ResponseResultVO;
|
|
import com.dongke.base.exceptionHandler.ResponseResultVO;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -24,6 +26,8 @@ public class Scheduler {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private SynchCodeService synchCodeService;
|
|
private SynchCodeService synchCodeService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ PullIbossDataService pullIbossDataService;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @author : sh4wmoo
|
|
* @author : sh4wmoo
|
|
@@ -34,10 +38,10 @@ public class Scheduler {
|
|
|
* 4.调用同步iBOSS产品编码。
|
|
* 4.调用同步iBOSS产品编码。
|
|
|
* 5.调用同步iBOSS bom方法。
|
|
* 5.调用同步iBOSS bom方法。
|
|
|
*/
|
|
*/
|
|
|
- @Scheduled(cron = "0 0 3 * * ?")
|
|
|
|
|
- public void syncGoodsData() {
|
|
|
|
|
- Date startTime;
|
|
|
|
|
- String type = "";
|
|
|
|
|
|
|
+// @Scheduled(cron = "0 0 0 * * ?")
|
|
|
|
|
+// public void syncGoodsData() {
|
|
|
|
|
+// Date startTime;
|
|
|
|
|
+// String type = "";
|
|
|
|
|
|
|
|
// 4.调用抓取crm层级方法。
|
|
// 4.调用抓取crm层级方法。
|
|
|
// startTime = new Date();
|
|
// startTime = new Date();
|
|
@@ -66,31 +70,17 @@ public class Scheduler {
|
|
|
// ResponseResultVO res7 = synchCodeService.synchCode(map);
|
|
// ResponseResultVO res7 = synchCodeService.synchCode(map);
|
|
|
// checkRes(res7, type, startTime);
|
|
// checkRes(res7, type, startTime);
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @author : sh4wmoo
|
|
* @author : sh4wmoo
|
|
|
* @date : 2021-9-6 10:09
|
|
* @date : 2021-9-6 10:09
|
|
|
* @desc : 独立定时任务 拉取iBOSS单据信息
|
|
* @desc : 独立定时任务 拉取iBOSS单据信息
|
|
|
*/
|
|
*/
|
|
|
-// @Scheduled(cron = "0 0 0 * * ?")
|
|
|
|
|
-// public void pullIBOSSData() {
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.ORGANIZATION);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.STAFF);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.STAFF_COMMISSION);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.SALES_MARGIN);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.RECEIVE);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.PRESTORED);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.SALES_AMOUNT);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.INVENTORY_CHECK_DETAIL);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.OUT_ORDER_DETAIL);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.SALES_RETURN);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.SALES_ORDER_UPDATE);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.SALES_ORDER);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.OUT_ORDER);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.INVENTORY);
|
|
|
|
|
-// asyncService.AsyncPullIbossData(Constant.PullDataType.ORDER_DETAIL);
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ @Scheduled(cron = "30 0 0 * * ?")
|
|
|
|
|
+ public void pullIBOSSData() {
|
|
|
|
|
+ pullIbossDataService.pullIbossData(Constant.PullDataType.INVENTORY,null);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @author : sh4wmoo
|
|
* @author : sh4wmoo
|