package com.qxueyou.scc.exercise.service;
|
|
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.exercise.model.ExciseExtendReqData;
|
import com.qxueyou.scc.exercise.model.ExerGroupResponseData;
|
import com.qxueyou.scc.exercise.model.ExerItemResponseData;
|
import com.qxueyou.scc.exercise.model.ExerciseFaultRecord;
|
import com.qxueyou.scc.exercise.model.ExerciseFavoriteRecord;
|
import com.qxueyou.scc.exercise.model.ExerciseSubmitAnswerData;
|
import com.qxueyou.scc.exercise.model.ExerciseSubmitAnswerDataList;
|
|
|
/**
|
* 练习扩展service
|
* @author zhiyong
|
*
|
*/
|
public interface IExerciseExtendService {
|
|
/**
|
* 计算错题统计信息
|
* @param type
|
* @return
|
*/
|
Result doCalcExerFaultStatisticsByDay();
|
|
/**
|
* 查询错题统计信息
|
* @param type
|
* @return
|
*/
|
List<Map<String,Object>> doGetFaultStatisInfo(String type);
|
|
/**
|
* 查询错题本列表数据
|
* @param exerType
|
* @param subjectId
|
* @param pager
|
* @return
|
*/
|
List<ExerGroupResponseData> queryExerciseFaultListData(int exerType,
|
String subjectId,Pager pager);
|
|
|
/**
|
* 查询收藏本列表数据
|
* @param exerType
|
* @param subjectId
|
* @param pager
|
* @return
|
*/
|
List<ExerGroupResponseData> queryExerciseFavorListData(int exerType,
|
String subjectId,Pager pager);
|
|
/**
|
* 获取收藏练习数据
|
* @param groupId
|
* @return
|
*/
|
ExerItemResponseData queryExerciseFavorData(String groupId);
|
|
/**
|
* 获取收藏练习数据
|
* @param groupId
|
* @return
|
*/
|
Map<String,Object> queryExerciseMutiFavorData(String groupId);
|
|
/**
|
* 获取收藏练习答案数据
|
* @param groupId
|
* @return
|
*/
|
ExerItemResponseData queryExerciseFavorAnswerData(String groupId);
|
|
|
/**
|
* 获取错题练习数据
|
* @param groupId
|
* @return
|
*/
|
ExerItemResponseData queryExerciseFaultData(String groupId);
|
|
/**
|
* 获取多套题错题练习数据
|
* @param groupId
|
* @return
|
*/
|
Map<String,Object> queryExerciseMutiFaultData(String groupId);
|
|
/**
|
* 获取错题练习组答案
|
* @param groupId
|
* @return
|
*/
|
ExerItemResponseData queryExerciseFaultAnswerData(String groupId);
|
|
/**
|
* 获取全部错题练习数据
|
* @return
|
*/
|
ExerItemResponseData queryAllExerciseFaultData(Pager pager);
|
|
|
/**
|
* 获取全部收藏练习数据
|
* @return
|
*/
|
ExerItemResponseData queryAllExerciseFavorData(Pager pager);
|
|
/**
|
* 操作错题Book记录
|
* @return
|
*/
|
Map<String,Object> doOperExerciseFaultRecordData(String subjectId, ExciseExtendReqData recordResult);
|
|
/**
|
* 操作收藏Book记录
|
* @return
|
*/
|
Map<String,Object> doOperExerciseFavorRecordData(String subjectId, ExciseExtendReqData recordResult);
|
|
/**
|
*提交单套题答案结果到db
|
* @return
|
*/
|
Result doSubmitExerciseAnswerData(ExerciseSubmitAnswerData answerResult);
|
|
/**
|
*提交多套题答案结果到db
|
* @return
|
*/
|
Map<String,Object> doSubmitMutiExerciseAnswerData(ExerciseSubmitAnswerDataList answerDataList);
|
|
/**
|
*提交错题结果到db
|
* @return
|
*/
|
Map<String,Object> doSubmitExerFaultAnswerDataNew(ExerciseSubmitAnswerData answerResult);
|
|
|
/**
|
*提交收藏 结果到db
|
* @return
|
*/
|
Map<String,Object> doSubmitExerFavorAnswerDataNew(ExerciseSubmitAnswerData answerResult);
|
|
/**
|
* 更新错题book信息 by提交全部错题答案
|
* @param currTitleNum
|
* @param status
|
* @return
|
*/
|
Result doOperFaultBookBySubmitAllAnswer(String currTitleNum, String status, String faultBookId, String exerciseType);
|
|
/**
|
* 更新收藏book信息 by提交全部收藏答案
|
* @param currTitleNum
|
* @param status
|
* @return
|
*/
|
Result doOperFavorBookBySubmitAllAnswer(String currTitleNum, String status,String favoriteBookId, String exerciseType);
|
|
|
/**
|
* 操作本次做题记录 错题
|
* @return
|
*/
|
Map<String,Object> doUpdateFaultExerRecordNew(String groupId);
|
|
/**
|
* 操作本次做题记录 全部错题
|
* @return
|
*/
|
Result doUpdateExerciseFaultBook(String currTitleNum);
|
|
/**
|
* 操作本次做题记录 全部收藏
|
* @return
|
*/
|
Result doUpdateExerciseFavorBook(String currTitleNum);
|
|
/**
|
* 操作本次做题记录 错题
|
* @return
|
*/
|
Result doUpdateExerciseFaultRecord(ExerciseFaultRecord record);
|
|
/**
|
* 操作本次做题记录 收藏
|
* @return
|
*/
|
Result doUpdateExerciseFavorRecord(ExerciseFavoriteRecord record );
|
|
/**
|
* 操作本次做题记录 收藏
|
* @return
|
*/
|
Map<String,Object> doUpdateFavortExerRecordNew(String groupId);
|
|
/**
|
*
|
* 保存app端请求保存的数据
|
* @return
|
*/
|
String doSaveExerciseDataSubmitLog(String data, String exerBussinessId, short type, int status, String url);
|
|
/**
|
*
|
* 保存app端请求保存的数据
|
* @return
|
*/
|
Result doUpdateExerciseDataSubmitLog(String exerciseDataLogId, String exerBussinessId);
|
|
/**
|
* 查询题目统计分析结果 个人统计 全站统计
|
* @param groupId
|
* @return
|
*/
|
List<Map<String,Object>> queryExerciseItemStatisics(String groupId);
|
|
|
/**
|
* 获取个人用户组对应的错题题目更新时间
|
* @param subjectId
|
* @param args
|
* @return
|
*/
|
Map<String, Map<String, Object>> queryFaultRecordByGroup(String subjectId, Object[] args);
|
|
/**
|
* 获取个人用户组对应的收藏题目更新时间
|
* @param subjectId
|
* @param args
|
* @return
|
*/
|
Map<String, Map<String, Object>> queryFavorRecordByGroup(String subjectId, Object[] args);
|
|
/**
|
* 查询错题做题信息
|
* @return
|
*/
|
Map<String, Object> queryExerFaultInfo();
|
/**
|
* 查询收藏做题信息
|
* @return
|
*/
|
Map<String, Object> queryExerFavorInfo();
|
|
/** -----------------------APP----V2.0--end---------------------------------------- */
|
|
Result doInitFaultStatisData();
|
/*Result doInitFaultRecord();
|
Result doInitFavorRecord();
|
Result doInitFaultItem();
|
Result doInitExerRecentRecord();
|
Result doInitFavorItem();
|
|
Result doSavetoDB(Object obj);*/
|
}
|