refactor: 更新数据时指定索引
This commit is contained in:
parent
d3b810c062
commit
0914fedb6f
|
@ -914,6 +914,7 @@
|
||||||
ORDER BY tmp.update_time DESC
|
ORDER BY tmp.update_time DESC
|
||||||
LIMIT 1)) AS t ON api_definition.id = t.id
|
LIMIT 1)) AS t ON api_definition.id = t.id
|
||||||
SET api_definition.latest = TRUE
|
SET api_definition.latest = TRUE
|
||||||
|
WHERE ref_id = #{refId,jdbcType=VARCHAR}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="selectRefIdsForVersionChange" resultType="java.lang.String">
|
<select id="selectRefIdsForVersionChange" resultType="java.lang.String">
|
||||||
|
|
|
@ -694,6 +694,7 @@
|
||||||
ORDER BY tmp.update_time DESC
|
ORDER BY tmp.update_time DESC
|
||||||
LIMIT 1)) AS t ON api_scenario.id = t.id
|
LIMIT 1)) AS t ON api_scenario.id = t.id
|
||||||
SET api_scenario.latest = TRUE
|
SET api_scenario.latest = TRUE
|
||||||
|
WHERE ref_id = #{refId,jdbcType=VARCHAR}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="selectRefIdsForVersionChange" resultType="java.lang.String">
|
<select id="selectRefIdsForVersionChange" resultType="java.lang.String">
|
||||||
|
|
|
@ -319,6 +319,7 @@
|
||||||
ORDER BY tmp.update_time DESC
|
ORDER BY tmp.update_time DESC
|
||||||
LIMIT 1)) AS t ON load_test.id = t.id
|
LIMIT 1)) AS t ON load_test.id = t.id
|
||||||
SET load_test.latest = TRUE
|
SET load_test.latest = TRUE
|
||||||
|
WHERE ref_id = #{refId,jdbcType=VARCHAR}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="clearLatestVersion">
|
<update id="clearLatestVersion">
|
||||||
|
|
|
@ -1025,5 +1025,6 @@
|
||||||
LIMIT 1)) AS t
|
LIMIT 1)) AS t
|
||||||
ON test_case.id = t.id
|
ON test_case.id = t.id
|
||||||
SET test_case.latest = TRUE
|
SET test_case.latest = TRUE
|
||||||
|
WHERE ref_id = #{refId,jdbcType=VARCHAR}
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 0ff05a37a89b8ecaf4491d35d7cebb05dc5169dc
|
Subproject commit 6b1d5c60afcbd8c5c6c1098bca95370eb4ce85c1
|
Loading…
Reference in New Issue