智慧保安后台管理-外网项目备份
钟日健
2026-06-01 62eb499b0c969f246d3245d1429a97da4de1ce28
src/main/java/org/springblade/modules/dispatcher/mapper/DispatcherUnitMapper.xml
@@ -16,8 +16,16 @@
            sys_jurisdiction sj
        on
            sj.id = sdu.jurisdiction
        LEFT JOIN blade_dict_biz bdb ON bdb.dict_key = sdu.profession and  bdb.is_deleted = 0
        WHERE
            1=1
        and bdb.code = 'dispatchProfession'
        <if test="dispatcherUnit.profession != null and dispatcherUnit.profession !=''">
            and sdu.profession in
            <foreach collection="dispatcherUnit.profession.split(',')" index="index" item="item" open="(" separator="," close=")">
                #{item}
            </foreach>
        </if>
        <if test="dispatcherUnit.deptName!=null and  dispatcherUnit.deptName!=''">
            and bt.dept_name like concat('%', #{dispatcherUnit.deptName},'%')
        </if>
@@ -80,7 +88,7 @@
    <select id="getAll" resultType="org.springblade.modules.dispatcher.vo.DispatcherUnitVO">
        select
        sdu.*,bt.dept_name deptName,sj.dept_name jurisdictionName
        sdu.*,bt.dept_name deptName,sj.dept_name jurisdictionName,bdb.dict_value as professionName
        from
        sys_dispatcher_unit sdu
        LEFT JOIN
@@ -91,8 +99,16 @@
        sys_jurisdiction sj
        on
        sj.id = sdu.jurisdiction
        LEFT JOIN blade_dict_biz bdb ON bdb.dict_key = sdu.profession and  bdb.is_deleted = 0
        WHERE
        1=1
        and bdb.code = 'dispatchProfession'
        <if test="dispatcherUnit.profession != null and dispatcherUnit.profession !=''">
            and sdu.profession in
            <foreach collection="dispatcherUnit.profession.split(',')" index="index" item="item" open="(" separator="," close=")">
                #{item}
            </foreach>
        </if>
        <if test="dispatcherUnit.deptName!=null and  dispatcherUnit.deptName!=''">
            and bt.dept_name like concat('%', #{dispatcherUnit.deptName},'%')
        </if>