Ejemplo n.º 1
0
 @RequestMapping(value = "/getlistdata", method = RequestMethod.GET)
 @ResponseBody
 public String getlist(
     @RequestParam(defaultValue = "1") Integer page,
     @RequestParam(defaultValue = "12") Integer size,
     String search) {
   return RequestResult.success(service.findPage(page, size, search)).toJson();
 }
Ejemplo n.º 2
0
 @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
 public @ResponseBody String delete(@PathVariable String id) {
   service.logicDelete(id);
   return RequestResult.success(null).toJson();
 }
Ejemplo n.º 3
0
 /**
  * 用于获取总店下的分店
  *
  * @param shopId
  * @return
  */
 @RequestMapping(value = "/getShop", method = RequestMethod.GET)
 @ResponseBody
 public String getShop(String shopId) {
   return RequestResult.success(service.findOne(shopId)).toJson();
 }