src/main/java/com/jubilantz/controller/EasEchartController.java
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.jubilantz.controller;
import com.jubilantz.entity.EasBaseCourse;
import com.jubilantz.services.EasBaseCourseService;
import com.jubilantz.services.EasCourseService;
import com.jubilantz.services.EasStudentService;
import com.jubilantz.services.EasTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.HashMap;
import java.util.Map;
/**
* @Author JubilantZ
* @Date: 2021/4/29 18:29
*/
@RequestMapping("/easEchart")
@Controller
public class EasEchartController {
@Autowired
private EasStudentService easStudentService;
@Autowired
private EasTeacherService easTeacherService;
@Autowired
private EasCourseService easCourseService;
@Autowired
private EasBaseCourseService easBaseCourseService;
@RequestMapping("/scoreEchart")
public String scoreEchart(){
return "echarts/ScoreEcharts";
}
@RequestMapping("/peopleEchart")
public String peopleEchart(){
return "echarts/peopleEcharts";
}
@RequestMapping("/getAllStuAndTea")
@ResponseBody
public Map<String,Object> getAllStuAndTea(){
Map<String, Object> map = new HashMap<>();
int totalStu = easStudentService.getTotal();
int totalTea = easTeacherService.getTotal();
// System.out.println("教师总行数---->"+totalTea);
map.put("totalStu",totalStu);
map.put("totalTea",totalTea);
map.put("code",0);
map.put("msg","我是返回的内容");
return map;
}
后面还有 48 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
