Showing
1 changed file
with
1 additions
and
1 deletions
@@ -70,7 +70,7 @@ | @@ -70,7 +70,7 @@ | ||
70 | where skup = #{skup,jdbcType=INTEGER} and status = 2 | 70 | where skup = #{skup,jdbcType=INTEGER} and status = 2 |
71 | </update> | 71 | </update> |
72 | <select id="selectLeastPrice" resultMap="BaseResultMap"> | 72 | <select id="selectLeastPrice" resultMap="BaseResultMap"> |
73 | - select MIN(price) price, skup from storage_price where storage_id = #{storageId,jdbcType=INTEGER} and status = 1 | 73 | + select price, skup from storage_price where storage_id = #{storageId,jdbcType=INTEGER} and status = 1 order by price limit 1 |
74 | </select> | 74 | </select> |
75 | <select id="selectByStorageIds" resultMap="BaseResultMap"> | 75 | <select id="selectByStorageIds" resultMap="BaseResultMap"> |
76 | select id, skup, storage_id, price, status | 76 | select id, skup, storage_id, price, status |
-
Please register or login to post a comment