|  |  |  | 
|---|
|  |  |  | @ConfigurationProperties(prefix = "special-city") | 
|---|
|  |  |  | @Component | 
|---|
|  |  |  | public class SpecialCitiesProperties { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private List<SysArea> twentyEightCities; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private List<SysArea> heBeiEightCities; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private List<SysArea> oneSixEightCities; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public boolean isTwentyEightCities(Integer cityCode){ | 
|---|
|  |  |  | for (SysArea city : twentyEightCities) { | 
|---|
|  |  |  | if(city.getAreaCode().equals(cityCode)) | 
|---|
|  |  |  | return true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public boolean isHeBeiEightCities(Integer cityCode){ | 
|---|
|  |  |  | for (SysArea city : heBeiEightCities) { | 
|---|
|  |  |  | if(city.getAreaCode().equals(cityCode)) | 
|---|
|  |  |  | return true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public boolean isOneSixEightCities(Integer cityCode){ | 
|---|
|  |  |  | for (SysArea city : oneSixEightCities) { | 
|---|
|  |  |  | if(city.getAreaCode().equals(cityCode)) | 
|---|
|  |  |  | return true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|