|
@@ -18,6 +18,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="uuId" column="uu_id" />
|
|
<result property="uuId" column="uu_id" />
|
|
|
<result property="periodId" column="period_id" />
|
|
<result property="periodId" column="period_id" />
|
|
|
<result property="project" column="project" />
|
|
<result property="project" column="project" />
|
|
|
|
|
+ <result property="appId" column="app_id" />
|
|
|
|
|
+ <result property="typeFlag" column="type_flag" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsCourseTrafficLogVo">
|
|
<sql id="selectFsCourseTrafficLogVo">
|
|
@@ -33,7 +35,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
course_id,
|
|
course_id,
|
|
|
uu_id,
|
|
uu_id,
|
|
|
project,
|
|
project,
|
|
|
- period_id from fs_course_traffic_log
|
|
|
|
|
|
|
+ period_id,
|
|
|
|
|
+ app_id,
|
|
|
|
|
+ type_flag from fs_course_traffic_log
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectFsCourseTrafficLogList" parameterType="FsCourseTrafficLog" resultMap="FsCourseTrafficLogResult">
|
|
<select id="selectFsCourseTrafficLogList" parameterType="FsCourseTrafficLog" resultMap="FsCourseTrafficLogResult">
|
|
@@ -137,6 +141,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyId != null">company_id,</if>
|
|
<if test="companyId != null">company_id,</if>
|
|
|
<if test="courseId != null">course_id,</if>
|
|
<if test="courseId != null">course_id,</if>
|
|
|
<if test="uuId != null">uu_id,</if>
|
|
<if test="uuId != null">uu_id,</if>
|
|
|
|
|
+ <if test="appId != null">app_id,</if>
|
|
|
|
|
+ <if test="typeFlag != null">type_flag,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
<if test="userId != null">#{userId},</if>
|
|
@@ -149,6 +155,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyId != null">#{companyId},</if>
|
|
<if test="companyId != null">#{companyId},</if>
|
|
|
<if test="courseId != null">#{courseId},</if>
|
|
<if test="courseId != null">#{courseId},</if>
|
|
|
<if test="uuId != null">#{uuId},</if>
|
|
<if test="uuId != null">#{uuId},</if>
|
|
|
|
|
+ <if test="appId != null">#{appId},</if>
|
|
|
|
|
+ <if test="typeFlag != null">#{typeFlag},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -166,6 +174,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="courseId != null">course_id,</if>
|
|
<if test="courseId != null">course_id,</if>
|
|
|
<if test="uuId != null">uu_id,</if>
|
|
<if test="uuId != null">uu_id,</if>
|
|
|
<if test="project != null">project,</if>
|
|
<if test="project != null">project,</if>
|
|
|
|
|
+ <if test="periodId != null">period_id,</if>
|
|
|
|
|
+ <if test="appId != null">app_id,</if>
|
|
|
|
|
+ <if test="typeFlag != null">type_flag,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
<if test="userId != null">#{userId},</if>
|
|
@@ -179,10 +190,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="courseId != null">#{courseId},</if>
|
|
<if test="courseId != null">#{courseId},</if>
|
|
|
<if test="uuId != null">#{uuId},</if>
|
|
<if test="uuId != null">#{uuId},</if>
|
|
|
<if test="project != null">#{project},</if>
|
|
<if test="project != null">#{project},</if>
|
|
|
|
|
+ <if test="periodId != null">#{periodId},</if>
|
|
|
|
|
+ <if test="appId != null">#{appId},</if>
|
|
|
|
|
+ <if test="typeFlag != null">#{typeFlag},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
on duplicate key update
|
|
on duplicate key update
|
|
|
<trim suffixOverrides=",">
|
|
<trim suffixOverrides=",">
|
|
|
<if test="internetTraffic != null">internet_traffic = #{internetTraffic},</if>
|
|
<if test="internetTraffic != null">internet_traffic = #{internetTraffic},</if>
|
|
|
|
|
+ <if test="periodId != null">period_id = #{periodId},</if>
|
|
|
|
|
+ <if test="appId != null">app_id = #{appId},</if>
|
|
|
|
|
+ <if test="typeFlag != null">type_flag = #{typeFlag},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -199,6 +216,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyId != null">company_id = #{companyId},</if>
|
|
<if test="companyId != null">company_id = #{companyId},</if>
|
|
|
<if test="courseId != null">course_id = #{courseId},</if>
|
|
<if test="courseId != null">course_id = #{courseId},</if>
|
|
|
<if test="uuId != null">uu_id = #{uuId},</if>
|
|
<if test="uuId != null">uu_id = #{uuId},</if>
|
|
|
|
|
+ <if test="periodId != null">period_id = #{periodId},</if>
|
|
|
|
|
+ <if test="appId != null">app_id = #{appId},</if>
|
|
|
|
|
+ <if test="typeFlag != null">type_flag = #{typeFlag},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where log_id = #{logId}
|
|
where log_id = #{logId}
|
|
|
</update>
|
|
</update>
|