|
|
@@ -147,6 +147,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="periodId != null">period_id,</if>
|
|
|
<if test="project != null">project,</if>
|
|
|
<if test="appId != null">app_id,</if>
|
|
|
+ <if test="typeFlag != null">type_flag,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
@@ -162,6 +163,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="periodId != null">#{periodId},</if>
|
|
|
<if test="project != null">#{project},</if>
|
|
|
<if test="appId != null">#{appId},</if>
|
|
|
+ <if test="typeFlag != null">#{typeFlag},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -181,6 +183,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="periodId != null">period_id,</if>
|
|
|
<if test="project != null">project,</if>
|
|
|
<if test="appId != null">app_id,</if>
|
|
|
+ <if test="typeFlag != null">type_flag,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
@@ -196,6 +199,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="periodId != null">#{periodId},</if>
|
|
|
<if test="project != null">#{project},</if>
|
|
|
<if test="appId != null">#{appId},</if>
|
|
|
+ <if test="typeFlag != null">#{typeFlag},</if>
|
|
|
</trim>
|
|
|
on duplicate key update
|
|
|
<trim suffixOverrides=",">
|
|
|
@@ -219,6 +223,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="periodId != null">period_id = #{periodId},</if>
|
|
|
<if test="project != null">project = #{project},</if>
|
|
|
<if test="appId != null">app_id = #{appId},</if>
|
|
|
+ <if test="typeFlag != null">type_flag = #{typeFlag},</if>
|
|
|
</trim>
|
|
|
where log_id = #{logId}
|
|
|
</update>
|
|
|
@@ -284,6 +289,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test='companyId !=null'>
|
|
|
and log.company_id = #{companyId}
|
|
|
</if>
|
|
|
+ <if test="typeFlag != null">
|
|
|
+ and log.type_flag = #{typeFlag}
|
|
|
+ </if>
|
|
|
<if test="courseId != null">
|
|
|
and log.course_id = ${courseId}
|
|
|
</if>
|