|
@@ -73,6 +73,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</where>
|
|
|
${params.dataScope}
|
|
|
</select>
|
|
|
+ <select id="selectUserPostPssr" parameterType="tStaffmgr" resultMap="SysUserResult">
|
|
|
+ select b.USER_ID ,b.NICK_NAME ,b.STAFFID from T_STAFFMGR a
|
|
|
+ left join SYS_USER b on a.STAFFID=b.STAFFID
|
|
|
+ left join sys_dept d on a.dept_id = d.dept_id
|
|
|
+ left join T_WORKLICENSE e on e.EMPLOYEEID=a.STAFFID
|
|
|
+ <where>
|
|
|
+ <if test="actualposts != null and actualposts != ''">
|
|
|
+ and a.actualpost in
|
|
|
+ <foreach collection="actualposts.split(',')" item="item" index="index"
|
|
|
+ open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="deptId != null and deptId != ''"> and a.dept_id=#{deptId}</if>
|
|
|
+ <if test="boiler != null"> and e.boiler=1</if>
|
|
|
+ <if test="cracking != null"> and e.cracking=1</if>
|
|
|
+ <if test="hotarea != null"> and e.hotarea=1</if>
|
|
|
+ <if test="coldarea != null"> and e.coldarea=1</if>
|
|
|
+ and a.DEL_FLAG=0
|
|
|
+ and b.USER_ID is not null
|
|
|
+ </where>
|
|
|
+ ${params.dataScope}
|
|
|
+ </select>
|
|
|
|
|
|
<select id="selectUserByMgrRegion" parameterType="tStaffmgr" resultType="map">
|
|
|
SELECT
|