| | |
| | | on |
| | | si.departmentid = bd.id |
| | | left join |
| | | sys_jurisdiction sj |
| | | on |
| | | sj.id = si.jurisdiction |
| | | left join |
| | | sys_live_location sll |
| | | on |
| | | sll.worker_id = bu.id |
| | |
| | | and bu.status = #{user.status} |
| | | </if> |
| | | <if test="user.jurisdiction!=null and user.jurisdiction != '' and user.jurisdiction!='1372091709474910209'"> |
| | | and si.jurisdiction = #{user.jurisdiction} |
| | | and (sj.id = #{user.jurisdiction} or sj.parent_id = #{user.jurisdiction}) |
| | | </if> |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and bu.real_name like concat('%', #{user.realName},'%') |