|
|
|
@ -14,6 +14,7 @@ import com.ibeetl.jlw.dao.QuestionLogSummaryDao;
|
|
|
|
|
import com.ibeetl.jlw.entity.FileEntity;
|
|
|
|
|
import com.ibeetl.jlw.entity.QuestionLogSummary;
|
|
|
|
|
import com.ibeetl.jlw.entity.vo.QuestionLogSummaryAnalysisVO;
|
|
|
|
|
import com.ibeetl.jlw.entity.vo.QuestionLogSummaryHomeworkFileAnalysisVO;
|
|
|
|
|
import com.ibeetl.jlw.enums.QuestionBusinessTypeEnum;
|
|
|
|
|
import com.ibeetl.jlw.enums.ResourcesQuestionSnapshotFromTypeEnum;
|
|
|
|
|
import com.ibeetl.jlw.web.query.QuestionLogSummaryQuery;
|
|
|
|
@ -202,8 +203,8 @@ public class QuestionLogSummaryService extends CoreBaseService<QuestionLogSummar
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
if(null != is){
|
|
|
|
|
is.close();
|
|
|
|
|
}
|
|
|
|
|
is.close();
|
|
|
|
|
}
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
@ -218,21 +219,21 @@ public class QuestionLogSummaryService extends CoreBaseService<QuestionLogSummar
|
|
|
|
|
int colNum = firstRow.getPhysicalNumberOfCells();
|
|
|
|
|
|
|
|
|
|
String columns[] = {
|
|
|
|
|
"题目配置",
|
|
|
|
|
"题目配置名称",
|
|
|
|
|
"类型 枚举",
|
|
|
|
|
"来源类型 枚举",
|
|
|
|
|
"配置的题目总分数",
|
|
|
|
|
"人员",
|
|
|
|
|
"关联的做题日志IDs",
|
|
|
|
|
"配置的题目总数",
|
|
|
|
|
"学生做题总数",
|
|
|
|
|
"正确数量",
|
|
|
|
|
"错误数量",
|
|
|
|
|
"正确率,最大100",
|
|
|
|
|
"当前配置的及格比率",
|
|
|
|
|
"是否及格",
|
|
|
|
|
"状态",
|
|
|
|
|
"题目配置",
|
|
|
|
|
"题目配置名称",
|
|
|
|
|
"类型 枚举",
|
|
|
|
|
"来源类型 枚举",
|
|
|
|
|
"配置的题目总分数",
|
|
|
|
|
"人员",
|
|
|
|
|
"关联的做题日志IDs",
|
|
|
|
|
"配置的题目总数",
|
|
|
|
|
"学生做题总数",
|
|
|
|
|
"正确数量",
|
|
|
|
|
"错误数量",
|
|
|
|
|
"正确率,最大100",
|
|
|
|
|
"当前配置的及格比率",
|
|
|
|
|
"是否及格",
|
|
|
|
|
"状态",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Map<String,Integer> map = new HashMap<>();//获取需要的表头的列
|
|
|
|
@ -346,28 +347,28 @@ public class QuestionLogSummaryService extends CoreBaseService<QuestionLogSummar
|
|
|
|
|
continue;
|
|
|
|
|
}else
|
|
|
|
|
{
|
|
|
|
|
//TODO 保存
|
|
|
|
|
QuestionLogSummary questionLogSummary = new QuestionLogSummary();
|
|
|
|
|
questionLogSummary.setQuestionSettingId(Long.parseLong(questionSettingId));
|
|
|
|
|
questionLogSummary.setQuestionSettingName(questionSettingName);
|
|
|
|
|
questionLogSummary.setQuestionSettingType(EnumUtil.likeValueOf(ResourcesQuestionSnapshotFromTypeEnum.class, questionSettingType));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryFromType(EnumUtil.likeValueOf(QuestionBusinessTypeEnum.class, questionLogSummaryFromType));
|
|
|
|
|
questionLogSummary.setQuestionSettingTotalScore(NumberUtil.toBigDecimal(questionSettingTotalScore));
|
|
|
|
|
questionLogSummary.setPersonId(Long.parseLong(personId));
|
|
|
|
|
questionLogSummary.setQuestionLogIds(questionLogIds);
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryQuestionTotalCount(Integer.parseInt(questionLogSummaryQuestionTotalCount));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryStudentDoCount(Integer.parseInt(questionLogSummaryStudentDoCount));
|
|
|
|
|
questionLogSummary.setQuestionLogSummarySuccessCount(Integer.parseInt(questionLogSummarySuccessCount));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryErrorCount(Integer.parseInt(questionLogSummaryErrorCount));
|
|
|
|
|
questionLogSummary.setQuestionLogSummarySuccessRate(new BigDecimal(questionLogSummarySuccessRate));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryCurrentPassRate(new BigDecimal(questionLogSummaryCurrentPassRate));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryIsPass(Integer.parseInt(questionLogSummaryIsPass));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryStatus(Integer.parseInt(questionLogSummaryStatus));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryAddTime(new Date());
|
|
|
|
|
questionLogSummary.setOrgId(coreUser.getOrgId());
|
|
|
|
|
questionLogSummary.setUserId(coreUser.getId());
|
|
|
|
|
|
|
|
|
|
count++;
|
|
|
|
|
//TODO 保存
|
|
|
|
|
QuestionLogSummary questionLogSummary = new QuestionLogSummary();
|
|
|
|
|
questionLogSummary.setQuestionSettingId(Long.parseLong(questionSettingId));
|
|
|
|
|
questionLogSummary.setQuestionSettingName(questionSettingName);
|
|
|
|
|
questionLogSummary.setQuestionSettingType(EnumUtil.likeValueOf(ResourcesQuestionSnapshotFromTypeEnum.class, questionSettingType));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryFromType(EnumUtil.likeValueOf(QuestionBusinessTypeEnum.class, questionLogSummaryFromType));
|
|
|
|
|
questionLogSummary.setQuestionSettingTotalScore(NumberUtil.toBigDecimal(questionSettingTotalScore));
|
|
|
|
|
questionLogSummary.setPersonId(Long.parseLong(personId));
|
|
|
|
|
questionLogSummary.setQuestionLogIds(questionLogIds);
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryQuestionTotalCount(Integer.parseInt(questionLogSummaryQuestionTotalCount));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryStudentDoCount(Integer.parseInt(questionLogSummaryStudentDoCount));
|
|
|
|
|
questionLogSummary.setQuestionLogSummarySuccessCount(Integer.parseInt(questionLogSummarySuccessCount));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryErrorCount(Integer.parseInt(questionLogSummaryErrorCount));
|
|
|
|
|
questionLogSummary.setQuestionLogSummarySuccessRate(new BigDecimal(questionLogSummarySuccessRate));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryCurrentPassRate(new BigDecimal(questionLogSummaryCurrentPassRate));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryIsPass(Integer.parseInt(questionLogSummaryIsPass));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryStatus(Integer.parseInt(questionLogSummaryStatus));
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryAddTime(new Date());
|
|
|
|
|
questionLogSummary.setOrgId(coreUser.getOrgId());
|
|
|
|
|
questionLogSummary.setUserId(coreUser.getId());
|
|
|
|
|
|
|
|
|
|
count++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -400,4 +401,17 @@ public class QuestionLogSummaryService extends CoreBaseService<QuestionLogSummar
|
|
|
|
|
public PageQuery<QuestionLogSummaryAnalysisVO> analysisPageQuery(PageQuery query) {
|
|
|
|
|
return questionLogSummaryDao.analysisPageQuery(query);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能描述: <br>
|
|
|
|
|
* 附件作业的统计分析接口
|
|
|
|
|
*
|
|
|
|
|
* @param query
|
|
|
|
|
* @return {@link PageQuery< QuestionLogSummaryHomeworkFileAnalysisVO>}
|
|
|
|
|
* @Author: lx
|
|
|
|
|
* @Date: 2023/1/13 19:10
|
|
|
|
|
*/
|
|
|
|
|
public PageQuery<QuestionLogSummaryHomeworkFileAnalysisVO> homeworkFileAnalysisPageQuery(PageQuery query) {
|
|
|
|
|
return questionLogSummaryDao.homeworkFileAnalysisPageQuery(query);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|