package com.ruoyi.benyun.utils;

import com.ruoyi.benyun.constant.RedisContant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

@Component
public class BeanMapUtil {
    @Autowired
    RedisTemplate redisTemplate;

    public String getCityTier(String addrCode){
        String o = (String) redisTemplate.boundHashOps(RedisContant.CITY_TIER_MAP).get(addrCode.substring(0, 4));
        return o;
    }
}
