feat(trajectory): 新增轨迹检测与 Beacon 注册表
This commit is contained in:
@@ -82,6 +82,23 @@ public interface AreaDeviceService {
|
||||
*/
|
||||
List<Long> getDeviceIdsByAreaAndType(Long areaId, String relationType);
|
||||
|
||||
/**
|
||||
* 查询所有启用的指定类型设备关联
|
||||
*
|
||||
* @param relationType 关联类型(BADGE/BEACON/TRAFFIC_COUNTER)
|
||||
* @return 所有启用的指定类型关联关系
|
||||
*/
|
||||
List<OpsAreaDeviceRelationDO> listAllByType(String relationType);
|
||||
|
||||
/**
|
||||
* 查询所有启用的 Beacon 设备关联
|
||||
* <p>
|
||||
* 用于轨迹检测功能,获取全量 Beacon 注册表
|
||||
*
|
||||
* @return 所有启用的 Beacon 类型关联关系
|
||||
*/
|
||||
List<OpsAreaDeviceRelationDO> listAllEnabledBeacons();
|
||||
|
||||
/**
|
||||
* 初始化区域设备配置缓存
|
||||
* <p>
|
||||
|
||||
@@ -163,6 +163,16 @@ public class AreaDeviceServiceImpl implements AreaDeviceService, InitializingBea
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<OpsAreaDeviceRelationDO> listAllByType(String relationType) {
|
||||
return relationMapper.selectListByAreaIdAndRelationType(null, relationType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<OpsAreaDeviceRelationDO> listAllEnabledBeacons() {
|
||||
return listAllByType("BEACON");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initConfigCache() {
|
||||
log.info("[AreaDevice] 开始初始化区域设备配置缓存...");
|
||||
|
||||
Reference in New Issue
Block a user