周教学计划优化

This commit is contained in:
zhanglipeng
2020-11-18 11:23:06 +08:00
parent 477176c1b9
commit 6918402224
5 changed files with 113 additions and 64 deletions

View File

@ -1,5 +1,6 @@
package com.ruoyi.project.benyi.controller;
import java.text.SimpleDateFormat;
import java.util.List;
import com.ruoyi.common.utils.SecurityUtils;
@ -98,6 +99,8 @@ public class ByPlanweekController extends BaseController {
// 首先判断当前账户是否为幼儿园账号
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
String uuid = schoolCommon.getUuid();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
byPlanweek.setName(byPlanweek.getName()+"("+sdf.format(byPlanweek.getStarttime())+'-'+sdf.format(byPlanweek.getEndtime())+")");
byPlanweek.setId(uuid);
//学校id
byPlanweek.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());