Commit d85b1ddd authored by tianyiming's avatar tianyiming

监管码和96333码获取历史值排序修改

parent 2bf03f32
...@@ -5,9 +5,7 @@ ...@@ -5,9 +5,7 @@
SELECT SUPERVISORY_CODE SELECT SUPERVISORY_CODE
FROM biz_jg_supervisory_code bjsc FROM biz_jg_supervisory_code bjsc
WHERE SUPERVISORY_CODE LIKE CONCAT(#{supervisorCode}, '%') WHERE SUPERVISORY_CODE LIKE CONCAT(#{supervisorCode}, '%')
ORDER BY ORDER BY SUPERVISORY_CODE DESC LIMIT 1
RIGHT ( SUPERVISORY_CODE, 5 ) DESC
LIMIT 1
</select> </select>
<update id="updateSupervisorCode"> <update id="updateSupervisorCode">
...@@ -31,9 +29,7 @@ ...@@ -31,9 +29,7 @@
<if test="status != null and status != ''"> <if test="status != null and status != ''">
and status = #{status} and status = #{status}
</if> </if>
ORDER BY ORDER BY CODE96333 DESC LIMIT 1
CODE96333 DESC
LIMIT 1
</select> </select>
<select id="selectEquipInfo" resultType="com.yeejoin.amos.boot.module.tzs.api.dto.EquInfoDto"> <select id="selectEquipInfo" resultType="com.yeejoin.amos.boot.module.tzs.api.dto.EquInfoDto">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment