Эх сурвалжийг харах

公务用车 时间排序

zhanghao 3 сар өмнө
parent
commit
2c7d85106a

+ 3 - 0
src/main/resources/mapper/zcustom/car/PlatCarMapper.xml

@@ -105,6 +105,8 @@
         WHERE
         flag = #{flag}
         <if test="appOrg != '10001'">AND b.app_org = #{appOrg}</if>
+        <if test="flag == 0">ORDER BY org_date DESC</if>
+        <if test="flag == 1">ORDER BY handle_date DESC</if>
         LIMIT #{pageSize} OFFSET #{page}
     </select>
 
@@ -150,6 +152,7 @@
         WHERE
         alert_type = #{alertType}
         <if test="appOrg != '10001'">AND b.app_org = #{appOrg}</if>
+        ORDER BY start_time DESC
         LIMIT #{pageSize} OFFSET #{page}
     </select>