|
@@ -72,6 +72,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectTWorkcertificateVo"/>
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectTWorkcertificateByEmployeeid" parameterType="String" resultMap="TWorkcertificateResult">
|
|
|
+ <include refid="selectTWorkcertificateVo"/>
|
|
|
+ where employeeid = #{employeeid}
|
|
|
+ </select>
|
|
|
|
|
|
<insert id="insertTWorkcertificate" parameterType="TWorkcertificate">
|
|
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
@@ -183,6 +188,44 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateTWorkcertificateByEmployeeid" parameterType="TWorkcertificate">
|
|
|
+ update t_workcertificate
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="plantCode != null and plantCode != ''">plant_code = #{plantCode},</if>
|
|
|
+ <if test="name != null">name = #{name},</if>
|
|
|
+ <if test="employeeid != null">employeeid = #{employeeid},</if>
|
|
|
+ <if test="classes != null">classes = #{classes},</if>
|
|
|
+ <if test="container != null">container = #{container},</if>
|
|
|
+ <if test="pipe != null">pipe = #{pipe},</if>
|
|
|
+ <if test="idnum != null">idnum = #{idnum},</if>
|
|
|
+ <if test="reviewdate != null">reviewdate = #{reviewdate},</if>
|
|
|
+ <if test="pipevalidity != null">pipevalidity = #{pipevalidity},</if>
|
|
|
+ <if test="boiler != null">boiler = #{boiler},</if>
|
|
|
+ <if test="boilvalidity != null">boilvalidity = #{boilvalidity},</if>
|
|
|
+ <if test="hydrogenation != null">hydrogenation = #{hydrogenation},</if>
|
|
|
+ <if test="hydvalidity != null">hydvalidity = #{hydvalidity},</if>
|
|
|
+ <if test="hydnextreview != null">hydnextreview = #{hydnextreview},</if>
|
|
|
+ <if test="cracking != null">cracking = #{cracking},</if>
|
|
|
+ <if test="crackingvalidity != null">crackingvalidity = #{crackingvalidity},</if>
|
|
|
+ <if test="crackingreview != null">crackingreview = #{crackingreview},</if>
|
|
|
+ <if test="foremantrain != null">foremantrain = #{foremantrain},</if>
|
|
|
+ <if test="foremanreview != null">foremanreview = #{foremanreview},</if>
|
|
|
+ <if test="foremannextreview != null">foremannextreview = #{foremannextreview},</if>
|
|
|
+ <if test="waterdate != null">waterdate = #{waterdate},</if>
|
|
|
+ <if test="energydate != null">energydate = #{energydate},</if>
|
|
|
+ <if test="refrigerationdate != null">refrigerationdate = #{refrigerationdate},</if>
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ <if test="createrCode != null">creater_code = #{createrCode},</if>
|
|
|
+ <if test="createdate != null">createdate = #{createdate},</if>
|
|
|
+ <if test="updaterCode != null">updater_code = #{updaterCode},</if>
|
|
|
+ <if test="updatedate != null">updatedate = #{updatedate},</if>
|
|
|
+ <if test="remarks != null">remarks = #{remarks},</if>
|
|
|
+ <if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
+ </trim>
|
|
|
+ where employeeid = #{employeeid}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
<update id="deleteTWorkcertificateById" parameterType="Long">
|
|
|
update t_workcertificate set del_flag = 2 where id = #{id}
|
|
|
</update>
|