|
@@ -105,7 +105,9 @@
|
|
WHERE
|
|
WHERE
|
|
flag = #{arg1}
|
|
flag = #{arg1}
|
|
<if test="arg0 != '10001'">AND b.app_org = #{arg0}</if>
|
|
<if test="arg0 != '10001'">AND b.app_org = #{arg0}</if>
|
|
- LIMIT #{arg2} OFFSET #{arg3}
|
|
|
|
|
|
+ <if test="arg1 == 0">ORDER BY org_date DESC</if>
|
|
|
|
+ <if test="arg1 == 1">ORDER BY handle_date DESC</if>
|
|
|
|
+ LIMIT #{arg2} OFFSET #{arg3}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getCarDetailNum" resultType="int">
|
|
<select id="getCarDetailNum" resultType="int">
|
|
@@ -150,6 +152,7 @@
|
|
WHERE
|
|
WHERE
|
|
alert_type = #{arg1}
|
|
alert_type = #{arg1}
|
|
<if test="arg0 != '10001'">AND b.app_org = #{arg0}</if>
|
|
<if test="arg0 != '10001'">AND b.app_org = #{arg0}</if>
|
|
|
|
+ ORDER BY start_time DESC
|
|
LIMIT #{arg2} OFFSET #{arg3}
|
|
LIMIT #{arg2} OFFSET #{arg3}
|
|
</select>
|
|
</select>
|
|
|
|
|