|
@@ -60,6 +60,74 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTStaffmgrList" parameterType="TStaffmgr" resultMap="TStaffmgrResult">
|
|
|
+ <include refid="selectTStaffmgrVo"/>
|
|
|
+ Left join SYS_DICT_DATA s0 on d.UNIT = s0.DICT_VALUE and s0.DICT_TYPE ='STAFF_UNIT'
|
|
|
+ LEFT JOIN SYS_DICT_DATA s on d.ACTUALPOST = s.DICT_VALUE and s.DICT_TYPE = 'ACTUALPOST'
|
|
|
+ LEFT JOIN SYS_DICT_DATA s1 on d.team = s1.DICT_VALUE and s1.DICT_TYPE = 'TEAM_DIVIDE'
|
|
|
+ <where>
|
|
|
+ <if test="name != null and name != ''"> and name like concat(concat('%', #{name}), '%')</if>
|
|
|
+ <if test="sex != null and sex != ''"> and sex = #{sex}</if>
|
|
|
+ <if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
|
|
+ <if test="specialDuty != null and specialDuty != ''"> and special_duty like concat(concat('%', #{specialDuty}), '%')</if>
|
|
|
+ <if test="units != null and units != ''">
|
|
|
+ and
|
|
|
+ unit in
|
|
|
+ <foreach collection="units.split(',')" item="item" index="index"
|
|
|
+ open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="team != null and team != ''"> and team = #{team}</if>
|
|
|
+ <if test="teams != null and teams != ''">
|
|
|
+ and
|
|
|
+ team in
|
|
|
+ <foreach collection="teams.split(',')" item="item" index="index"
|
|
|
+ open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="actualpost != null and actualpost != ''"> and actualpost = #{actualpost}</if>
|
|
|
+ <if test="actualposts != null and actualposts != ''">
|
|
|
+ and
|
|
|
+ actualpost in
|
|
|
+ <foreach collection="actualposts.split(',')" item="item" index="index"
|
|
|
+ open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+
|
|
|
+ </if>
|
|
|
+ <if test="education != null and education != ''"> and education = #{education}</if>
|
|
|
+ <if test="educations != null and educations != ''">
|
|
|
+ and
|
|
|
+ education in
|
|
|
+ <foreach collection="educations.split(',')" item="item" index="index"
|
|
|
+ open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="enAbility != null and enAbility != ''"> and en_ability = #{enAbility}</if>
|
|
|
+ <if test="enAbilitys != null and enAbilitys != ''">
|
|
|
+ and
|
|
|
+ en_ability in
|
|
|
+ <foreach collection="enAbilitys.split(',')" item="item" index="index"
|
|
|
+ open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="haveEmail != null and haveEmail != ''"> and mail IS NOT NULL</if>
|
|
|
+ <if test="skillevaluation != null"> and team = 10
|
|
|
+ or team = 12
|
|
|
+ or team = 14
|
|
|
+ or team = 16
|
|
|
+ </if>
|
|
|
+ and d.del_flag = 0
|
|
|
+ </where>
|
|
|
+ <!-- 数据范围过滤 -->
|
|
|
+ ${params.dataScope}
|
|
|
+ ORDER BY s0.DICT_SORT, s1.DICT_SORT ,s.DICT_SORT
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectAllTStaffmgrList" parameterType="TStaffmgr" resultMap="TStaffmgrResult">
|
|
|
<include refid="selectTStaffmgrVo"/>
|
|
|
Left join SYS_DICT_DATA s0 on d.UNIT = s0.DICT_VALUE and s0.DICT_TYPE ='STAFF_UNIT'
|
|
|
LEFT JOIN SYS_DICT_DATA s on d.ACTUALPOST = s.DICT_VALUE and s.DICT_TYPE = 'ACTUALPOST'
|