package com.qxueyou.scc.exam.service;
|
|
import java.math.BigDecimal;
|
import java.util.List;
|
import java.util.Map;
|
|
import com.qxueyou.scc.base.model.Pager;
|
import com.qxueyou.scc.base.model.Result;
|
import com.qxueyou.scc.exam.model.ExamPaperSectionInfo;
|
import com.qxueyou.scc.exercise.model.ExerciseGroup;
|
|
/**
|
* 试卷部分服务类
|
*
|
* @author kevin
|
* @createTime 2018-03-11
|
*/
|
public interface IExamPaperSectionService {
|
|
/**
|
* 查询试卷部分数量
|
* @param param 查询参数
|
* @return
|
*/
|
int queryExamPaperSectionCount(Map<String,Object> param);
|
|
|
/**
|
* 查询试卷部分列表
|
* @param param 查询参数
|
* @param page 分页对象
|
* @return
|
*/
|
List<ExamPaperSectionInfo> queryExamPaperSectionList(Map<String,Object> param,Pager page);
|
|
|
/**
|
* 新增试卷部分
|
*
|
* @param examPaperSectionInfo
|
*
|
* @return
|
*/
|
String addExamPaperSection(ExamPaperSectionInfo examPaperSectionInfo);
|
|
/**
|
* 删除试卷部分
|
*
|
* @param elxamBatchIds
|
* 试卷部分id
|
* @return 1表示删除成功,0表示删除失败
|
*/
|
Result deleteExamPaperSection(String[] elxamBatchIds);
|
|
/**
|
* 更新试卷部分信息
|
*
|
* @param noticeId
|
* 试卷部分id
|
* @return 1表示更新成功,0表示更新失败
|
*/
|
Result updateExamPaperSection(ExamPaperSectionInfo examPaperSectionInfo);
|
|
/**
|
* 试卷部分id 查询试卷部分
|
* @param examPaperSectionId
|
* @return
|
*/
|
ExamPaperSectionInfo queryExamPaperSectionDetail(String examPaperSectionId);
|
|
/**
|
* 保存试卷所选题库
|
* @param param
|
* @return
|
* @throws Exception
|
*/
|
@Deprecated
|
public Result saveExamPaperSectionGroup(String sectionId,String [] selectedGroupIds,Short [] itemTypes) throws Exception;
|
|
|
/**
|
* 保存试卷选题
|
* @param param
|
* @return
|
* @throws Exception
|
*/
|
public Result saveExamPaperSectionItems(String sectionId,String sourceGroupId,String [] selectedItemIds) throws Exception;
|
|
|
/**
|
* 删除部分的题目
|
* @param sectionId
|
* @param groupId
|
* @param exerciseItemIds
|
* @return
|
*/
|
Result deleteSectionItem(String sectionId, String groupId, String[] exerciseItemIds);
|
|
/**
|
* 部分保存题目分数信息
|
* @param exerciseGroup
|
* @return
|
*/
|
Result saveSectionItem(ExerciseGroup exerciseGroup);
|
|
|
BigDecimal updatePaperScore(String groupId);
|
|
}
|