@RequestMapping("BusinessFunction/getBusinessFunctionList") @ResponseBody public String getBusinessFunctionList(String bs_id, String func_id, Integer page, Integer rows) { page = this.initPage(page); rows = this.initRows(rows); Map<String, Object> params = new HashMap<String, Object>(3); try { String sql = businessFunctionService.getNameSql("BusinessFunction.getBusiness_functionList"); if (func_id != null && !func_id.isEmpty()) { sql += " and bsf.func_id =:func_id"; params.put("func_id", func_id); } params.put("bs_id", bs_id); return JSON.toJSONString(businessFunctionService.getJsonMapBySql(sql, params, page, rows)); } catch (Exception e) { logger.error(e.toString()); } return JSON.toJSONString(null); }
@RequestMapping("BusinessFunction/getItemList") @ResponseBody public String getItemList(Integer page, Integer rows) { page = this.initPage(page); rows = this.initRows(rows); String sql = "select func_id,func_name,func_img_path from business_function where is_bs_item = 1"; try { return JSON.toJSONString(businessFunctionService.getJsonMapBySql(sql, null, page, rows)); } catch (Exception e) { logger.error(e.toString()); } return JSON.toJSONString(null); }