|
|
@@ -20,6 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="project" column="project" />
|
|
|
<result property="appId" column="app_id" />
|
|
|
<result property="typeFlag" column="type_flag" />
|
|
|
+ <result property="isOpen" column="is_open" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsCourseTrafficLogVo">
|
|
|
@@ -37,7 +38,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
project,
|
|
|
period_id,
|
|
|
app_id,
|
|
|
- type_flag from fs_course_traffic_log
|
|
|
+ type_flag,
|
|
|
+ is_open from fs_course_traffic_log
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsCourseTrafficLogList" parameterType="FsCourseTrafficLog" resultMap="FsCourseTrafficLogResult">
|
|
|
@@ -143,6 +145,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="uuId != null">uu_id,</if>
|
|
|
<if test="appId != null">app_id,</if>
|
|
|
<if test="typeFlag != null">type_flag,</if>
|
|
|
+ <if test="isOpen != null">is_open,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
@@ -157,6 +160,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="uuId != null">#{uuId},</if>
|
|
|
<if test="appId != null">#{appId},</if>
|
|
|
<if test="typeFlag != null">#{typeFlag},</if>
|
|
|
+ <if test="isOpen != null">#{isOpen},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -177,6 +181,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="periodId != null">period_id,</if>
|
|
|
<if test="appId != null">app_id,</if>
|
|
|
<if test="typeFlag != null">type_flag,</if>
|
|
|
+ <if test="isOpen != null">is_open,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
@@ -193,6 +198,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="periodId != null">#{periodId},</if>
|
|
|
<if test="appId != null">#{appId},</if>
|
|
|
<if test="typeFlag != null">#{typeFlag},</if>
|
|
|
+ <if test="isOpen != null">#{isOpen},</if>
|
|
|
</trim>
|
|
|
on duplicate key update
|
|
|
<trim suffixOverrides=",">
|
|
|
@@ -200,6 +206,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="periodId != null">period_id = #{periodId},</if>
|
|
|
<if test="appId != null">app_id = #{appId},</if>
|
|
|
<if test="typeFlag != null">type_flag = #{typeFlag},</if>
|
|
|
+ <if test="isOpen != null">is_open = #{isOpen},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -219,6 +226,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="periodId != null">period_id = #{periodId},</if>
|
|
|
<if test="appId != null">app_id = #{appId},</if>
|
|
|
<if test="typeFlag != null">type_flag = #{typeFlag},</if>
|
|
|
+ <if test="isOpen != null">is_open = #{isOpen},</if>
|
|
|
</trim>
|
|
|
where log_id = #{logId}
|
|
|
</update>
|
|
|
@@ -250,7 +258,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
l.company_id,
|
|
|
l.course_id,
|
|
|
l.uu_id,
|
|
|
- l.project, l.period_id
|
|
|
+ l.project, l.period_id, l.app_id, l.type_flag, l.is_open
|
|
|
FROM
|
|
|
fs_course_traffic_log l
|
|
|
WHERE
|
|
|
@@ -261,10 +269,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<insert id="insertCourseTrafficLogByTwoDaysLaterBatch" useGeneratedKeys="false">
|
|
|
insert into fs_course_traffic_log (
|
|
|
- log_id, user_id, video_id, create_time, qw_external_contact_id, internet_traffic, qw_user_id, company_user_id, company_id, course_id, uu_id, project, period_id ) values
|
|
|
+ log_id, user_id, video_id, create_time, qw_external_contact_id, internet_traffic, qw_user_id, company_user_id, company_id, course_id, uu_id, project, period_id, app_id, type_flag, is_open ) values
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
(#{item.logId},#{item.userId},#{item.videoId},#{item.createTime},#{item.qwExternalContactId},#{item.internetTraffic},#{item.qwUserId}
|
|
|
- ,#{item.companyUserId},#{item.companyId},#{item.courseId},#{item.uuId},#{item.project},#{item.periodId})
|
|
|
+ ,#{item.companyUserId},#{item.companyId},#{item.courseId},#{item.uuId},#{item.project},#{item.periodId},#{item.appId},#{item.typeFlag},#{item.isOpen})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|