周计划和详细 页面优化
This commit is contained in:
parent
1be3ca9d3b
commit
1247162886
@ -77,8 +77,8 @@ public class ByPlanweekController extends BaseController {
|
|||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody ByPlanweek byPlanweek) {
|
public AjaxResult add(@RequestBody ByPlanweek byPlanweek) {
|
||||||
String classId = schoolCommon.getClassId();
|
String classId = schoolCommon.getClassId();
|
||||||
//首先判断当前账户是否为幼儿园账号
|
// 首先判断当前账户是否为幼儿园账号
|
||||||
//if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
||||||
String uuid = schoolCommon.getUuid();
|
String uuid = schoolCommon.getUuid();
|
||||||
byPlanweek.setId(uuid);
|
byPlanweek.setId(uuid);
|
||||||
//学校id
|
//学校id
|
||||||
@ -89,9 +89,9 @@ public class ByPlanweekController extends BaseController {
|
|||||||
byPlanweek.setClassid(classId);
|
byPlanweek.setClassid(classId);
|
||||||
byPlanweek.setStatus("0");
|
byPlanweek.setStatus("0");
|
||||||
return toAjax(byPlanweekService.insertByPlanweek(byPlanweek));
|
return toAjax(byPlanweekService.insertByPlanweek(byPlanweek));
|
||||||
// } else {
|
} else {
|
||||||
// return AjaxResult.error("当前用户非幼儿园,无法添加计划");
|
return AjaxResult.error("当前用户非幼儿园,无法添加计划");
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user