| 123456789101112131415161718192021222324 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.xjrsoft.module.banding.mapper.BandingTaskMajorConditionMapper">
- <select id="getList" parameterType="com.xjrsoft.module.banding.dto.BandingTaskMajorConditionListDto"
- resultType="com.xjrsoft.module.banding.vo.BandingTaskMajorConditionListVo">
- SELECT t1.id, t.id AS major_set_id, t.name AS major_set_name,t1.banding_task_id,t1.height,t1.score, t1.sort_code FROM base_major_set t
- LEFT JOIN banding_task_major_condition t1 ON t1.major_set_id = t.id and t1.banding_task_id = #{dto.bandingTaskId} and t1.delete_mark = 0
- WHERE t.delete_mark = 0
- <if test="dto.majorIds != null and !dto.majorIds.isEmpty()">
- and t1.major_set_id in
- <foreach item="id" index="index" collection="dto.majorIds" open="(" close=")" separator=",">
- #{id}
- </foreach>
- </if>
- </select>
- <select id="getStudentMajorId" parameterType="com.xjrsoft.module.banding.dto.BandingTaskClassPageDto" resultType="com.xjrsoft.module.student.entity.BaseNewStudent">
- SELECT t1.* FROM base_new_student t1
- INNER JOIN enrollment_plan t2 ON t1.enrollment_plan_id = t2.id
- WHERE t1.delete_mark = 0
- AND t2.enroll_type = #{dto.enrollType} and t2.grade_id = #{dto.gradeId}
- </select>
- </mapper>
|