|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.ruoyi.project.training.newstaff.mapper.TTnTransferplanMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="TTnTransferplan" id="TTnTransferplanResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="newId" column="new_id" />
|
|
@@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectTTnTransferplanList" parameterType="TTnTransferplan" resultMap="TTnTransferplanResult">
|
|
|
<include refid="selectTTnTransferplanVo"/>
|
|
|
- <where>
|
|
|
+ <where>
|
|
|
<if test="courseCode != null and courseCode != ''"> and course_code like concat(concat('%', #{courseCode}), '%')</if>
|
|
|
<if test="topic != null and topic != ''"> and topic like concat(concat('%', #{topic}), '%')</if>
|
|
|
and d.del_flag = 0
|
|
@@ -41,12 +41,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectTTnTransferplanById" parameterType="Long" resultMap="TTnTransferplanResult">
|
|
|
<include refid="selectTTnTransferplanVo"/>
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertTTnTransferplan" parameterType="TTnTransferplan">
|
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
|
SELECT seq_t_tn_transferplan.NEXTVAL as id FROM DUAL
|
|
@@ -94,6 +94,52 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
+
|
|
|
+ <insert id="insertTTnTransferplanTmpl" parameterType="TTnTransferplanTmpl">
|
|
|
+ <selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
|
+ SELECT seq_t_tn_transferplan.NEXTVAL as id FROM DUAL
|
|
|
+ </selectKey>
|
|
|
+ insert into t_tn_transferplan
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="newId != null">new_id,</if>
|
|
|
+ <if test="courseCode != null">course_code,</if>
|
|
|
+ <if test="topic != null">topic,</if>
|
|
|
+ <if test="content != null">content,</if>
|
|
|
+ <if test="courseDay != null">course_day,</if>
|
|
|
+ <if test="courseHour != null">course_hour,</if>
|
|
|
+ <if test="detailPlan != null">detail_plan,</if>
|
|
|
+ <if test="trainer != null">trainer,</if>
|
|
|
+ <if test="courseDate != null">course_date,</if>
|
|
|
+ <if test="assess != null">assess,</if>
|
|
|
+ <if test="delFlag != null">del_flag,</if>
|
|
|
+ <if test="createrCode != null">creater_code,</if>
|
|
|
+ <if test="updaterCode != null">updater_code,</if>
|
|
|
+ <if test="updatedate != null">updatedate,</if>
|
|
|
+ <if test="deptId != null">dept_id,</if>
|
|
|
+ <if test="remarks != null">remarks,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
+ <if test="newId != null">#{newId},</if>
|
|
|
+ <if test="courseCode != null">#{courseCode},</if>
|
|
|
+ <if test="topic != null">#{topic},</if>
|
|
|
+ <if test="content != null">#{content},</if>
|
|
|
+ <if test="courseDay != null">#{courseDay},</if>
|
|
|
+ <if test="courseHour != null">#{courseHour},</if>
|
|
|
+ <if test="detailPlan != null">#{detailPlan},</if>
|
|
|
+ <if test="trainer != null">#{trainer},</if>
|
|
|
+ <if test="courseDate != null">#{courseDate},</if>
|
|
|
+ <if test="assess != null">#{assess},</if>
|
|
|
+ <if test="delFlag != null">#{delFlag},</if>
|
|
|
+ <if test="createrCode != null">#{createrCode},</if>
|
|
|
+ <if test="updaterCode != null">#{updaterCode},</if>
|
|
|
+ <if test="updatedate != null">#{updatedate},</if>
|
|
|
+ <if test="deptId != null">#{deptId},</if>
|
|
|
+ <if test="remarks != null">#{remarks},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
<update id="updateTTnTransferplan" parameterType="TTnTransferplan">
|
|
|
update t_tn_transferplan
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
@@ -128,5 +174,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
-
|
|
|
-</mapper>
|
|
|
+
|
|
|
+</mapper>
|