|
@@ -0,0 +1,35 @@
|
|
|
+package com.yonge.cooleshow.teacher.task;
|
|
|
+
|
|
|
+import com.yonge.cooleshow.biz.dal.service.TeacherService;
|
|
|
+import com.yonge.cooleshow.biz.dal.vo.TeacherTotalVo;
|
|
|
+import com.yonge.cooleshow.common.controller.BaseController;
|
|
|
+import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Author: liweifan
|
|
|
+ * @Data: 2022/3/28 15:50
|
|
|
+ */
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/task")
|
|
|
+public class TaskController extends BaseController {
|
|
|
+ @Autowired
|
|
|
+ private TeacherService teacherService;
|
|
|
+
|
|
|
+ /***
|
|
|
+ * 查询所有老师统计数据
|
|
|
+ * @author liweifan
|
|
|
+ * @updateTime 2022/3/28 10:12
|
|
|
+ * @return: com.yonge.cooleshow.common.entity.HttpResponseResult<java.util.List < com.yonge.cooleshow.biz.dal.vo.TeacherTotalVo>>
|
|
|
+ */
|
|
|
+ @GetMapping("/queryTeacherHomeTotal")
|
|
|
+ public HttpResponseResult<List<TeacherTotalVo>> queryTeacherHomeTotal() {
|
|
|
+ return succeed(teacherService.queryTeacherHomeTotal());
|
|
|
+ }
|
|
|
+}
|