|
@@ -4,6 +4,7 @@ import com.github.pagehelper.PageHelper;
|
4
|
4
|
import com.github.pagehelper.PageInfo;
|
5
|
5
|
import com.xhkjedu.annotation.Action;
|
6
|
6
|
import com.xhkjedu.sapi.model.notice.TNotice;
|
|
7
|
+import com.xhkjedu.sapi.model.notice.TNoticeUser;
|
7
|
8
|
import com.xhkjedu.sapi.service.notice.NoticeService;
|
8
|
9
|
import com.xhkjedu.utils.N_Utils;
|
9
|
10
|
import com.xhkjedu.utils.PageUtil;
|
|
@@ -147,14 +148,40 @@ public class NoticeController {
|
147
|
148
|
return new ResultVo(0,"获取学生通知列表成功",pageResult);
|
148
|
149
|
}
|
149
|
150
|
|
|
151
|
+ /**
|
|
152
|
+ * @Description 通知对象列表
|
|
153
|
+ * @Date 2023/12/22 9:39
|
|
154
|
+ * @Author YWX
|
|
155
|
+ * @Param [nu]
|
|
156
|
+ * @Return com.xhkjedu.vo.ResultVo
|
|
157
|
+ **/
|
150
|
158
|
@PostMapping("/list_user")
|
151
|
|
- public ResultVo listUser(@RequestBody TNotice notice) {
|
152
|
|
- Integer noticeid = notice.getNoticeid();
|
|
159
|
+ public ResultVo listUser(@RequestBody TNoticeUser nu) {
|
|
160
|
+ Integer noticeid = nu.getNoticeid();
|
153
|
161
|
N_Utils.validation(new Object[]{noticeid, "通知id", 1});
|
154
|
|
- List<Map> list = noticeService.listUser(noticeid);
|
|
162
|
+ List<Map> list = noticeService.listUser(nu);
|
155
|
163
|
return new ResultVo(0, "获取通知对象成功", list);
|
156
|
164
|
}
|
157
|
165
|
|
|
166
|
+ /**
|
|
167
|
+ * @Description 通知对象分页列表
|
|
168
|
+ * @Date 2023/12/22 9:39
|
|
169
|
+ * @Author YWX
|
|
170
|
+ * @Param [nu]
|
|
171
|
+ * @Return com.xhkjedu.vo.ResultVo
|
|
172
|
+ **/
|
|
173
|
+ @PostMapping("/list_userp")
|
|
174
|
+ public ResultVo listUserPaging(@RequestBody TNoticeUser nu) {
|
|
175
|
+ Integer noticeid = nu.getNoticeid();
|
|
176
|
+ Integer page = nu.getPage();
|
|
177
|
+ Integer pageSize = nu.getPageSize();
|
|
178
|
+ N_Utils.validation(new Object[]{noticeid, "通知id", 1, page, "显示页码", 1, pageSize, "显示条数"});
|
|
179
|
+ PageHelper.startPage(page, pageSize);
|
|
180
|
+ List<Map> list = noticeService.listUser(nu);
|
|
181
|
+ PageResult pageResult = PageUtil.getPageResult(new PageInfo(list));
|
|
182
|
+ return new ResultVo(0, "获取通知对象成功", pageResult);
|
|
183
|
+ }
|
|
184
|
+
|
158
|
185
|
/*
|
159
|
186
|
* @Description 处理班级通知到学生个人
|
160
|
187
|
* @Date 2023/12/18 17:41:09
|