From 56a9879e531ce45f2dc55c2b61106eea6cf00e3f Mon Sep 17 00:00:00 2001 From: "hechao.zhu" Date: Sat, 7 Oct 2023 11:23:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96&=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9=2010.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../course/controller/SeCourseController.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/course/controller/SeCourseController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/course/controller/SeCourseController.java index 466b316..7d83fb5 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/course/controller/SeCourseController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/course/controller/SeCourseController.java @@ -185,15 +185,15 @@ public class SeCourseController extends JeecgController queryById(@RequestParam(name="id",required=true) String id) { + public Result queryById(@RequestParam(name = "id", required = true) String id) { SeCourse sc = seCourseService.getById(id); - if(sc==null) { + if (sc == null) { return Result.error("未找到对应数据"); } return Result.OK(sc); @@ -508,22 +508,22 @@ public class SeCourseController extends JeecgController dqyh(HttpServletRequest req) { LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); - Map map = new HashMap<>(); + Map map = new HashMap<>(); SeTeacherManage seTeacherManage = new SeTeacherManage(); QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(seTeacherManage, req.getParameterMap()); - queryWrapper.eq("userid",user.getId()); + queryWrapper.eq("userid", user.getId()); List list = seTeacherManageService.list(queryWrapper); - map.put("depid",user.getDepartIds()); - map.put("teachingandoffice",user.getDepartIds()); - map.put("majorid",list.get(0).getProfession()); - map.put("verifier",user.getUsername()); + map.put("depid", user.getDepartIds()); + map.put("teachingandoffice", user.getDepartIds()); + map.put("majorid", list.get(0).getProfession()); + map.put("verifier", user.getUsername()); return Result.OK(map); } @AutoLog(value = "考核目标-分页列表查询") @ApiOperation(value = "考核目标-分页列表查询", notes = "考核目标-分页列表查询") @GetMapping(value = "/getnrxz") - public Result getnrxz(@RequestParam(name = "id", required = true)String id) { + public Result getnrxz(@RequestParam(name = "id", required = true) String id) { SeCourse sc = seCourseService.getById(id); return Result.OK(sc); }