|
@@ -16,12 +16,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="createdate" column="createdate" />
|
|
<result property="createdate" column="createdate" />
|
|
<result property="updaterCode" column="updater_code" />
|
|
<result property="updaterCode" column="updater_code" />
|
|
<result property="updatedate" column="updatedate" />
|
|
<result property="updatedate" column="updatedate" />
|
|
|
|
+ <result property="frequency" column="frequency" />
|
|
<result property="deptId" column="dept_id" />
|
|
<result property="deptId" column="dept_id" />
|
|
<result property="deptName" column="dept_name" />
|
|
<result property="deptName" column="dept_name" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTTrainingCompanylevelVo">
|
|
<sql id="selectTTrainingCompanylevelVo">
|
|
- select d.id, d.serial_num, d.course_code, d.item, d.staff_id, d.remarks, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id ,s.dept_name from t_training_companylevel d
|
|
|
|
|
|
+ select d.id, d.serial_num, d.course_code, d.item, d.staff_id, d.remarks, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.frequency ,s.dept_name from t_training_companylevel d
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
@@ -62,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="createdate != null">createdate,</if>
|
|
<if test="createdate != null">createdate,</if>
|
|
<if test="updaterCode != null">updater_code,</if>
|
|
<if test="updaterCode != null">updater_code,</if>
|
|
<if test="updatedate != null">updatedate,</if>
|
|
<if test="updatedate != null">updatedate,</if>
|
|
|
|
+ <if test="frequency != null">frequency,</if>
|
|
<if test="deptId != null">dept_id,</if>
|
|
<if test="deptId != null">dept_id,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -76,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="createdate != null">#{createdate},</if>
|
|
<if test="createdate != null">#{createdate},</if>
|
|
<if test="updaterCode != null">#{updaterCode},</if>
|
|
<if test="updaterCode != null">#{updaterCode},</if>
|
|
<if test="updatedate != null">#{updatedate},</if>
|
|
<if test="updatedate != null">#{updatedate},</if>
|
|
|
|
+ <if test="frequency != null">#{frequency},</if>
|
|
<if test="deptId != null">#{deptId},</if>
|
|
<if test="deptId != null">#{deptId},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
@@ -94,6 +97,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="createdate != null">createdate = #{createdate},</if>
|
|
<if test="createdate != null">createdate = #{createdate},</if>
|
|
<if test="updaterCode != null">updater_code = #{updaterCode},</if>
|
|
<if test="updaterCode != null">updater_code = #{updaterCode},</if>
|
|
<if test="updatedate != null">updatedate = #{updatedate},</if>
|
|
<if test="updatedate != null">updatedate = #{updatedate},</if>
|
|
|
|
+ <if test="frequency != null">frequency = #{frequency},</if>
|
|
|
|
+ <if test="frequency == null">frequency = NULL,</if>
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|