1、月计划自动生成子项 2、微型课程 复制

This commit is contained in:
zhanglipeng
2021-09-06 11:33:39 +08:00
parent 3d35107e24
commit 284602e4ac
3 changed files with 78 additions and 21 deletions

View File

@ -173,6 +173,17 @@ public class ByThemeMonthplanController extends BaseController {
byThemeMonthplan.setCreateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM");
byThemeMonthplan.setName(byClassService.selectByClassById(classId).getBjmc() + "-主题整合月计划" + "(" + sdf.format(byThemeMonthplan.getMonth()) + ")");
// 默认创建4个周内容项如果当前月份5个周 那么由用户自己删 或 增
ByThemeMonthplanitem byThemeMonthplanitem=null;
for(int i=1;i<5;i++){
byThemeMonthplanitem=new ByThemeMonthplanitem();
byThemeMonthplanitem.setId(schoolCommon.getUuid());
byThemeMonthplanitem.setMpid(uuid);
byThemeMonthplanitem.setZc(Long.valueOf(i));
byThemeonthplanitemService.insertByThemeMonthplanitem(byThemeMonthplanitem);
}
return toAjax(byThemeMonthplanService.insertByThemeMonthplan(byThemeMonthplan));
}
} else {