|
@@ -33,10 +33,11 @@
|
|
|
<result property="specialDuty" column="special_duty" />
|
|
|
<result property="leftDate" column="left_date" />
|
|
|
<result property="isRetire" column="is_retire" />
|
|
|
+ <result property="region" column="region" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTStaffmgrVo">
|
|
|
- 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
|
|
|
+ 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, d.region, s.dept_name from t_staffmgr d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
</sql>
|
|
|
|
|
@@ -45,7 +46,7 @@
|
|
|
select d.id, s.DICT_LABEL,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
|
|
|
+ d.skill_score, d.p_id , d.special_duty,d.region, s.dept_name
|
|
|
|
|
|
from t_staffmgr d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
@@ -318,6 +319,7 @@
|
|
|
<if test="photo != null">photo,</if>
|
|
|
<if test="pId != null">p_id,</if>
|
|
|
<if test="specialDuty != null">special_duty,</if>
|
|
|
+ <if test="region != null">region,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -345,6 +347,7 @@
|
|
|
<if test="photo != null">#{photo},</if>
|
|
|
<if test="pId != null">#{pId},</if>
|
|
|
<if test="specialDuty != null">#{specialDuty},</if>
|
|
|
+ <if test="region != null">#{region},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -369,6 +372,7 @@
|
|
|
<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="region != null">region = #{region},</if>
|
|
|
<if test="updatedate != null">updatedate = #{updatedate},</if>
|
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
<if test="remarks != null">remarks = #{remarks},</if>
|