顺序显示

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 =
#{periodValidity}</if>
</where>
ORDER BY date_time desc
</select>
<select id="selectSpqListLibraryById" parameterType="String" resultMap="SpqListLibraryResult">

View File

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

View File

@ -24,17 +24,29 @@
<select id="selectSpqAlarmOrderList" parameterType="SpqAlarmOrder" resultMap="SpqAlarmOrderResult">
<include refid="selectSpqAlarmOrderVo"/>
<where>
<if test="dangerScene != null and dangerScene != ''">and danger_scene = #{dangerScene}</if>
<if test="imgId != null and imgId != ''">and img_id = #{imgId}</if>
<if test="alarmTime != null and alarmTime != ''">and alarm_time = #{alarmTime}</if>
<if test="sceneAddress != null and sceneAddress != ''">and scene_address = #{sceneAddress}</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>
<if test="dangerScene != null and dangerScene != ''">and danger_scene =
#{dangerScene}</if>
<if test="imgId != null and imgId != ''">and img_id =
#{imgId}</if>
<if test="alarmTime != null and alarmTime != ''">and alarm_time =
#{alarmTime}</if>
<if test="sceneAddress != null and sceneAddress != ''">and scene_address =
#{sceneAddress}</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'
</where>
ORDER BY alarm_time desc
</select>
<select id="selectSpqAlarmOrderListNo" parameterType="SpqAlarmOrder" resultMap="SpqAlarmOrderResult">
@ -51,6 +63,7 @@
<if test="isDeleted != null and isDeleted != ''">and is_deleted = #{isDeleted}</if>
and order_status != '10'
</where>
ORDER BY alarm_time desc
</select>
<select id="selectSpqAlarmOrderById" parameterType="String" resultMap="SpqAlarmOrderResult">