|
|
|
@ -22,6 +22,8 @@
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
|
<result property="wageCoefficient" column="wage_coefficient"/>
|
|
|
|
|
<result property="postCode" column="post_code"/>
|
|
|
|
|
<result property="postName" column="post_name"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBaseStaffInfoVo">
|
|
|
|
@ -41,9 +43,12 @@
|
|
|
|
|
bsi.create_time,
|
|
|
|
|
bsi.update_by,
|
|
|
|
|
bsi.update_time,
|
|
|
|
|
bsi.remark
|
|
|
|
|
bsi.remark,
|
|
|
|
|
bsi.post_code,
|
|
|
|
|
p.post_name
|
|
|
|
|
from base_staff_info bsi
|
|
|
|
|
left join base_team_members btm on btm.team_code = bsi.team_code
|
|
|
|
|
left join sys_post p on p.post_code = bsi.post_code
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseStaffInfoList" parameterType="BaseStaffInfo" resultMap="BaseStaffInfoResult">
|
|
|
|
@ -58,6 +63,7 @@
|
|
|
|
|
<if test="sex != null and sex != ''">and bsi.sex = #{sex}</if>
|
|
|
|
|
<if test="passWord != null and passWord != ''">and bsi.pass_word = #{passWord}</if>
|
|
|
|
|
<if test="delFlag != null and delFlag != ''">and bsi.del_flag = #{delFlag}</if>
|
|
|
|
|
<if test="postCode != null and postCode != ''">and bsi.post_code = #{postCode}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
@ -84,6 +90,7 @@
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
|
<if test="wageCoefficient != null">wage_coefficient,</if>
|
|
|
|
|
<if test="postCode != null">post_code,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="staffId != null and staffId != ''">#{staffId},</if>
|
|
|
|
@ -101,6 +108,7 @@
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
|
<if test="wageCoefficient != null">#{wageCoefficient},</if>
|
|
|
|
|
<if test="postCode != null">#{postCode},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -122,6 +130,7 @@
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
|
<if test="wageCoefficient != null">wage_coefficient = #{wageCoefficient},</if>
|
|
|
|
|
<if test="postCode != null">post_code = #{postCode},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where obj_id = #{objId}
|
|
|
|
|
</update>
|
|
|
|
|