コード例 #1
0
 @ResponseBody
 @RequestMapping("/levelListXY")
 public PageResult getCountyLevelXY(String x, String y) {
   if (StringUtils.isEmpty(x) || StringUtils.isEmpty(y)) return getErrRes(ResultInfo.INF_EMPTY);
   PageResult pres = levelService.countyLevelsXY(x, y, getResult());
   return pres;
 }
コード例 #2
0
 @ResponseBody
 @RequestMapping("/levelList")
 public PageResult getCountyLevel(String countyGuid) {
   if (StringUtils.isEmpty(countyGuid)) return getErrRes(ResultInfo.INF_EMPTY);
   List<CountyLevelView> list = levelService.countyLevels(countyGuid);
   res.put("result", list);
   return res;
 }