Class CityPOServiceImpl

java.lang.Object
io.github.seenings.address.service.impl.CityPOServiceImpl
All Implemented Interfaces:
io.github.seenings.address.service.CityService

@Repository public class CityPOServiceImpl extends Object implements io.github.seenings.address.service.CityService
  • Constructor Details

    • CityPOServiceImpl

      public CityPOServiceImpl()
  • Method Details

    • idToName

      public Map<Integer,String> idToName(Set<Integer> ids)
      Specified by:
      idToName in interface io.github.seenings.address.service.CityService
    • codeToName

      public Map<String,String> codeToName(Set<String> codes)
      Specified by:
      codeToName in interface io.github.seenings.address.service.CityService
    • provinceCodeToCode

      public Map<String, List<String>> provinceCodeToCode(Set<String> provinceCodes)
      Specified by:
      provinceCodeToCode in interface io.github.seenings.address.service.CityService
    • cityCodeToCityId

      public Map<String,Integer> cityCodeToCityId(Set<String> cityCodes)
      Specified by:
      cityCodeToCityId in interface io.github.seenings.address.service.CityService
    • cityNameToProvinceCode

      public Map<String,String> cityNameToProvinceCode(Set<String> cityNames)
      根据城市名获取省会代码
      Specified by:
      cityNameToProvinceCode in interface io.github.seenings.address.service.CityService
      Parameters:
      cityNames - 城市名
      Returns:
      城市名对应省会代码