Merge branch 'test6.9.5' of http://git.yoho.cn/ufo/yohoufo-fore into test6.9.5
Showing
1 changed file
with
17 additions
and
0 deletions
@@ -3,6 +3,7 @@ package com.yohoufo.order.controller; | @@ -3,6 +3,7 @@ package com.yohoufo.order.controller; | ||
3 | import com.yohoufo.common.ApiResponse; | 3 | import com.yohoufo.common.ApiResponse; |
4 | import com.yohoufo.order.model.response.AssetsResp; | 4 | import com.yohoufo.order.model.response.AssetsResp; |
5 | import com.yohoufo.order.service.impl.AssetsService; | 5 | import com.yohoufo.order.service.impl.AssetsService; |
6 | +import com.yohoufo.order.service.quartz.PreSaleOrderJob; | ||
6 | import org.slf4j.Logger; | 7 | import org.slf4j.Logger; |
7 | import org.slf4j.LoggerFactory; | 8 | import org.slf4j.LoggerFactory; |
8 | import org.springframework.beans.factory.annotation.Autowired; | 9 | import org.springframework.beans.factory.annotation.Autowired; |
@@ -21,6 +22,22 @@ public class AssetsController { | @@ -21,6 +22,22 @@ public class AssetsController { | ||
21 | @Autowired | 22 | @Autowired |
22 | private AssetsService assetsService; | 23 | private AssetsService assetsService; |
23 | 24 | ||
25 | + @Autowired | ||
26 | + private PreSaleOrderJob preSaleOrderJob; | ||
27 | + | ||
28 | + | ||
29 | + /** | ||
30 | + * 测试环境,定时任务手动触发 | ||
31 | + * 测试完之后去掉 | ||
32 | + * @return | ||
33 | + */ | ||
34 | + @RequestMapping(params = "method=ufo.qc.test") | ||
35 | + @ResponseBody | ||
36 | + public ApiResponse getAssetsDetails(){ | ||
37 | + logger.info("in ufo.qc.test"); | ||
38 | + preSaleOrderJob.process(""); | ||
39 | + return new ApiResponse.ApiResponseBuilder().code(200).data(null).message("ok").build(); | ||
40 | + } | ||
24 | 41 | ||
25 | 42 | ||
26 | @RequestMapping(params = "method=ufo.asssets.details") | 43 | @RequestMapping(params = "method=ufo.asssets.details") |
-
Please register or login to post a comment