|
@@ -70,6 +70,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
70
|
70
|
left join sys_user_post up on u.user_id = up.user_id
|
71
|
71
|
left join sys_post p on up.post_id = p.post_id
|
72
|
72
|
where p.post_name = "秘书"
|
|
73
|
+ <if test="userId != null and userId != 0">
|
|
74
|
+ AND u.user_id = #{userId}
|
|
75
|
+ </if>
|
|
76
|
+ <if test="userName != null and userName != ''">
|
|
77
|
+ AND u.user_name like concat('%', #{userName}, '%')
|
|
78
|
+ </if>
|
|
79
|
+ <if test="nickName != null and nickName != ''">
|
|
80
|
+ AND u.nick_name like concat('%', #{nickName}, '%')
|
|
81
|
+ </if>
|
|
82
|
+ <if test="status != null and status != ''">
|
|
83
|
+ AND u.status = #{status}
|
|
84
|
+ </if>
|
|
85
|
+ <if test="phonenumber != null and phonenumber != ''">
|
|
86
|
+ AND u.phonenumber like concat('%', #{phonenumber}, '%')
|
|
87
|
+ </if>
|
|
88
|
+ <if test="degree != null and degree != ''">
|
|
89
|
+ AND u.degree = #{degree}
|
|
90
|
+ </if>
|
|
91
|
+ <if test="titles != null and titles != ''">
|
|
92
|
+ AND find_in_set(#{titles}, u.titles)
|
|
93
|
+ </if>
|
|
94
|
+ <if test="certificates != null and certificates != ''">
|
|
95
|
+ AND find_in_set(#{certificates}, u.certificates)
|
|
96
|
+ </if>
|
73
|
97
|
</select>
|
74
|
98
|
|
75
|
99
|
<select id="selectGmAssistant" parameterType="SysUser" resultMap="SysUserResult">
|
|
@@ -94,6 +118,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
94
|
118
|
<if test="phonenumber != null and phonenumber != ''">
|
95
|
119
|
AND u.phonenumber like concat('%', #{phonenumber}, '%')
|
96
|
120
|
</if>
|
|
121
|
+ <if test="degree != null and degree != ''">
|
|
122
|
+ AND u.degree = #{degree}
|
|
123
|
+ </if>
|
|
124
|
+ <if test="titles != null and titles != ''">
|
|
125
|
+ AND find_in_set(#{titles}, u.titles)
|
|
126
|
+ </if>
|
|
127
|
+ <if test="certificates != null and certificates != ''">
|
|
128
|
+ AND find_in_set(#{certificates}, u.certificates)
|
|
129
|
+ </if>
|
97
|
130
|
</select>
|
98
|
131
|
|
99
|
132
|
<select id="selectUserListByPostName" parameterType="String" resultMap="SysUserResult">
|