许鹏程
2023-06-30 3bbfaa3d7d416afbd154576453c8ee9e7e2f8899
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//package com.product.kt.test.controller;
//
//import javax.servlet.http.HttpServletRequest;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.product.core.controller.support.AbstractBaseController;
//import com.product.core.entity.FieldSetEntity;
//import com.product.core.exception.BaseException;
//import com.product.kt.test.service.ToolsThread;
//import com.product.module.sys.version.ApiVersion;
//import com.product.util.BaseUtil;
//
//@RequestMapping("/api/testSync")
//@RestController
//public class TestAsyncController extends AbstractBaseController {
//
//    @Autowired
//    ToolsThread toolsThread;
//
//    /**
//     * 测试拉取数据
//     *
//     * @param request
//     * @return
//     */
//    @PostMapping("/test-sync/{version}")
//    @ApiVersion(1)
//    public String listMonitor(HttpServletRequest request) {
//        try {
//            FieldSetEntity fse = BaseUtil.getFieldSetEntity(request);
//            toolsThread.receiveBookJobRun();
//            return OK();
//        } catch (BaseException e) {
//            e.printStackTrace();
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//        return null;
//    }
//}