Commit ec210524 authored by hezhuozhi's avatar hezhuozhi

修复电站统计bug

parent 7e9fa9e2
...@@ -63,14 +63,13 @@ public class TestController extends BaseController { ...@@ -63,14 +63,13 @@ public class TestController extends BaseController {
BasicGridRecordMapper basicGridRecordMapper; BasicGridRecordMapper basicGridRecordMapper;
@Autowired @Autowired
AcceptanceCheckMapper acceptanceCheckMapper; AcceptanceCheckMapper acceptanceCheckMapper;
private ExecutorService executorService;
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@GetMapping(value = "/initTime") @GetMapping(value = "/initTime")
@ApiOperation(httpMethod = "GET", value = "初始时间", notes = "初始时间") @ApiOperation(httpMethod = "GET", value = "初始时间", notes = "初始时间")
public ResponseModel<Object> initTime() { public ResponseModel<Object> initTime() {
// 创建线程池 // 创建线程池
executorService = Executors.newFixedThreadPool(5); ExecutorService executorService = Executors.newFixedThreadPool(5);
// 提交不同的方法 // 提交不同的方法
executorService.submit(this::dealKcTime); executorService.submit(this::dealKcTime);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment