|
@@ -2,6 +2,7 @@ package com.sd.wln.controller;
|
|
|
|
|
|
import com.sd.wln.entity.ResynchronizationDto;
|
|
|
import com.sd.wln.service.OrderHandleService;
|
|
|
+import com.sd.wln.service.WlnSkuService;
|
|
|
import com.sd.wln.service.WlnStatementOfAccount;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -19,6 +20,9 @@ public class OrderHandleController {
|
|
|
@Autowired
|
|
|
private WlnStatementOfAccount wlnStatementOfAccount;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private WlnSkuService wlnSkuService;
|
|
|
+
|
|
|
/**
|
|
|
* 重新同步订单
|
|
|
*/
|
|
@@ -43,4 +47,13 @@ public class OrderHandleController {
|
|
|
orderHandleService.bathSyncOrder();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 批量同步订单
|
|
|
+ */
|
|
|
+ @PostMapping("/syncSku")
|
|
|
+ public void syncSku() {
|
|
|
+ wlnSkuService.syncSkuClassify();
|
|
|
+ wlnSkuService.syncSku();
|
|
|
+ }
|
|
|
+
|
|
|
}
|