From 1247162886cc7c153ba8f5fde9fe384b9164d95d Mon Sep 17 00:00:00 2001 From: sk1551 <15175617877@163.com> Date: Mon, 31 Aug 2020 10:55:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=A8=E8=AE=A1=E5=88=92=E5=92=8C=E8=AF=A6?= =?UTF-8?q?=E7=BB=86=20=20=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/benyi/controller/ByPlanweekController.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 cd7cf59e2..fe66bd13d 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 @@ -77,8 +77,8 @@ public class ByPlanweekController extends BaseController { @PostMapping public AjaxResult add(@RequestBody ByPlanweek byPlanweek) { String classId = schoolCommon.getClassId(); - //首先判断当前账户是否为幼儿园账号 - //if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) { + // 首先判断当前账户是否为幼儿园账号 + if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) { String uuid = schoolCommon.getUuid(); byPlanweek.setId(uuid); //学校id @@ -89,9 +89,9 @@ public class ByPlanweekController extends BaseController { byPlanweek.setClassid(classId); byPlanweek.setStatus("0"); return toAjax(byPlanweekService.insertByPlanweek(byPlanweek)); -// } else { -// return AjaxResult.error("当前用户非幼儿园,无法添加计划"); -// } + } else { + return AjaxResult.error("当前用户非幼儿园,无法添加计划"); + } } /**