|
|
@@ -5,6 +5,7 @@ import cn.dev33.satoken.stp.StpUtil;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
|
|
|
import com.xjrsoft.common.annotation.XjrLog;
|
|
|
import com.xjrsoft.common.enums.DeleteMark;
|
|
|
import com.xjrsoft.common.enums.EnabledMark;
|
|
|
@@ -13,6 +14,8 @@ import com.xjrsoft.common.model.result.RT;
|
|
|
import com.xjrsoft.common.page.ConventPage;
|
|
|
import com.xjrsoft.common.page.PageOutput;
|
|
|
import com.xjrsoft.common.utils.TreeUtil;
|
|
|
+import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
|
+import com.xjrsoft.module.banding.entity.BandingTask;
|
|
|
import com.xjrsoft.module.banding.service.IBandingTaskService;
|
|
|
import com.xjrsoft.module.base.entity.BaseClass;
|
|
|
import com.xjrsoft.module.base.entity.BaseSemester;
|
|
|
@@ -242,7 +245,15 @@ public class StudentReportPlanController {
|
|
|
@SaCheckPermission("bandingrule:try-reading-plan")
|
|
|
@XjrLog(value="根据分班任务id查询试读报到计划信息")
|
|
|
public RT<StudentReportPlanVo> tryReadingPlan(@RequestParam Long id){
|
|
|
- EnrollmentPlan plan = enrollmentPlanService.getById(id);
|
|
|
+ EnrollmentPlan enrollmentPlan = enrollmentPlanService.getById(id);
|
|
|
+ StudentReportPlan plan = studentReportPlanService.getOne(
|
|
|
+ new MPJLambdaWrapper<StudentReportPlan>()
|
|
|
+ .select(StudentReportPlan::getId)
|
|
|
+ .select(StudentReportPlan.class, x -> VoToColumnUtil.fieldsToColumns(StudentReportPlan.class).contains(x.getProperty()))
|
|
|
+ .innerJoin(BandingTask.class, BandingTask::getId, StudentReportPlan::getBandingTaskId)
|
|
|
+ .eq(BandingTask::getEnrollType, enrollmentPlan.getEnrollType())
|
|
|
+ .eq(BandingTask::getGradeId, enrollmentPlan.getGradeId())
|
|
|
+ );
|
|
|
if (plan == null) {
|
|
|
return RT.error("找不到此数据!");
|
|
|
}
|