优化排序问题

topo_dev
liu 9 months ago
parent 69455126c8
commit e2ff12a07f

@ -77,6 +77,6 @@
left join model_index_result mir on (mi.id = mir.index_id and mir.case_id = #{caseId})
WHERE mi.data_status = '1'
and mi.index_type = #{indexType}
order by mir.index_result, mi.id desc
order by CASE mir.index_result WHEN 'true' THEN 1 WHEN 'false' THEN 2 else 0 END, mi.id desc
</select>
</mapper>
Loading…
Cancel
Save