55 lines
1.5 KiB
Java
55 lines
1.5 KiB
Java
package com.ibeetl.jlw.web;
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
import com.ibeetl.jlw.service.StatisticalAnalysisService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import java.util.Date;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* 统计分析web
|
|
*
|
|
* @Version 0.0.1
|
|
* @Author 许良彤
|
|
* @Date 2022/10/6 11:08
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/api/statisticalAnalysis")
|
|
public class StatisticalAnalysisController {
|
|
|
|
@Autowired
|
|
private StatisticalAnalysisService statisticalAnalysisService;
|
|
|
|
/**
|
|
* 统计分析数据
|
|
* @param map
|
|
* @return
|
|
*/
|
|
@RequestMapping("/detail.do")
|
|
public JsonResult<Object> detail(@RequestParam("teacherOpenCourseId") Long teacherOpenCourseId,
|
|
@RequestParam(required = false) Date stime, @RequestParam(required = false) Date etime) {
|
|
Map<String, Object> detail = statisticalAnalysisService.detail(teacherOpenCourseId, stime, etime);
|
|
return JsonResult.success(detail);
|
|
|
|
}
|
|
|
|
/**
|
|
* 首页数据
|
|
* @param map
|
|
* @return
|
|
*/
|
|
@RequestMapping("/indexDetail.do")
|
|
public JsonResult<Object> indexDetail(String teacherOpenCourseId) {
|
|
Map<String, Object> detail = statisticalAnalysisService.indexDetail(teacherOpenCourseId);
|
|
return JsonResult.success(detail);
|
|
}
|
|
|
|
/**
|
|
* 管理员端查询
|
|
*/
|
|
|
|
} |