Merge branch 'master' into hotfix-userCertify
Showing
1 changed file
with
3 additions
and
3 deletions
@@ -263,12 +263,12 @@ | @@ -263,12 +263,12 @@ | ||
263 | <update id="changeSaleStatusOn"> | 263 | <update id="changeSaleStatusOn"> |
264 | update storage_deposit | 264 | update storage_deposit |
265 | set order_status = 1, lock_flag=0, new_skup = #{newSkup} ,update_time = unix_timestamp(now()) | 265 | set order_status = 1, lock_flag=0, new_skup = #{newSkup} ,update_time = unix_timestamp(now()) |
266 | - where owner_uid=#{uid} and deposit_code = #{depositCode,jdbcType=VARCHAR} and status=1 and order_status = 0 | 266 | + where owner_uid=#{uid} and deposit_code = #{depositCode,jdbcType=VARCHAR} and status=1 and order_status = 0 and del_status=0 |
267 | </update> | 267 | </update> |
268 | <update id="changeSaleStatusOff"> | 268 | <update id="changeSaleStatusOff"> |
269 | update storage_deposit | 269 | update storage_deposit |
270 | set order_status = 0 ,update_time = unix_timestamp(now()) | 270 | set order_status = 0 ,update_time = unix_timestamp(now()) |
271 | - where owner_uid=#{uid} and new_skup = #{newSkup} and status=1 and order_status = 1 | 271 | + where owner_uid=#{uid} and new_skup = #{newSkup} and status=1 and order_status = 1 and del_status=0 |
272 | </update> | 272 | </update> |
273 | <select id="queryUserDepositProductCount" resultType="java.lang.Integer" parameterType="java.lang.Integer" > | 273 | <select id="queryUserDepositProductCount" resultType="java.lang.Integer" parameterType="java.lang.Integer" > |
274 | select count(distinct product_id) from storage_deposit | 274 | select count(distinct product_id) from storage_deposit |
@@ -317,7 +317,7 @@ | @@ -317,7 +317,7 @@ | ||
317 | select | 317 | select |
318 | <include refid="Base_Column_List" /> | 318 | <include refid="Base_Column_List" /> |
319 | from storage_deposit | 319 | from storage_deposit |
320 | - where owner_uid = #{uid} and new_skup =#{skup} | 320 | + where owner_uid = #{uid} and new_skup =#{skup} and del_status=0 |
321 | </select> | 321 | </select> |
322 | <update id="sale"> | 322 | <update id="sale"> |
323 | update storage_deposit set del_status=1, | 323 | update storage_deposit set del_status=1, |
-
Please register or login to post a comment