优化详情升级到最新
This commit is contained in:
+5
-1
@@ -345,6 +345,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</update>
|
||||
<select id="getMaxAgentVersion" resultType="RmResourceRegistration">
|
||||
select agent_version maxAgentVersion from rm_resource_registration where del_flag=0
|
||||
order by create_time desc limit 1
|
||||
ORDER BY
|
||||
CAST(SUBSTRING_INDEX(agent_version, '.', 1) AS UNSIGNED) DESC,
|
||||
CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(agent_version, '.', 2), '.', -1) AS UNSIGNED) DESC,
|
||||
CAST(SUBSTRING_INDEX(agent_version, '.', -1) AS UNSIGNED) DESC
|
||||
limit 1
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user