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); }