コード例 #1
0
 // 分页数量
 @Action(
     value = "count_invigilators",
     results = {
       @Result(
           type = "json",
           name = "success",
           params = {"contentType", "text/json"})
     })
 public String count() {
   try {
     result.setRecordCount(invigilatorbiz.findInvigilatorPageCount(invigilator, result));
   } catch (Exception e) {
     e.printStackTrace();
   }
   return SUCCESS;
 }
コード例 #2
0
 // 条件查询
 @Action(
     value = "findByconditions_invigilators",
     results = {
       @Result(
           type = "json",
           name = "success",
           params = {"contentType", "text/json"})
     })
 public String findByconditions() {
   try {
     result.setList(invigilatorbiz.findByConditions(invigilator, result));
   } catch (Exception e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   return "success";
 }