智慧保安后台管理-验收版本
Administrator
2021-12-04 804764fa08951636d118377923c7fddfccc4f643
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -215,15 +215,20 @@
        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>
@@ -236,6 +241,18 @@
        <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>