diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByPlanweekController.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByPlanweekController.java index 0494a35d8..98ca9bb54 100644 --- a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByPlanweekController.java +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByPlanweekController.java @@ -58,7 +58,15 @@ public class ByPlanweekController extends BaseController { @GetMapping("/list") public TableDataInfo list(ByPlanweek byPlanweek) { startPage(); - List list = byPlanweekService.selectByPlanweekList(byPlanweek); + byPlanweek.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId()); + String classId = schoolCommon.getClassId(); + List list =null; + //首先判断当前账户是否为幼儿园账号 + if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) { + byPlanweek.setClassid(classId); + list = byPlanweekService.selectByPlanweekList(byPlanweek); + } + return getDataTable(list); }