站点GEO
This commit is contained in:
parent
dcae17a0fc
commit
810126cbd1
@ -357,12 +357,33 @@ public class RedisUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除指定停车区的元数据(MBR 和顶点)
|
* 删除运营区
|
||||||
* @param orgId 组织ID
|
*
|
||||||
*/
|
*/
|
||||||
public void deleteParkingAreaMeta(Long orgId,Long regionId) {
|
public void delOperationArea(Long orgId,Long regionId) {
|
||||||
String hashKey = "parking_area:meta:" + orgId;
|
redisTemplate.opsForGeo().remove(operationKey+orgId,regionId);
|
||||||
redisTemplate.opsForHash().delete(hashKey,"vertices"+regionId,"mbr"+regionId);
|
delOperationAreaMeta(orgId,regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void delOperationAreaMeta(Long orgId,Long regionId) {
|
||||||
|
redisTemplate.opsForHash().delete("operation_area:meta:" + orgId, "vertices"+regionId);
|
||||||
|
redisTemplate.opsForHash().delete("operation_area:meta:" + orgId, "mbr"+regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除停车区数据
|
||||||
|
* @param areaId 运营区Id
|
||||||
|
* @param regionId 停车区Id
|
||||||
|
*/
|
||||||
|
public void delParkingArea(Long areaId,Long regionId) {
|
||||||
|
redisTemplate.opsForGeo().remove(parkingKey+areaId, regionId);
|
||||||
|
delParkingAreaMeta(areaId,regionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void delParkingAreaMeta(Long areaId,Long regionId) {
|
||||||
|
redisTemplate.opsForHash().delete("parking_area:meta:" + areaId, "vertices"+regionId);
|
||||||
|
redisTemplate.opsForHash().delete("parking_area:meta:" + areaId, "mbr"+regionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user