|
@@ -9,13 +9,13 @@
|
|
|
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
|
|
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
|
|
WHERE t.delete_mark = 0
|
|
|
<if test="dto.majorIds != null and !dto.majorIds.isEmpty()">
|
|
<if test="dto.majorIds != null and !dto.majorIds.isEmpty()">
|
|
|
- and t1.major_set_id in
|
|
|
|
|
|
|
+ and t.id in
|
|
|
<foreach item="id" index="index" collection="dto.majorIds" open="(" close=")" separator=",">
|
|
<foreach item="id" index="index" collection="dto.majorIds" open="(" close=")" separator=",">
|
|
|
#{id}
|
|
#{id}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
<if test="dto.majorSetName != null and dto.majorSetName != ''">
|
|
<if test="dto.majorSetName != null and dto.majorSetName != ''">
|
|
|
- and t.name like concat('', #{dto.majorSetName},'')
|
|
|
|
|
|
|
+ and t.name like concat('%', #{dto.majorSetName},'%')
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getStudentMajorId" parameterType="com.xjrsoft.module.banding.dto.BandingTaskClassPageDto" resultType="com.xjrsoft.module.student.entity.BaseNewStudent">
|
|
<select id="getStudentMajorId" parameterType="com.xjrsoft.module.banding.dto.BandingTaskClassPageDto" resultType="com.xjrsoft.module.student.entity.BaseNewStudent">
|