智慧保安后台管理-外网
Administrator
2021-11-04 247abfbc0b322a04f8dc5fcf01fe7989b25fd7e9
src/main/java/org/springblade/modules/dispatcher/mapper/DispatcherMapper.xml
@@ -26,7 +26,14 @@
            blade_user bu
        on
            bu.id = sd.user_ids
        left join
            sys_jurisdiction sj
        on
            sj.id = sdu.jurisdiction
        where 1=1
        <if test="dispatcher.jurisdiction!=null  and dispatcher.jurisdiction!=''">
            and (sj.id = #{dispatcher.jurisdiction} or sj.parent_id = #{dispatcher.jurisdiction})
        </if>
        <if test="dispatcher.dispatcherUnitId!=null">
            and sd.dispatcher_unit_id = #{dispatcher.dispatcherUnitId}
        </if>