智慧保安后台管理-验收版本
Administrator
2021-12-01 97ebe4578f2876b73017fa5690f245b762cfe2ae
src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml
@@ -166,11 +166,9 @@
                        dept.is_deleted = 0
                  and si.stats = 2
                        and si.departmentid !=1432626178757275649
                    <if test="parentId!=null and parentId!=0">
                        and si.departmentid = 1111
                    </if>
                        and si.departmentid !=1445980335107002370
                        and si.departmentid !=1442115701350387714
            )
            <if test="parentId!=null and parentId!=0">
                union
                (select
                    bu.id,
@@ -192,10 +190,10 @@
                                    and bu.is_deleted = 0
                                    and bu.`status` =1
                                    and si.stats = 2
                                    and si.departmentid = #{parentId}
                                    and si.departmentid !=1432626178757275649
                                and si.departmentid !=1445980335107002370
                                and si.departmentid !=1442115701350387714
                )
            </if>
        )c
    </select>