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);
|
|
}
|