|
@@ -31,10 +31,11 @@
|
|
<result property="photo" column="photo" />
|
|
<result property="photo" column="photo" />
|
|
<result property="pId" column="p_id" />
|
|
<result property="pId" column="p_id" />
|
|
<result property="specialDuty" column="special_duty" />
|
|
<result property="specialDuty" column="special_duty" />
|
|
|
|
+ <result property="leftDate" column="left_date" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTStaffmgrVo">
|
|
<sql id="selectTStaffmgrVo">
|
|
- select d.id, d.plant_code, d.staffid, d.name, d.photo, d.sex, d.birthday, d.unit, d.team, d.actualpost, d.contact, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.education, d.en_ability, d.accident_num, d.mail, d.skill_score, d.p_id , d.special_duty, s.dept_name from t_staffmgr d
|
|
|
|
|
|
+ select d.id, d.plant_code,d.left_date, d.staffid, d.name, d.photo, d.sex, d.birthday, d.unit, d.team, d.actualpost, d.contact, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.education, d.en_ability, d.accident_num, d.mail, d.skill_score, d.p_id , d.special_duty, s.dept_name from t_staffmgr 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>
|
|
|
|
|
|
@@ -288,7 +289,7 @@
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<update id="deleteLeftTStaffmgrByIds" parameterType="Long">
|
|
<update id="deleteLeftTStaffmgrByIds" parameterType="Long">
|
|
- update t_staffmgr set del_flag = 9 where id = #{id}
|
|
|
|
|
|
+ update t_staffmgr set del_flag = 9 , LEFT_DATE = SYSDATE where id = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<update id="reLeftTStaffmgrByIds" parameterType="Long">
|
|
<update id="reLeftTStaffmgrByIds" parameterType="Long">
|