|
|
@@ -18,6 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="uuId" column="uu_id" />
|
|
|
<result property="periodId" column="period_id" />
|
|
|
<result property="project" column="project" />
|
|
|
+ <result property="appId" column="app_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsCourseTrafficLogVo">
|
|
|
@@ -33,7 +34,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
course_id,
|
|
|
uu_id,
|
|
|
project,
|
|
|
- period_id from fs_course_traffic_log
|
|
|
+ period_id,
|
|
|
+ app_id
|
|
|
+ from fs_course_traffic_log
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsCourseTrafficLogList" parameterType="FsCourseTrafficLog" resultMap="FsCourseTrafficLogResult">
|
|
|
@@ -47,6 +50,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyUserId != null "> and company_user_id = #{companyUserId}</if>
|
|
|
<if test="companyId != null "> and company_id = #{companyId}</if>
|
|
|
<if test="courseId != null "> and course_id = #{courseId}</if>
|
|
|
+ <if test="uuId != null "> and uu_id = #{uuId}</if>
|
|
|
+ <if test="periodId != null "> and period_id = #{periodId}</if>
|
|
|
+ <if test="project != null "> and project = #{project}</if>
|
|
|
+ <if test="appId != null "> and app_id = #{appId}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -137,6 +144,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyId != null">company_id,</if>
|
|
|
<if test="courseId != null">course_id,</if>
|
|
|
<if test="uuId != null">uu_id,</if>
|
|
|
+ <if test="periodId != null">period_id,</if>
|
|
|
+ <if test="project != null">project,</if>
|
|
|
+ <if test="appId != null">app_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
@@ -149,6 +159,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyId != null">#{companyId},</if>
|
|
|
<if test="courseId != null">#{courseId},</if>
|
|
|
<if test="uuId != null">#{uuId},</if>
|
|
|
+ <if test="periodId != null">#{periodId},</if>
|
|
|
+ <if test="project != null">#{project},</if>
|
|
|
+ <if test="appId != null">#{appId},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -165,6 +178,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyId != null">company_id,</if>
|
|
|
<if test="courseId != null">course_id,</if>
|
|
|
<if test="uuId != null">uu_id,</if>
|
|
|
+ <if test="periodId != null">period_id,</if>
|
|
|
+ <if test="project != null">project,</if>
|
|
|
+ <if test="appId != null">app_id,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
@@ -177,6 +193,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyId != null">#{companyId},</if>
|
|
|
<if test="courseId != null">#{courseId},</if>
|
|
|
<if test="uuId != null">#{uuId},</if>
|
|
|
+ <if test="periodId != null">#{periodId},</if>
|
|
|
+ <if test="project != null">#{project},</if>
|
|
|
+ <if test="appId != null">#{appId},</if>
|
|
|
</trim>
|
|
|
on duplicate key update
|
|
|
<trim suffixOverrides=",">
|
|
|
@@ -197,6 +216,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyId != null">company_id = #{companyId},</if>
|
|
|
<if test="courseId != null">course_id = #{courseId},</if>
|
|
|
<if test="uuId != null">uu_id = #{uuId},</if>
|
|
|
+ <if test="periodId != null">period_id = #{periodId},</if>
|
|
|
+ <if test="project != null">project = #{project},</if>
|
|
|
+ <if test="appId != null">app_id = #{appId},</if>
|
|
|
</trim>
|
|
|
where log_id = #{logId}
|
|
|
</update>
|