/** * 根据年月获取工资条 * * @param year * @param month * @return */ @RequestMapping( value = "/getAllSaralyClipByMonth.do", produces = "application/json;charset=UTF-8") @ResponseBody public String getAllSaralyClipByMonth(Integer year, Integer month) { return JSONArray.toJSONString(saralyClipService.getAllSaralyClipByMonth(year, month)); }
@RequestMapping("list") public ModelAndView list() { List<Media> list = service.query(0); JSONArray array = new JSONArray(); for (Media ch : list) { array.add(ch.toJson()); } return ViewUtil.renderListView("_media.jsp", array.toJSONString()); }