| | |
| | | and account like concat('%', #{user.account},'%') |
| | | </if> |
| | | <if test="user.roleId!=null and user.roleId != ''"> |
| | | and br.role_alias = '公安管理员' |
| | | and (br.role_alias = '公安管理员' or br.role_alias = '民警') |
| | | </if> |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and real_name like concat(concat('%', #{user.realName}),'%') |
| | |
| | | //获取用户信息,保安,民警 |
| | | if (null!=userId && !userId.equals("")) { |
| | | UserVO user = baseMapper.getUserInfoById(userId); |
| | | if (user.getRoleAlias().equals("公安管理员")){ |
| | | if (user.getRoleAlias().equals("公安管理员") || user.getRoleAlias().equals("民警")){ |
| | | //公安管理员又分,如果是派出所,只返回当前值 |
| | | if (user.getDeptName().contains("派出所")){ |
| | | return ForestNodeMerger.merge(baseMapper.lazyTreeCityOne(tenantId, parentId)); |