Browse Source

学生报到计划

dzx 1 month ago
parent
commit
430dd98a5a

+ 4 - 0
src/main/java/com/xjrsoft/module/student/service/impl/StudentReportPlanServiceImpl.java

@@ -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());