派生自 projectDept/qhighschool

yn147
2023-11-24 26780c533f2c2af6b9216306f649c1bcede94e4a
src/main/java/com/qxueyou/scc/exam/action/ExamBatchController.java
@@ -29,11 +29,11 @@
 * @history 2018-03-11 create kevin
 *
 */
@Api(tags="考试批次管理接口")
@Api(tags="考试批次管理接口")
@Controller
@RequestMapping(value = "/exam/exambatch")
public class ExamBatchController {
   //分页查询中,默认记录条数和页数
   //分页查询中,默认记录条数和页数
   private static final int DEFAULT_PAGE_SIZE=Integer.MAX_VALUE;
   private static final int DEFAULT_PAGE_NUM=1;
@@ -48,21 +48,21 @@
   IExamBatchService examBatchService;
   /**
    * 考试批次列表
    * 考试批次列表
    * */
   @ApiOperation(value = "考试批次列表")
   @ApiOperation(value = "考试批次列表")
   @ApiImplicitParams({
      @ApiImplicitParam(name="examId", dataType="String", paramType="query", value="考试id", required=false),
      @ApiImplicitParam(name="examId", dataType="String", paramType="query", value="考试id", required=false),
   })
   @RequestMapping(value = "/list", method = RequestMethod.GET)
   public @ResponseBody Result pageList(String examId,Integer pageSize,Integer pageNum){
      Result result = new Result(Boolean.TRUE);
      Pager pager = new Pager();
      // 查询记录数
      // 查询记录数
      String hqlCount="from ExamBatchInfo where examId=? and deleteFlag is false";
      int totalCount = commonDAO.findCount(hqlCount, CollectionUtils.newList(examId));
        // page赋值
        // page赋值
        pager.setTotalCount(totalCount);
        pager.setPageSize(pageSize!=null&&pageSize>0?pageSize:DEFAULT_PAGE_SIZE);
        pager.setPageNum (pageNum!=null&&pageNum>0?pageNum:DEFAULT_PAGE_NUM);
@@ -75,7 +75,7 @@
   }
   /**
    * 详情页面数据
    * 详情页面数据
    * @param examBatchId
    * @return
    */
@@ -86,7 +86,7 @@
      return result;
   }
   /**
    * 获取批次
    * 获取批次
    * @param
    * @return
    */
@@ -98,7 +98,7 @@
      return result;
   }
   /**
    * 获取批次
    * 获取批次
    * @param
    * @return
    */
@@ -110,7 +110,7 @@
      return result;
   }
   /**
    * 获取批次
    * 获取批次
    * @param
    * @return
    */
@@ -125,7 +125,7 @@
   /**
    * 保存
    * 保存
    * @param
    * @return
    */
@@ -143,7 +143,7 @@
   }
   /**
    * 删除
    * 删除
    * @param examBatchIds
    * @return
    */