微信获取地区名称信息后,逗号分割的省,市,区字符串,换id ,返回LIST。

@Select({
	"<script>",
	"select id,name from region where name in",
	"<foreach collection=\"region.split(',')\" item=\"item\" index=\'index\' open=\"(\" separator=\",\" close=\")\" >",
	"#{item}",
	"</foreach>",
	" ORDER BY FIELD(name,",
	"<foreach collection=\"region.split(',')\" item=\"item\" index=\'index\' separator=\",\" >",
	"#{item}", 
	"</foreach>",
	 ")",
	"</script>"
})
//@ResultType(java.util.HashMap.class)
List<RegionData> SelectRegionFromWxuserAddress(@Param("region")String region);
上一篇:Node.js Express 框架


下一篇:Windows下Node.js+Express+WebSocket 安装配置