这是怎么回事
来源:6-4 店铺信息编辑之前端实现
静水流深3932456
2018-03-20
写回答
3回答
-
同学好,这个需要你去调试一下,再后端设置下断点,即shopInfoUrl用的controller方法里设置下,看看为什么没有返回。
032018-03-20 -
慕粉3077148
2018-11-04
同学这个问题解决了吗?
00 -
静水流深3932456
提问者
2018-03-20
@RequestMapping(value = "/getshopbyid", method = RequestMethod.GET) @ResponseBody private Map<String, Object> getShopById(HttpServletRequest request) { Map<String, Object> modelMap = new HashMap<String, Object>(); Long shopId = HttpServletRequestUtil.getLong(request, "shopId"); if (shopId > -1) { try { Shop shop = shopService.getByShopId(shopId); List<Area> areaList = areaService.getAreaList(); modelMap.put("shop", shop); modelMap.put("areaList", areaList); modelMap.put("success", true); } catch (Exception e) { modelMap.put("success", false); modelMap.put("errMsg", e.toString()); } } else { modelMap.put("success", false); modelMap.put("errMsg", "empty shopId"); } return modelMap; }
。。。
00
相似问题