|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.github.yulichang.base.MPJBaseServiceImpl;
|
|
|
+import com.xjrsoft.common.enums.DeleteMark;
|
|
|
import com.xjrsoft.common.enums.EnabledMark;
|
|
|
import com.xjrsoft.module.base.entity.BaseClass;
|
|
|
import com.xjrsoft.module.organization.entity.User;
|
|
@@ -56,6 +57,9 @@ public class StudentReportPlanServiceImpl extends MPJBaseServiceImpl<StudentRepo
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public Boolean add(StudentReportPlan studentReportPlan) {
|
|
|
+ studentReportPlan.setDeleteMark(DeleteMark.NODELETE.getCode());
|
|
|
+ studentReportPlan.setEnabledMark(EnabledMark.ENABLED.getCode());
|
|
|
+ studentReportPlan.setCreateDate(new Date());
|
|
|
planMapper.insert(studentReportPlan);
|
|
|
for (StudentReportPlanClassRelation studentReportPlanClassRelation : studentReportPlan.getStudentReportPlanClassRelationList()) {
|
|
|
studentReportPlanClassRelation.setStudentReportPlanId(studentReportPlan.getId());
|