|
@@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
+import com.ssj.api.security.annotation.IgnoreSecurity;
|
|
|
import com.ssj.framework.basic.common.bean.SplitPage;
|
|
|
import com.ssj.framework.core.common.controller.BaseController;
|
|
|
import com.ssj.framework.core.util.ResponseEntity;
|
|
@@ -45,7 +46,37 @@ public class AnalysisController extends BaseController {
|
|
|
@Autowired
|
|
|
private AnalysisWeekService analysisWeekService;
|
|
|
|
|
|
+ @IgnoreSecurity
|
|
|
+ @RequestMapping("/refresh/day")
|
|
|
+ @ResponseBody
|
|
|
+ public ResponseEntity refreshDay() {
|
|
|
+ ResponseEntity responseEntity = new ResponseEntity();
|
|
|
+ try{
|
|
|
+ logger.info("统计前一天的接口数据开始");
|
|
|
+ analysisCountService.runTaskAnalysisCount();
|
|
|
+ responseEntity.success("操作成功");
|
|
|
+ }catch (Exception e) {
|
|
|
+ logger.error("统计前一天的接口数据异常-->"+e.getMessage());
|
|
|
+ }
|
|
|
+ return responseEntity;
|
|
|
+ }
|
|
|
+
|
|
|
+ @IgnoreSecurity
|
|
|
+ @RequestMapping("/refresh/week")
|
|
|
+ @ResponseBody
|
|
|
+ public ResponseEntity refreshWeek() {
|
|
|
+ ResponseEntity responseEntity = new ResponseEntity();
|
|
|
+ try {
|
|
|
+ logger.info("统计前一天周的接口数据开始");
|
|
|
+ analysisWeekService.runTaskByAnalysisWeek();
|
|
|
+ responseEntity.success("操作成功");
|
|
|
+ } catch (Exception e) {
|
|
|
+ logger.error("统计前一天周的接口数据异常-->"+e.getMessage());
|
|
|
+ }
|
|
|
+ return responseEntity;
|
|
|
+ }
|
|
|
|
|
|
+
|
|
|
//--------------------------数据汇总数据分析-------------------------------------
|
|
|
|
|
|
@RequestMapping("/index")
|