Esempio n. 1
0
 /**
  * 描述:〈查询促销活动〉 <br>
  * 作者:[email protected] <br>
  * 生成日期:2014-6-1 <br>
  *
  * @param request
  * @param response
  */
 @RequestMapping(value = "/selectShow")
 @ResponseBody
 public void selectShow(HttpServletRequest request, HttpServletResponse response) {
   try {
     List<KingPromotion> list = fruitsService.selectShow();
     renderResponseJson(request, response, SysCode.SUCCESS, list);
   } catch (Exception e) {
     logger.error("查询促销活动错误:" + e.getMessage(), e);
     renderResponseJson(request, response, SysCode.SYS_ERR, null);
   }
 }
Esempio n. 2
0
 /**
  * 描述:〈查询栏目水果〉 <br>
  * 作者:[email protected] <br>
  * 生成日期:2014-6-1 <br>
  *
  * @param request
  * @param response
  */
 @RequestMapping(value = "/queryColumnFruitsAll")
 @ResponseBody
 public void queryColumnFruitsAll(HttpServletRequest request, HttpServletResponse response) {
   try {
     List<KingFruitsBean> list = fruitsService.queryColumnFruitsAll();
     renderResponseJson(request, response, SysCode.SUCCESS, list);
   } catch (Exception e) {
     logger.error("查询栏目水果错误:" + e.getMessage(), e);
     renderResponseJson(request, response, SysCode.SYS_ERR, null);
   }
 }
Esempio n. 3
0
 /**
  * 描述:〈获取水果分类列表〉 <br>
  * 作者:[email protected] <br>
  * 生成日期:2014-6-1 <br>
  *
  * @param request
  * @param response
  */
 @RequestMapping(value = "/categoryList")
 @ResponseBody
 public void categoryList(HttpServletRequest request, HttpServletResponse response) {
   try {
     List<KingFruitsCategory> list = fruitsService.queryCategorys();
     renderResponseJson(request, response, SysCode.SUCCESS, list);
   } catch (Exception e) {
     logger.error("获取水果分类列表错误:" + e.getMessage(), e);
     renderResponseJson(request, response, SysCode.SYS_ERR, null);
   }
 }