|
@@ -63,7 +63,11 @@ public class XzController {
|
63
|
63
|
if (DatesUtil.dateNan(xz.getBegindate()) || DatesUtil.dateNan(xz.getEnddate())) {
|
64
|
64
|
return new ResultVo(1, "日期格式不正确");
|
65
|
65
|
}
|
66
|
|
- return xzService.saveXz(xz);
|
|
66
|
+ ResultVo vo = xzService.saveXz(xz);
|
|
67
|
+ if (vo.getCode() == 0) {
|
|
68
|
+ xzService.checkClass(xz.getSchoolid(), xz.getGradeid());
|
|
69
|
+ }
|
|
70
|
+ return vo;
|
67
|
71
|
}
|
68
|
72
|
|
69
|
73
|
/**
|
|
@@ -80,6 +84,22 @@ public class XzController {
|
80
|
84
|
return new ResultVo(0, "修改成功");
|
81
|
85
|
}
|
82
|
86
|
|
|
87
|
+ /**
|
|
88
|
+ * @Description 校验班级
|
|
89
|
+ * @Param [xz]
|
|
90
|
+ * @Author ywx
|
|
91
|
+ * @Date 2023/6/1 16:15
|
|
92
|
+ * @return com.xhkjedu.vo.ResultVo
|
|
93
|
+ **/
|
|
94
|
+ @PostMapping("/cc")
|
|
95
|
+ public ResultVo checkClass(@RequestBody LXz xz) {
|
|
96
|
+ Integer schoolid = xz.getSchoolid();
|
|
97
|
+ Integer gradeid = xz.getGradeid();
|
|
98
|
+ N_Utils.validation(new Object[]{schoolid, "学校id", 1, gradeid, "年级id", 1});
|
|
99
|
+ xzService.checkClass(schoolid, gradeid);
|
|
100
|
+ return new ResultVo(0, "校验班级成功");
|
|
101
|
+ }
|
|
102
|
+
|
83
|
103
|
/**
|
84
|
104
|
* @Description 行政直播详细信息
|
85
|
105
|
* @Param [xz]
|