puzhibing
4 天以前 3650ce7f5d42d1bef58abea9693f20d1f209d3b0
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 &gt; 0
    </update>
</mapper>