|
@@ -0,0 +1,49 @@
|
|
|
+package com.txz.cif.web.mng;
|
|
|
+
|
|
|
+import com.txz.cif.core.Result;
|
|
|
+
|
|
|
+import com.txz.cif.core.ResultGenerator;
|
|
|
+import com.txz.cif.dubbo.client.OrderDubboServiceClient;
|
|
|
+
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+
|
|
|
+
|
|
|
+@Api(tags = "[后台]mall定时任务")
|
|
|
+@RestController
|
|
|
+@RequestMapping("/order/api/test")
|
|
|
+public class OrderApiController {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private OrderDubboServiceClient orderDubboServiceClient;
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping("/scheduledTaskStorePinkSummaryClose")
|
|
|
+ @ApiOperation(value = "拼团超时定时任务",httpMethod = "POST")
|
|
|
+ public Result scheduledTaskStorePinkSummaryCloseTest() {
|
|
|
+ orderDubboServiceClient.scheduledTaskStorePinkSummaryClose();
|
|
|
+ return ResultGenerator.genSuccessResult();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping("/scheduledTaskBatchSigning")
|
|
|
+ @ApiOperation(value = "自动签收定时任务",httpMethod = "POST")
|
|
|
+ public Result scheduledTaskBatchSigningTest() {
|
|
|
+ orderDubboServiceClient.scheduledTaskBatchSigning();
|
|
|
+ return ResultGenerator.genSuccessResult();
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/orderTimeoutAutomaticCancel")
|
|
|
+ @ApiOperation(value = "订单超时未支付定时取消",httpMethod = "POST")
|
|
|
+ public Result orderTimeoutAutomaticCancel() {
|
|
|
+ orderDubboServiceClient.orderTimeoutAutomaticCancel();
|
|
|
+ return ResultGenerator.genSuccessResult();
|
|
|
+ }
|
|
|
+
|
|
|
+}
|