顺序显示

This commit is contained in:
卢序振 2024-08-26 16:50:29 +08:00
parent 620675ac7f
commit 9e728237cd
3 changed files with 24 additions and 9 deletions

View File

@ -37,6 +37,7 @@
<if test="periodValidity != null and periodValidity != ''"> and period_validity = <if test="periodValidity != null and periodValidity != ''"> and period_validity =
#{periodValidity}</if> #{periodValidity}</if>
</where> </where>
ORDER BY date_time desc
</select> </select>
<select id="selectSpqListLibraryById" parameterType="String" resultMap="SpqListLibraryResult"> <select id="selectSpqListLibraryById" parameterType="String" resultMap="SpqListLibraryResult">

View File

@ -35,6 +35,7 @@
<if test="region != null and region != ''"> and region = <if test="region != null and region != ''"> and region =
#{region}</if> #{region}</if>
</where> </where>
ORDER BY times desc
</select> </select>
<select id="selectSpqTrafficRecordsById" parameterType="String" resultMap="SpqTrafficRecordsResult"> <select id="selectSpqTrafficRecordsById" parameterType="String" resultMap="SpqTrafficRecordsResult">

View File

@ -24,17 +24,29 @@
<select id="selectSpqAlarmOrderList" parameterType="SpqAlarmOrder" resultMap="SpqAlarmOrderResult"> <select id="selectSpqAlarmOrderList" parameterType="SpqAlarmOrder" resultMap="SpqAlarmOrderResult">
<include refid="selectSpqAlarmOrderVo"/> <include refid="selectSpqAlarmOrderVo"/>
<where> <where>
<if test="dangerScene != null and dangerScene != ''">and danger_scene = #{dangerScene}</if> <if test="dangerScene != null and dangerScene != ''">and danger_scene =
<if test="imgId != null and imgId != ''">and img_id = #{imgId}</if> #{dangerScene}</if>
<if test="alarmTime != null and alarmTime != ''">and alarm_time = #{alarmTime}</if> <if test="imgId != null and imgId != ''">and img_id =
<if test="sceneAddress != null and sceneAddress != ''">and scene_address = #{sceneAddress}</if> #{imgId}</if>
<if test="alarmDesc != null and alarmDesc != ''">and alarm_desc = #{alarmDesc}</if> <if test="alarmTime != null and alarmTime != ''">and alarm_time =
<if test="orderId != null and orderId != ''">and order_id like concat('%', #{orderId}, '%')</if> #{alarmTime}</if>
<if test="orderStatus != null and orderStatus != ''">and order_status = #{orderStatus}</if> <if test="sceneAddress != null and sceneAddress != ''">and scene_address =
<if test="workPerson != null and workPerson != ''">and work_person = #{workPerson}</if> #{sceneAddress}</if>
<if test="isDeleted != null and isDeleted != ''">and is_deleted = #{isDeleted}</if> <if test="alarmDesc != null and alarmDesc != ''">and alarm_desc =
#{alarmDesc}</if>
<if test="orderId != null and orderId != ''">and order_id like concat('%',
#{orderId},
'%'
)</if>
<if test="orderStatus != null and orderStatus != ''">and order_status =
#{orderStatus}</if>
<if test="workPerson != null and workPerson != ''">and work_person =
#{workPerson}</if>
<if test="isDeleted != null and isDeleted != ''">and is_deleted =
#{isDeleted}</if>
and order_status != '30' and order_status != '30'
</where> </where>
ORDER BY alarm_time desc
</select> </select>
<select id="selectSpqAlarmOrderListNo" parameterType="SpqAlarmOrder" resultMap="SpqAlarmOrderResult"> <select id="selectSpqAlarmOrderListNo" parameterType="SpqAlarmOrder" resultMap="SpqAlarmOrderResult">
@ -51,6 +63,7 @@
<if test="isDeleted != null and isDeleted != ''">and is_deleted = #{isDeleted}</if> <if test="isDeleted != null and isDeleted != ''">and is_deleted = #{isDeleted}</if>
and order_status != '10' and order_status != '10'
</where> </where>
ORDER BY alarm_time desc
</select> </select>
<select id="selectSpqAlarmOrderById" parameterType="String" resultMap="SpqAlarmOrderResult"> <select id="selectSpqAlarmOrderById" parameterType="String" resultMap="SpqAlarmOrderResult">