|
@@ -21,12 +21,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="examId" column="exam_id" />
|
|
|
<result property="examNum" column="exam_num" />
|
|
|
<result property="learnTime" column="learn_time" />
|
|
|
+ <result property="finishDate" column="finish_date" />
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
<result property="team" column="team" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTTrainingbccDeviceVo">
|
|
|
- select d.id,s.name , d.staff_id, d.regular_id, d.start_date, d.remarks, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.supplementary, d.learn_state, d.exam_state, d.exam_id,d.exam_num, d.learn_time from t_trainingbcc_device d
|
|
|
+ select d.id,s.name , d.staff_id, d.regular_id, d.start_date, d.remarks, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.supplementary, d.learn_state, d.exam_state, d.exam_id,d.exam_num, d.learn_time, d.finish_date from t_trainingbcc_device d
|
|
|
left join t_staffmgr s on s.staffid = d.staff_id
|
|
|
|
|
|
</sql>
|
|
@@ -58,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
<select id="selectTTrainingbccDeviceByReguar" parameterType="TTrainingbccDevice" resultMap="TTrainingbccDeviceResult">
|
|
|
- select d.id,s.name , d.staff_id, d.regular_id, d.start_date, d.remarks, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.supplementary, d.learn_state, d.exam_state, d.exam_id,d.exam_num, d.learn_time, s.team from t_trainingbcc_device d
|
|
|
+ select d.id,s.name , d.staff_id, d.regular_id, d.start_date, d.remarks, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.supplementary, d.learn_state, d.exam_state, d.exam_id,d.exam_num, d.learn_time, d.finish_date, s.team from t_trainingbcc_device d
|
|
|
left join t_staffmgr s on s.staffid = d.staff_id
|
|
|
left join t_trainingbcc t on t.id = d.regular_id and t.DEL_FLAG = 0
|
|
|
<where>
|
|
@@ -83,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="sortSelectTTrainingbccDeviceList" parameterType="TTrainingbccDevice" resultMap="TTrainingbccDeviceResult">
|
|
|
- select d.id,s.name , d.staff_id, d.regular_id, d.start_date, d.remarks, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.supplementary, d.learn_state, d.exam_state, d.exam_id,d.exam_num, d.learn_time from t_trainingbcc_device d
|
|
|
+ select d.id,s.name , d.staff_id, d.regular_id, d.start_date, d.remarks, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.supplementary, d.learn_state, d.exam_state, d.exam_id,d.exam_num, d.learn_time, d.finish_date from t_trainingbcc_device d
|
|
|
left join t_staffmgr s on s.staffid = d.staff_id
|
|
|
left join t_trainingbcc t on t.id = d.regular_id and t.DEL_FLAG = 0
|
|
|
Left join SYS_DICT_DATA s0 on s.UNIT = s0.DICT_VALUE and s0.DICT_TYPE ='STAFF_UNIT'
|
|
@@ -135,6 +136,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="examState != null">exam_state,</if>
|
|
|
<if test="examId != null">exam_id,</if>
|
|
|
<if test="learnTime != null">learn_time,</if>
|
|
|
+ <if test="finishDate != null">finish_date,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -152,6 +154,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="examState != null">#{examState},</if>
|
|
|
<if test="examId != null">#{examId},</if>
|
|
|
<if test="learnTime != null">#{learnTime},</if>
|
|
|
+ <if test="finishDate != null">#{finishDate},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -173,6 +176,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="examId != null">exam_id = #{examId},</if>
|
|
|
<if test="examNum != null">exam_num = #{examNum},</if>
|
|
|
<if test="learnTime != null">learn_time = #{learnTime},</if>
|
|
|
+ <if test="finishDate != null">finish_date = #{finishDate},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|