|
|
|
@ -47,7 +47,12 @@
|
|
|
|
|
<if test="modelCase.updateEndTime != null">
|
|
|
|
|
and DATE_FORMAT(update_time, '%Y-%m-%d') <= DATE_FORMAT(#{modelCase.updateEndTime}, '%Y-%m-%d')
|
|
|
|
|
</if>
|
|
|
|
|
order by index_num,update_time desc
|
|
|
|
|
<if test="modelCase.orderType == 'DESC'">
|
|
|
|
|
order by total_score desc
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modelCase.orderType == 'ASC'">
|
|
|
|
|
order by total_score asc
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectMaxIndex" resultType="java.lang.Integer">
|
|
|
|
|
select ifnull(max(index_num), 0)
|
|
|
|
|