| | |
| | | blade_role br |
| | | on |
| | | br.id = bu.role_id |
| | | left join |
| | | sys_information si |
| | | on |
| | | bd.id = si.departmentid |
| | | left join |
| | | sys_jurisdiction sj |
| | | on |
| | | sj.id = si.jurisdiction |
| | | where |
| | | bu.is_deleted = 0 |
| | | and |
| | | br.role_alias = '安保人员' |
| | | and |
| | | bu.status = 1 |
| | | and bd.parent_id!=1425365577303621633 |
| | | and bd.id != 1425365577303621633 |
| | | and bd.id != 1432625856013971457 |
| | | <if test="user.cardid!=null and user.cardid != ''"> |
| | | and bu.cardid like concat(concat('%', #{user.cardid}),'%') |
| | | </if> |
| | |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and bu.real_name like concat(concat('%', #{user.realName}),'%') |
| | | </if> |
| | | <if test="user.jurisdiction!=null and user.jurisdiction != ''"> |
| | | and (sj.id = #{user.jurisdiction} or sj.parent_id = #{user.jurisdiction}) |
| | | </if> |
| | | <if test="user.dispatch!=null and user.dispatch != ''"> |
| | | and bu.dispatch = #{user.dispatch} |
| | | </if> |
| | | <if test="user.soil!=null and user.soil != ''"> |
| | | and bu.soil = #{user.soil} |
| | | </if> |
| | | <if test="user.insurance!=null and user.insurance != ''"> |
| | | and bu.insurance = #{user.insurance} |
| | | </if> |
| | | <if test="user.userType!=null and user.userType != ''"> |
| | | and bu.user_type = #{user.userType} |
| | | </if> |