2024-06-05 19:12:15 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
|
|
|
<mapper namespace="com.sqx.modules.app.dao.UserMoneyDao">
|
|
|
|
|
|
|
|
<update id="updateMayMoney">
|
|
|
|
update user_money set
|
|
|
|
<if test="type==1">
|
|
|
|
money=money+#{money}
|
|
|
|
</if>
|
|
|
|
<if test="type==2">
|
|
|
|
money=money-#{money}
|
|
|
|
</if>
|
|
|
|
where user_id=#{userId}
|
|
|
|
</update>
|
|
|
|
|
2024-07-18 17:13:45 +08:00
|
|
|
<update id="updateMaySad">
|
2024-08-21 10:24:01 +08:00
|
|
|
update user_money
|
|
|
|
set sad=#{money}
|
2024-07-18 17:13:45 +08:00
|
|
|
where user_id=#{userId}
|
|
|
|
</update>
|
|
|
|
|
2024-06-05 19:12:15 +08:00
|
|
|
<update id="updateCashDeposit">
|
|
|
|
update user_money set
|
|
|
|
<if test="type==1">
|
|
|
|
cash_deposit=cash_deposit+#{cashDeposit}
|
|
|
|
</if>
|
|
|
|
<if test="type==2">
|
|
|
|
cash_deposit=cash_deposit-#{cashDeposit}
|
|
|
|
</if>
|
|
|
|
where user_id=#{userId}
|
|
|
|
</update>
|
|
|
|
|
2024-06-12 15:37:41 +08:00
|
|
|
<update id="updateMoney">
|
|
|
|
update user_money
|
|
|
|
set money=#{money}
|
|
|
|
where user_id=#{userId}
|
|
|
|
</update>
|
2024-06-05 19:12:15 +08:00
|
|
|
|
|
|
|
</mapper>
|