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.
|
|
<?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.example.demo.mapper.coin.WalletMapper"> <update id="updateWallet"> update user_region_wallet set current_permanent_gold = {currentPermanentGold} where jwcode = {jwcode} and wallet_id = {walletId}} </update> <update id="updateWalletRecord"> update user_wallet_record set status = 1 where id = {id} </update> <select id="selectWallet" resultType="com.example.demo.domain.entity.UserRegionWallet"> select jwcode, wallet_id, current_permanent_gold from user_region_wallet where jwcode = {jwcode} and wallet_id = {walletId} </select> <select id="selectWalletRecord" resultType="com.example.demo.domain.entity.UserWalletRecord"> select jwcode, wallet_id, type, amount, order_code, description, status, id from user_wallet_record where jwcode = {jwcode} and oreder_code = {orderCode} </select></mapper>
|