Exemple #1
0
 @RequestMapping("/select")
 public String select(HttpServletRequest request, HttpServletResponse response) throws Exception {
   List<Map<String, Object>> list =
       skqHyService.queryForList("select * from skq_hy where status=1");
   setAttr("list", list);
   return "/com/jdk2010/system/skqhy/select";
 }
Exemple #2
0
 @RequestMapping("/view")
 public String view(HttpServletRequest request, HttpServletResponse response) throws Exception {
   String id = getPara("id");
   SkqHy skqHy = skqHyService.findById(id, SkqHy.class);
   setAttr("skqHy", skqHy);
   return "/com/jdk2010/system/skqhy/skqhy_view";
 }
Exemple #3
0
 @RequestMapping("/addaction")
 public void addaction(HttpServletRequest request, HttpServletResponse response) throws Exception {
   SkqHy skqHy = getModel(SkqHy.class);
   skqHyService.save(skqHy);
   ReturnData returnData = new ReturnData(Constants.SUCCESS, "操作成功");
   renderJson(response, returnData);
 }
Exemple #4
0
 @RequestMapping("/delete")
 public void delete(HttpServletRequest request, HttpServletResponse response) throws Exception {
   String ids = getPara("ids");
   skqHyService.deleteByIDS(ids, SkqHy.class);
   ReturnData returnData = new ReturnData(Constants.SUCCESS, "操作成功");
   renderJson(response, returnData);
 }
Exemple #5
0
 @RequestMapping("/list")
 public String list(HttpServletRequest request, HttpServletResponse response) throws Exception {
   DbKit dbKit = new DbKit("select * from skq_hy  where 1=1 order by hybm asc");
   String searchSQL = "";
   String orderSQL = "";
   dbKit.append(orderSQL);
   Page pageList = skqHyService.queryForPageList(dbKit, getPage(), SkqHy.class);
   setAttr("pageList", pageList);
   return "/com/jdk2010/system/skqhy/skqhy";
 }