|
|
@@ -94,7 +94,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<!-- 按条件更新红包金额 -->
|
|
|
<update id="updateRedPackageByParams" parameterType="FsUserCourseVideoRedPackage">
|
|
|
update fs_user_course_video_red_package
|
|
|
- set red_packet_money = #{redPacketMoney}
|
|
|
+ set red_packet_money = #{redPacketMoney},
|
|
|
+ red_packet_money_app = #{redPacketMoneyApp},
|
|
|
+ red_packet_money_h5 = #{redPacketMoneyH5}
|
|
|
where period_id = #{periodId}
|
|
|
and video_id = #{videoId}
|
|
|
and company_id = #{companyId}
|
|
|
@@ -110,6 +112,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="list[0].companyId != null">company_id,</if>
|
|
|
<if test="list[0].videoId != null">video_id,</if>
|
|
|
<if test="list[0].redPacketMoney != null">red_packet_money,</if>
|
|
|
+ <if test="list[0].redPacketMoneyApp != null">red_packet_money_app,</if>
|
|
|
+ <if test="list[0].redPacketMoneyH5 != null">red_packet_money_h5,</if>
|
|
|
<if test="list[0].periodId !=null">period_id,</if>
|
|
|
<if test="list[0].dataType !=null">data_type,</if>
|
|
|
<if test="list[0].ruleId !=null">rule_id,</if>
|
|
|
@@ -120,6 +124,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="item.companyId != null">#{item.companyId},</if>
|
|
|
<if test="item.videoId != null">#{item.videoId},</if>
|
|
|
<if test="item.redPacketMoney != null">#{item.redPacketMoney},</if>
|
|
|
+ <if test="item.redPacketMoneyApp != null">#{item.redPacketMoneyApp},</if>
|
|
|
+ <if test="item.redPacketMoneyH5 != null">#{item.redPacketMoneyH5},</if>
|
|
|
<if test="item.periodId !=null">#{item.periodId},</if>
|
|
|
<if test="item.dataType !=null">#{item.dataType},</if>
|
|
|
<if test="item.ruleId !=null">#{item.ruleId},</if>
|