You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
912 B
Java
29 lines
912 B
Java
2 years ago
|
package com.glxp.api.controller;
|
||
|
|
||
|
import com.glxp.api.common.res.BaseResponse;
|
||
|
import com.glxp.api.common.util.ResultVOUtils;
|
||
|
import com.glxp.api.req.sync.BasicExportStatusRequest;
|
||
|
import com.glxp.api.task.TestStatOrderService;
|
||
|
import lombok.extern.slf4j.Slf4j;
|
||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
||
|
import javax.annotation.Resource;
|
||
|
|
||
|
@Slf4j
|
||
|
@RestController
|
||
|
public class TestController {
|
||
|
@Resource
|
||
|
TestStatOrderService statOrderService;
|
||
|
|
||
|
|
||
|
@GetMapping("/test/stat/order")
|
||
|
public BaseResponse getStatus(BasicExportStatusRequest basicExportStatusRequest) {
|
||
|
long start = System.currentTimeMillis();
|
||
|
statOrderService.starGen(start);
|
||
|
long end = System.currentTimeMillis();
|
||
|
return ResultVOUtils.success("生成成功!" + start + "=====" + end + "\n-------" + (start - end));
|
||
|
}
|
||
|
|
||
|
}
|