Browse Source

20260312 退款优化

huangqizheng/feature-20260309142559-钱包退款
wangguorui 4 weeks ago
parent
commit
69d24cc5e5
  1. 2
      src/main/resources/cashMapper/CashCollectionMapper.xml
  2. 8
      src/main/resources/mapper/WalletMapper.xml

2
src/main/resources/cashMapper/CashCollectionMapper.xml

@ -431,7 +431,7 @@
uwr.wallet_id, uwr.wallet_id,
w.wallet_name as walletName, w.wallet_name as walletName,
uwr.type, uwr.type,
uwr.amount,
uwr.amount/100 as amount,
uwr.order_code as orderCode, uwr.order_code as orderCode,
uwr.description, uwr.description,
uwr.status, uwr.status,

8
src/main/resources/mapper/WalletMapper.xml

@ -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>
Loading…
Cancel
Save