|
@@ -85,11 +85,24 @@
|
|
AND t1.stduy_status = #{dto.stduyStatus}
|
|
AND t1.stduy_status = #{dto.stduyStatus}
|
|
</if>
|
|
</if>
|
|
<if test="dto.status != null">
|
|
<if test="dto.status != null">
|
|
- AND t2.status = #{dto.status}
|
|
|
|
|
|
+ <if test="dto.status == 1">
|
|
|
|
+ AND t3.name is not null
|
|
|
|
+ </if>
|
|
|
|
+ <if test="dto.status == 0">
|
|
|
|
+ AND t3.name is null
|
|
|
|
+ </if>
|
|
</if>
|
|
</if>
|
|
<if test="dto.className != null and dto.className != ''">
|
|
<if test="dto.className != null and dto.className != ''">
|
|
AND t3.name like concat('%', #{dto.className}, '%')
|
|
AND t3.name like concat('%', #{dto.className}, '%')
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="dto.field != null and dto.field != '' and dto.field == 'score'">
|
|
|
|
+ <if test="dto.order == 'descend'">
|
|
|
|
+ order by t1.score desc
|
|
|
|
+ </if>
|
|
|
|
+ <if test="dto.order == 'ascend'">
|
|
|
|
+ order by t1.score asc
|
|
|
|
+ </if>
|
|
|
|
+ </if>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getMajorClassCount" resultType="com.xjrsoft.module.outint.vo.IdCountVo">
|
|
<select id="getMajorClassCount" resultType="com.xjrsoft.module.outint.vo.IdCountVo">
|