如果place的级别等于省级(ordinal()返回枚举常量的位置,省级对应0),则location为"z.C_CITID"。 如果place的级别等于市级(ordinal()返回枚举常量的位置,市级对应1),则根据PlaceTool工具类判断是否不存在县级(isNoCounty方法返回布尔值),如果不存在县级,则location为"z.C_TOWID",否则location为"z.C_COUID"。 如果place的级别等于县级(ordinal()返回枚举常量的位置,县级对应2),则location为"z.C_TOWID"。

ifplacegetLevel==PlaceLevelPROVINCEordinal location = zC_CITID ; else ifplacegetLevel==PlaceLevelCITYordinal ifPlaceToolisNoCountyplace_id location = zC

原文地址: https://www.cveoy.top/t/topic/imdB 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录