|
|
@@ -23,10 +23,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="periodId" column="period_id" />
|
|
|
<result property="batchId" column="batch_id" />
|
|
|
<result property="appId" column="app_id" />
|
|
|
+ <result property="mchId" column="mch_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsCourseRedPacketLogVo">
|
|
|
- select log_id,watch_log_id, remark,out_batch_no,status,update_time,course_id, user_id, video_id, company_user_id, company_id, amount, create_time, qw_user_id,period_id,result,app_id,batch_id from fs_course_red_packet_log
|
|
|
+ select log_id,watch_log_id,mch_id, remark,out_batch_no,status,update_time,course_id, user_id, video_id, company_user_id, company_id, amount, create_time, qw_user_id,period_id,result,app_id,batch_id from fs_course_red_packet_log
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsCourseRedPacketLogList" parameterType="FsCourseRedPacketLog" resultMap="FsCourseRedPacketLogResult">
|
|
|
@@ -112,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="appId != null">app_id,</if>
|
|
|
<if test="accBalanceBefore != null">acc_balance_before,</if>
|
|
|
<if test="accBalanceAfter != null">acc_balance_after,</if>
|
|
|
+ <if test="mchId != null">mch_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="courseId != null">#{courseId},</if>
|
|
|
@@ -133,6 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="appId != null">#{appId},</if>
|
|
|
<if test="accBalanceBefore != null">#{accBalanceBefore},</if>
|
|
|
<if test="accBalanceAfter != null">#{accBalanceAfter},</if>
|
|
|
+ <if test="mchId != null">#{mchId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -155,6 +158,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="batchId != null">batch_id = #{batchId},</if>
|
|
|
<if test="appId != null">app_id = #{appId},</if>
|
|
|
+ <if test="mchId != null">mch_id = #{mchId},</if>
|
|
|
</trim>
|
|
|
where log_id = #{logId}
|
|
|
</update>
|