You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.2 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.example.demo.mapper.coin.WalletMapper">
  4. <update id="updateWallet">
  5. update user_region_wallet set current_permanent_gold = #{currentPermanentGold} where jwcode = #{jwcode} and wallet_id = #{walletId}}
  6. </update>
  7. <update id="updateWalletRecord">
  8. update user_wallet_record set status = 1 where id = #{id}
  9. </update>
  10. <select id="selectWallet" resultType="com.example.demo.domain.entity.UserRegionWallet">
  11. select jwcode,
  12. wallet_id,
  13. current_permanent_gold
  14. from user_region_wallet where jwcode = #{jwcode} and wallet_id = #{walletId}
  15. </select>
  16. <select id="selectWalletRecord" resultType="com.example.demo.domain.entity.UserWalletRecord">
  17. select jwcode,
  18. wallet_id,
  19. type,
  20. amount,
  21. order_code,
  22. description,
  23. status,
  24. id
  25. from user_wallet_record where jwcode = #{jwcode} and order_code = #{orderCode}
  26. </select>
  27. </mapper>