吉安感知网项目-后端
linwei
2026-06-09 04056b0490135ddfc348928b2eb46b51bf71c600
fix(area): 修复派出所信息查询逻辑

- 添加了 BladeConstant 数据库常量导入
- 在查询条件中增加了软删除状态过滤
- 确保只返回未删除的派出所记录
- 保持现有排除ID功能的完整性
1 files modified
2 ■■■■■ changed files
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/service/impl/FwPoliceStationServiceImpl.java 2 ●●●●● patch | view | raw | blame | history
drone-service/drone-fw/src/main/java/org/sxkj/fw/area/service/impl/FwPoliceStationServiceImpl.java
@@ -17,6 +17,7 @@
package org.sxkj.fw.area.service.impl;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.constant.BladeConstant;
import org.springblade.core.tool.utils.StringUtil;
import org.sxkj.common.utils.HeaderUtils;
import org.sxkj.fw.area.entity.FwPoliceStationEntity;
@@ -111,6 +112,7 @@
        }
        LambdaQueryWrapper<FwPoliceStationEntity> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(FwPoliceStationEntity::getStationName, stationName);
        queryWrapper.eq(FwPoliceStationEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
        if (excludeId != null) {
            queryWrapper.ne(FwPoliceStationEntity::getId, excludeId);
        }