|
@@ -110,6 +110,7 @@ public class CourseSectionController {
|
110
|
110
|
return new ResultVo(0,"修改课节回放信息成功");
|
111
|
111
|
}*/
|
112
|
112
|
|
|
113
|
+ //教师直播端--课节列表
|
113
|
114
|
@PostMapping("/list_date")
|
114
|
115
|
public ResultVo listByDate(@RequestBody LCourseSection section) {
|
115
|
116
|
String sectiondate = section.getSectiondate();
|
|
@@ -118,18 +119,7 @@ public class CourseSectionController {
|
118
|
119
|
return new ResultVo(0,"根据日期获取教师课节列表成功",list);
|
119
|
120
|
}
|
120
|
121
|
|
121
|
|
- @PostMapping("/list_xkdate")
|
122
|
|
- public ResultVo listXkByDate(@RequestBody CourseParams params) {
|
123
|
|
- if (params.getUsertype() == null) return new ResultVo(1,"用户类型不能为空");
|
124
|
|
- N_Utils.validation(new Object[]{params.getTimestr(),"月份",2
|
125
|
|
- ,params.getPage(),"显示页码",1,params.getPageSize(),"显示条数",1
|
126
|
|
- ,params.getTeacherid(),"用户id",1,params.getSchoolid(),"学校id",1});
|
127
|
|
- courseSectionService.setClassIds(params);//设置教师任教行政和提高班id
|
128
|
|
- PageHelper.startPage(params.getPage(), params.getPageSize());
|
129
|
|
- List<CourseSectionVo> list = courseSectionService.listXkByDate(params);
|
130
|
|
- PageResult pageResult = PageUtil.getPageResult(new PageInfo(list));
|
131
|
|
- return new ResultVo(0,"根据日期获取教师课节列表成功",pageResult);
|
132
|
|
- }
|
|
122
|
+ //直播巡课--课节列表
|
133
|
123
|
@PostMapping("/list_xkdate2")
|
134
|
124
|
public ResultVo listXkByDate2(@RequestBody CourseParams params) {
|
135
|
125
|
if (params.getUsertype() == null) return new ResultVo(1, "用户类型不能为空");
|
|
@@ -138,7 +128,7 @@ public class CourseSectionController {
|
138
|
128
|
, params.getTeacherid(), "用户id", 1, params.getSchoolid(), "学校id", 1});
|
139
|
129
|
courseSectionService.setClassIds(params);//设置教师任教行政和提高班id
|
140
|
130
|
PageHelper.startPage(params.getPage(), params.getPageSize());
|
141
|
|
- List<CourseSectionVo> list = courseSectionService.listXkByDate2(params);
|
|
131
|
+ List<CourseSectionVo> list = courseSectionService.listXkByDate(params);
|
142
|
132
|
PageResult pageResult = PageUtil.getPageResult(new PageInfo(list));
|
143
|
133
|
return new ResultVo(0, "根据日期获取教师课节列表成功", pageResult);
|
144
|
134
|
}
|
|
@@ -158,7 +148,27 @@ public class CourseSectionController {
|
158
|
148
|
, params.getTeacherid(), "用户id", 1, params.getSchoolid(), "学校id", 1});
|
159
|
149
|
params.setUsertype(0);
|
160
|
150
|
PageHelper.startPage(params.getPage(), params.getPageSize());
|
161
|
|
- List<CourseSectionVo> list = courseSectionService.listXkByDate2(params);
|
|
151
|
+ List<CourseSectionVo> list = courseSectionService.listXkByDate(params);
|
|
152
|
+ PageResult pageResult = PageUtil.getPageResult(new PageInfo(list));
|
|
153
|
+ return new ResultVo(0, "根据日期获取教师课节列表成功", pageResult);
|
|
154
|
+ }
|
|
155
|
+
|
|
156
|
+ /**
|
|
157
|
+ * 教师听课-课节列表
|
|
158
|
+ *
|
|
159
|
+ * @return com.xhkjedu.vo.ResultVo
|
|
160
|
+ * @Param [params]
|
|
161
|
+ * @Author ywx
|
|
162
|
+ * @Date 2022/6/28 9:10
|
|
163
|
+ **/
|
|
164
|
+ @PostMapping("/list_jstkdate")
|
|
165
|
+ public ResultVo listJsTkByDate(@RequestBody CourseParams params) {
|
|
166
|
+ N_Utils.validation(new Object[]{params.getTimestr(), "月份", 2
|
|
167
|
+ , params.getPage(), "显示页码", 1, params.getPageSize(), "显示条数", 1
|
|
168
|
+ , params.getTeacherid(), "用户id", 1, params.getSchoolid(), "学校id", 1
|
|
169
|
+ , params.getGradeid(), "年级id", 1, params.getSubjectid(), "科目id", 2});
|
|
170
|
+ PageHelper.startPage(params.getPage(), params.getPageSize());
|
|
171
|
+ List<CourseSectionVo> list = courseSectionService.listXkByDate(params);
|
162
|
172
|
PageResult pageResult = PageUtil.getPageResult(new PageInfo(list));
|
163
|
173
|
return new ResultVo(0, "根据日期获取教师课节列表成功", pageResult);
|
164
|
174
|
}
|