应用、设备 根据创建时间倒序排序

This commit is contained in:
xusd 2024-07-31 11:52:51 +08:00
parent f698fe5df3
commit 8ad1eaa53b
2 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
GROUP BY GROUP BY
ga.id ga.id
ORDER BY ORDER BY
ga.create_time ga.create_time DESC
</select> </select>
<select id="selectGatewayAppById" parameterType="Long" resultMap="GatewayAppResult"> <select id="selectGatewayAppById" parameterType="Long" resultMap="GatewayAppResult">

View File

@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="classValue != null and classValue != ''"> and class_value = #{classValue}</if> <if test="classValue != null and classValue != ''"> and class_value = #{classValue}</if>
<if test="joinMode != null and joinMode != ''"> and join_mode = #{joinMode}</if> <if test="joinMode != null and joinMode != ''"> and join_mode = #{joinMode}</if>
</where> </where>
order by create_time desc
</select> </select>
<select id="selectGatewayDeviceById" parameterType="Long" resultMap="GatewayDeviceResult"> <select id="selectGatewayDeviceById" parameterType="Long" resultMap="GatewayDeviceResult">