|
|
@ -48,10 +48,10 @@
|
|
|
|
and DATE_FORMAT(update_time, '%Y-%m-%d') <= DATE_FORMAT(#{modelCase.updateEndTime}, '%Y-%m-%d')
|
|
|
|
and DATE_FORMAT(update_time, '%Y-%m-%d') <= DATE_FORMAT(#{modelCase.updateEndTime}, '%Y-%m-%d')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="modelCase.orderType == 'DESC'">
|
|
|
|
<if test="modelCase.orderType == 'DESC'">
|
|
|
|
order by total_score desc
|
|
|
|
order by ${modelCase.orderBy} desc
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="modelCase.orderType == 'ASC'">
|
|
|
|
<if test="modelCase.orderType == 'ASC'">
|
|
|
|
order by total_score asc
|
|
|
|
order by ${modelCase.orderBy} asc
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="selectMaxIndex" resultType="java.lang.Integer">
|
|
|
|
<select id="selectMaxIndex" resultType="java.lang.Integer">
|
|
|
|