|
|
@ -2,16 +2,16 @@ |
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
<mapper namespace="com.example.demo.mapper.coin.WalletMapper"> |
|
|
<mapper namespace="com.example.demo.mapper.coin.WalletMapper"> |
|
|
<update id="updateWallet"> |
|
|
<update id="updateWallet"> |
|
|
update user_region_wallet set current_permanent_gold = {currentPermanentGold} where jwcode = {jwcode} and wallet_id = {walletId}} |
|
|
|
|
|
|
|
|
update user_region_wallet set current_permanent_gold = #{currentPermanentGold} where jwcode = #{jwcode} and wallet_id = #{walletId}} |
|
|
</update> |
|
|
</update> |
|
|
<update id="updateWalletRecord"> |
|
|
<update id="updateWalletRecord"> |
|
|
update user_wallet_record set status = 1 where id = {id} |
|
|
|
|
|
|
|
|
update user_wallet_record set status = 1 where id = #{id} |
|
|
</update> |
|
|
</update> |
|
|
<select id="selectWallet" resultType="com.example.demo.domain.entity.UserRegionWallet"> |
|
|
<select id="selectWallet" resultType="com.example.demo.domain.entity.UserRegionWallet"> |
|
|
select jwcode, |
|
|
select jwcode, |
|
|
wallet_id, |
|
|
wallet_id, |
|
|
current_permanent_gold |
|
|
current_permanent_gold |
|
|
from user_region_wallet where jwcode = {jwcode} and wallet_id = {walletId} |
|
|
|
|
|
|
|
|
from user_region_wallet where jwcode = #{jwcode} and wallet_id = #{walletId} |
|
|
</select> |
|
|
</select> |
|
|
<select id="selectWalletRecord" resultType="com.example.demo.domain.entity.UserWalletRecord"> |
|
|
<select id="selectWalletRecord" resultType="com.example.demo.domain.entity.UserWalletRecord"> |
|
|
select jwcode, |
|
|
select jwcode, |
|
|
@ -22,6 +22,6 @@ |
|
|
description, |
|
|
description, |
|
|
status, |
|
|
status, |
|
|
id |
|
|
id |
|
|
from user_wallet_record where jwcode = {jwcode} and oreder_code = {orderCode} |
|
|
|
|
|
|
|
|
from user_wallet_record where jwcode = #{jwcode} and order_code = #{orderCode} |
|
|
</select> |
|
|
</select> |
|
|
</mapper> |
|
|
</mapper> |