吉安感知网项目-后端
linwei
2026-04-13 79ac8d0cee3b8dfea64b4d9a1ebdeb846490ecf0
opt:任务查询优化
1 files modified
4 ■■■■ changed files
drone-service/drone-system/src/main/java/org/sxkj/system/mapper/DeptMapper.xml 4 ●●●● patch | view | raw | blame | history
drone-service/drone-system/src/main/java/org/sxkj/system/mapper/DeptMapper.xml
@@ -146,7 +146,7 @@
        blade_dept
        where is_deleted = 0
        <if test="deptId!=null and deptId!=''">
            and (id = #{deptId} or ancestors like concat('%',#{deptId},'%'))
            and (id = #{deptId}::bigint or ancestors like concat('%',#{deptId},'%'))
        </if>
    </select>
@@ -166,7 +166,7 @@
        left join sys_config sc on sc.dept_id::VARCHAR = bd.id::VARCHAR and sc.is_deleted = 0
        where bd.is_deleted = 0
        and (
        bd.id = #{deptId}
        bd.id = #{deptId}::bigint
        or bd.ancestors like concat('%',#{deptId},'%')
        )
    </select>