feat(wallet): 新增主题购买与钱包交易模块
This commit is contained in:
27
src/main/resources/mapper/KeyboardThemePurchaseMapper.xml
Normal file
27
src/main/resources/mapper/KeyboardThemePurchaseMapper.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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.yolo.keyborad.mapper.KeyboardThemePurchaseMapper">
|
||||
<resultMap id="BaseResultMap" type="com.yolo.keyborad.model.entity.KeyboardThemePurchase">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table keyboard_theme_purchase-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
|
||||
<result column="user_id" jdbcType="BIGINT" property="userId" />
|
||||
<result column="theme_id" jdbcType="BIGINT" property="themeId" />
|
||||
<result column="cost_points" jdbcType="INTEGER" property="costPoints" />
|
||||
<result column="paid_points" jdbcType="INTEGER" property="paidPoints" />
|
||||
<result column="pay_status" jdbcType="SMALLINT" property="payStatus" />
|
||||
<result column="wallet_tx_id" jdbcType="BIGINT" property="walletTxId" />
|
||||
<result column="refund_points" jdbcType="INTEGER" property="refundPoints" />
|
||||
<result column="refunded_at" jdbcType="TIMESTAMP" property="refundedAt" />
|
||||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
||||
<result column="paid_at" jdbcType="TIMESTAMP" property="paidAt" />
|
||||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, order_no, user_id, theme_id, cost_points, paid_points, pay_status, wallet_tx_id,
|
||||
refund_points, refunded_at, created_at, paid_at, updated_at, remark
|
||||
</sql>
|
||||
</mapper>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?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.yolo.keyborad.mapper.KeyboardWalletTransactionMapper">
|
||||
<resultMap id="BaseResultMap" type="com.yolo.keyborad.model.entity.KeyboardWalletTransaction">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table keyboard_wallet_transaction-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="user_id" jdbcType="BIGINT" property="userId" />
|
||||
<result column="order_id" jdbcType="BIGINT" property="orderId" />
|
||||
<result column="amount" jdbcType="NUMERIC" property="amount" />
|
||||
<result column="type" jdbcType="SMALLINT" property="type" />
|
||||
<result column="before_balance" jdbcType="NUMERIC" property="beforeBalance" />
|
||||
<result column="after_balance" jdbcType="NUMERIC" property="afterBalance" />
|
||||
<result column="description" jdbcType="VARCHAR" property="description" />
|
||||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, user_id, order_id, amount, "type", before_balance, after_balance, description,
|
||||
created_at
|
||||
</sql>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user