|
@@ -1587,6 +1587,30 @@
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="vo.houseId != null and vo.houseId != ''">
|
|
|
|
|
+ and sd.id like concat('%',#{vo.houseId},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vo.name != null and vo.name != ''">
|
|
|
|
|
+ and su.name =#{vo.name}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vo.userCode != null and vo.userCode != ''">
|
|
|
|
|
+ and su.id =#{vo.userCode}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vo.phoneNumber != null and vo.phoneNumber != ''">
|
|
|
|
|
+ and su.mobile =#{vo.phoneNumber}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vo.leaderId != null and vo.leaderId != ''">
|
|
|
|
|
+ and su.leader_id =#{vo.leaderId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vo.leaderName != null and vo.leaderName != ''">
|
|
|
|
|
+ and su.leader_name =#{vo.leaderName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="vo.deptIds != null and vo.deptIds != '' and vo.deptIds.size() > 0">
|
|
|
|
|
+ AND sd.id in
|
|
|
|
|
+ <foreach collection="vo.deptIds" item="item" open="(" separator="," close=")">
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|