ruoyi-service/ruoyi-account/src/main/resources/mapper/account/TVinManagementMapper.xml
@@ -64,4 +64,9 @@ SET balance = IFNULL(balance, 0) + #{amount}, update_time = NOW(), update_by = #{updateBy} WHERE id = #{id} AND del_flag = 0 </update> <update id="clearBalance"> UPDATE t_vin_management SET balance = 0, update_time = NOW(), update_by = #{updateBy} WHERE id = #{id} AND del_flag = 0 AND balance > 0 </update> </mapper>