This commit is contained in:
dute7liang
2023-12-24 15:48:49 +08:00
parent 8c897acfda
commit 7b51bda039
28 changed files with 751 additions and 26 deletions

View File

@@ -27,6 +27,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
set coin = coin + #{coin}, income_coin = income_coin + #{incomeCoin}
where user_id = #{userId}
</update>
<update id="decrIncomeCoin">
update cai_account
set income_coin = income_coin - #{value}
where user_id = #{userId} and (income_coin - #{value}) > 0
</update>
</mapper>

View File

@@ -0,0 +1,17 @@
<?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.ruoyi.cai.mapper.CaiGoodsMapper">
<resultMap type="com.ruoyi.cai.domain.CaiGoods" id="CaiGoodsResult">
<result property="id" column="id"/>
<result property="name" column="name"/>
<result property="price" column="price"/>
<result property="amount" column="amount"/>
<result property="status" column="status"/>
<result property="remark" column="remark"/>
</resultMap>
</mapper>

View File

@@ -0,0 +1,14 @@
<?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.ruoyi.cai.mapper.CaiWithdrawExchangeMapper">
<resultMap type="com.ruoyi.cai.domain.CaiWithdrawExchange" id="CaiWithdrawExchangeResult">
<result property="id" column="id"/>
<result property="money" column="money"/>
<result property="coinNum" column="coin_num"/>
</resultMap>
</mapper>