|
@@ -14,16 +14,17 @@
|
|
|
<result property="goodsId" column="goods_id"/>
|
|
<result property="goodsId" column="goods_id"/>
|
|
|
<result property="productType" column="product_type"/>
|
|
<result property="productType" column="product_type"/>
|
|
|
<result property="rewardAmount" column="reward_amount"/>
|
|
<result property="rewardAmount" column="reward_amount"/>
|
|
|
|
|
+ <result property="rewardPoints" column="reward_points"/>
|
|
|
<result property="grantTime" column="grant_time"/>
|
|
<result property="grantTime" column="grant_time"/>
|
|
|
<result property="createTime" column="create_time"/>
|
|
<result property="createTime" column="create_time"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
|
<result property="isFirstLogin" column="is_first_login"/>
|
|
<result property="isFirstLogin" column="is_first_login"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
- <!-- 基础字段列表 - 添加 reward_amount 和 is_first_login -->
|
|
|
|
|
|
|
+ <!-- 基础字段列表 -->
|
|
|
<sql id="selectFsUserRewardsVo">
|
|
<sql id="selectFsUserRewardsVo">
|
|
|
select id, fs_user_id, activity_type, reward_type, status,
|
|
select id, fs_user_id, activity_type, reward_type, status,
|
|
|
- order_code, goods_id, product_type, reward_amount,
|
|
|
|
|
|
|
+ order_code, goods_id, product_type, reward_amount,reward_points,
|
|
|
grant_time, create_time, update_time, is_first_login
|
|
grant_time, create_time, update_time, is_first_login
|
|
|
from fs_user_rewards
|
|
from fs_user_rewards
|
|
|
</sql>
|
|
</sql>
|
|
@@ -79,6 +80,7 @@
|
|
|
<if test="goodsId != null"> and goods_id = #{goodsId}</if>
|
|
<if test="goodsId != null"> and goods_id = #{goodsId}</if>
|
|
|
<if test="productType != null"> and product_type = #{productType}</if>
|
|
<if test="productType != null"> and product_type = #{productType}</if>
|
|
|
<if test="rewardAmount != null"> and reward_amount = #{rewardAmount}</if>
|
|
<if test="rewardAmount != null"> and reward_amount = #{rewardAmount}</if>
|
|
|
|
|
+ <if test="rewardPoints != null"> and reward_points = #{rewardPoints}</if>
|
|
|
<if test="grantTime != null"> and grant_time = #{grantTime}</if>
|
|
<if test="grantTime != null"> and grant_time = #{grantTime}</if>
|
|
|
<if test="createTime != null"> and create_time = #{createTime}</if>
|
|
<if test="createTime != null"> and create_time = #{createTime}</if>
|
|
|
<if test="updateTime != null"> and update_time = #{updateTime}</if>
|
|
<if test="updateTime != null"> and update_time = #{updateTime}</if>
|
|
@@ -99,9 +101,9 @@
|
|
|
<if test="goodsId != null">goods_id,</if>
|
|
<if test="goodsId != null">goods_id,</if>
|
|
|
<if test="productType != null">product_type,</if>
|
|
<if test="productType != null">product_type,</if>
|
|
|
<if test="rewardAmount != null">reward_amount,</if>
|
|
<if test="rewardAmount != null">reward_amount,</if>
|
|
|
|
|
+ <if test="rewardPoints != null">reward_points,</if>
|
|
|
<if test="grantTime != null">grant_time,</if>
|
|
<if test="grantTime != null">grant_time,</if>
|
|
|
<if test="isFirstLogin != null">is_first_login,</if>
|
|
<if test="isFirstLogin != null">is_first_login,</if>
|
|
|
- create_time,
|
|
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="fsUserId != null">#{fsUserId},</if>
|
|
<if test="fsUserId != null">#{fsUserId},</if>
|
|
@@ -112,9 +114,9 @@
|
|
|
<if test="goodsId != null">#{goodsId},</if>
|
|
<if test="goodsId != null">#{goodsId},</if>
|
|
|
<if test="productType != null">#{productType},</if>
|
|
<if test="productType != null">#{productType},</if>
|
|
|
<if test="rewardAmount != null">#{rewardAmount},</if>
|
|
<if test="rewardAmount != null">#{rewardAmount},</if>
|
|
|
|
|
+ <if test="rewardPoints != null">#{rewardPoints},</if>
|
|
|
<if test="grantTime != null">#{grantTime},</if>
|
|
<if test="grantTime != null">#{grantTime},</if>
|
|
|
<if test="isFirstLogin != null">#{isFirstLogin},</if>
|
|
<if test="isFirstLogin != null">#{isFirstLogin},</if>
|
|
|
- sysdate(),
|
|
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -130,6 +132,7 @@
|
|
|
<if test="goodsId != null">goods_id = #{goodsId},</if>
|
|
<if test="goodsId != null">goods_id = #{goodsId},</if>
|
|
|
<if test="productType != null">product_type = #{productType},</if>
|
|
<if test="productType != null">product_type = #{productType},</if>
|
|
|
<if test="rewardAmount != null">reward_amount = #{rewardAmount},</if>
|
|
<if test="rewardAmount != null">reward_amount = #{rewardAmount},</if>
|
|
|
|
|
+ <if test="rewardPoints != null">reward_points = #{rewardPoints},</if>
|
|
|
<if test="grantTime != null">grant_time = #{grantTime},</if>
|
|
<if test="grantTime != null">grant_time = #{grantTime},</if>
|
|
|
<if test="isFirstLogin != null">is_first_login = #{isFirstLogin},</if>
|
|
<if test="isFirstLogin != null">is_first_login = #{isFirstLogin},</if>
|
|
|
update_time = sysdate()
|
|
update_time = sysdate()
|