|
@@ -50,6 +50,9 @@ public class GuideController {
|
50
|
50
|
Map<String, String> map = classService.getQxClassidsByTeacherid(createid);
|
51
|
51
|
guide.setClassids(map.get("classids"));
|
52
|
52
|
guide.setBxclassids(map.get("bxclassids"));
|
|
53
|
+ if (N_Utils.isEmpty(guide.getSchoolid())) {
|
|
54
|
+ guide.setSchoolid(N_Utils.str2Int(map.get("userschoolid")));
|
|
55
|
+ }
|
53
|
56
|
PageHelper.startPage(page, pageSize);
|
54
|
57
|
List<GuideVo> list = guideService.listGuidesForTeacherWeb(guide);
|
55
|
58
|
PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(list));
|
|
@@ -67,6 +70,9 @@ public class GuideController {
|
67
|
70
|
Map<String, String> map = classService.getQxClassidsByTeacherid(createid);
|
68
|
71
|
guide.setClassids(map.get("classids"));
|
69
|
72
|
guide.setBxclassids(map.get("bxclassids"));
|
|
73
|
+ if (N_Utils.isEmpty(guide.getSchoolid())) {
|
|
74
|
+ guide.setSchoolid(N_Utils.str2Int(map.get("userschoolid")));
|
|
75
|
+ }
|
70
|
76
|
guide.setPage((page - 1)*pageSize);
|
71
|
77
|
List<Map> list = guideService.listGuidesForTeacherApp(guide);
|
72
|
78
|
return new ResultVo(0,"获取教师预习列表成功",list);
|