| | |
| | | import com.zy.asrs.service.BasStationService; |
| | | import com.zy.asrs.service.DeviceConfigService; |
| | | import com.zy.asrs.utils.MapExcelUtils; |
| | | import com.zy.common.utils.NavigateSolution; |
| | | import com.zy.common.utils.RedisUtil; |
| | | import com.zy.core.enums.RedisKeyType; |
| | | import com.zy.core.enums.SlaveType; |
| | | import com.zy.core.model.StationObjModel; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private BasStationService basStationService; |
| | | @Autowired |
| | | private MapExcelUtils mapExcelUtils; |
| | | @Autowired |
| | | private RedisUtil redisUtil; |
| | | |
| | | @Override |
| | | public BasMapEditorDoc getEditorDoc(Integer lev) { |
| | |
| | | } |
| | | |
| | | private void clearMapCaches(List<Integer> levList) { |
| | | redisUtil.del(RedisKeyType.LOC_MAP_BASE.key); |
| | | redisUtil.del(RedisKeyType.LOC_MAST_MAP_LIST.key); |
| | | if (levList == null || levList.isEmpty()) { |
| | | return; |
| | | } |
| | | LinkedHashSet<Integer> distinctLevSet = new LinkedHashSet<>(levList); |
| | | for (Integer lev : distinctLevSet) { |
| | | if (lev == null) { |
| | | continue; |
| | | } |
| | | NavigateSolution.refreshMapCache(lev); |
| | | } |
| | | basMapService.refreshMapRuntimeCaches(levList); |
| | | } |
| | | |
| | | private String normalizeType(String type) { |