From bc835f7b8d4ab951999ff7a08bf62d18daa0461e Mon Sep 17 00:00:00 2001 From: EricsHu <hrr145632> Date: 星期日, 25 六月 2023 16:59:36 +0800 Subject: [PATCH] 关闭定时器 --- src/main/java/com/qxueyou/scc/stucontroller/StuNoticeController.java | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/qxueyou/scc/stucontroller/StuNoticeController.java b/src/main/java/com/qxueyou/scc/stucontroller/StuNoticeController.java index 2922ce7..dc6deac 100644 --- a/src/main/java/com/qxueyou/scc/stucontroller/StuNoticeController.java +++ b/src/main/java/com/qxueyou/scc/stucontroller/StuNoticeController.java @@ -26,7 +26,7 @@ import java.util.Map; import java.util.Set; -@Api(tags = "公告接口-学员端") +@Api(tags = "鍏憡鎺ュ彛-瀛﹀憳绔�") @RestController @RequestMapping(value = "/stu/notice") public class StuNoticeController { @@ -46,14 +46,14 @@ * @param classId * @return */ - @ApiOperation(value = "公告列表", notes = "获取班级列表及班级所在公告列表") + @ApiOperation(value = "鍏憡鍒楄〃", notes = "鑾峰彇鐝骇鍒楄〃鍙婄彮绾ф墍鍦ㄥ叕鍛婂垪琛�") @ApiImplicitParams({ - @ApiImplicitParam(name = "classId", value = "班级id", required = false, paramType="query", dataType = "String") + @ApiImplicitParam(name = "classId", value = "鐝骇id", required = false, paramType="query", dataType = "String") }) @GetMapping(value = "list") public Result list(Integer pageNum, Integer pageSize, String classId) { - //获取班级列表及班级所在通知列表 + //鑾峰彇鐝骇鍒楄〃鍙婄彮绾ф墍鍦ㄩ�氱煡鍒楄〃 List<String> noticeIds = dao.getClassNotices(StringUtils.isEmpty(classId)?ClientUtils.getClassId():classId); List<Notice> notices = noticeService.readByStatus(noticeIds, Notice.STATUS_ISSUED); @@ -76,15 +76,15 @@ } /** - * 获取未读消息总数 + * 鑾峰彇鏈娑堟伅鎬绘暟 * * @return */ - @ApiOperation(value = "获取未读消息总数") + @ApiOperation(value = "鑾峰彇鏈娑堟伅鎬绘暟") @GetMapping(value = "getCountToView") public Result getCountToView() { - //获取班级列表及班级所在通知列表 + //鑾峰彇鐝骇鍒楄〃鍙婄彮绾ф墍鍦ㄩ�氱煡鍒楄〃 List<ClsClass> clsLst = classService.listMyClass(); Set<String> noticeIdLst = new HashSet<String>(10); @@ -102,19 +102,19 @@ } /** - * 获取通知详情 + * 鑾峰彇閫氱煡璇︽儏 * * @param noticeId * @return */ - @ApiOperation(value = "获取公告详情") + @ApiOperation(value = "鑾峰彇鍏憡璇︽儏") @ApiImplicitParams({ - @ApiImplicitParam(name = "noticeId", value = "公告id", required = true, paramType="query", dataType = "String") + @ApiImplicitParam(name = "noticeId", value = "鍏憡id", required = true, paramType="query", dataType = "String") }) @GetMapping(value = "detail") public Result detail(String noticeId) { Notice notice = noticeService.read(noticeId); - dao.addReadCount(noticeId, ClientUtils.getUserId());//记录学员已读通知的人数; + dao.addReadCount(noticeId, ClientUtils.getUserId());//璁板綍瀛﹀憳宸茶閫氱煡鐨勪汉鏁�; return new Result(true, "success", CollectionUtils.newObjectMap( "noticeName", notice.getTitle(), @@ -126,9 +126,9 @@ )); } - @ApiOperation(value = "更新公告查看次数", notes = "") + @ApiOperation(value = "鏇存柊鍏憡鏌ョ湅娆℃暟", notes = "") @ApiImplicitParams({ - @ApiImplicitParam(name = "noticeId", value = "公告id", required = true, paramType = "query", dataType = "String") + @ApiImplicitParam(name = "noticeId", value = "鍏憡id", required = true, paramType = "query", dataType = "String") }) @GetMapping(value = "view") public Result view(String noticeId) { -- Gitblit v1.8.0