|
|
|
@ -27,6 +27,7 @@ import com.ibeetl.jlw.enums.QuestionLogAddTypeEnum;
|
|
|
|
|
import com.ibeetl.jlw.enums.ResourcesQuestionSnapshotFromTypeEnum;
|
|
|
|
|
import com.ibeetl.jlw.web.query.GeneralQuestionLogQuery;
|
|
|
|
|
import com.ibeetl.jlw.web.query.GeneralQuestionSettingQuery;
|
|
|
|
|
import com.ibeetl.jlw.web.query.QuestionLogSummaryQuery;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.apache.poi.hssf.usermodel.*;
|
|
|
|
|
import org.apache.poi.ss.usermodel.*;
|
|
|
|
@ -885,8 +886,20 @@ public class GeneralQuestionLogService extends CoreBaseService<GeneralQuestionLo
|
|
|
|
|
questionLogSummary.setFinishTime(DateUtil.secondToTime(finishTime.intValue()));
|
|
|
|
|
questionLogSummary.setFinishSecondTime(finishTime);
|
|
|
|
|
}
|
|
|
|
|
questionLogSummaryService.logicDeleteByQuestionSettingIds(questionSettingId.toString());
|
|
|
|
|
questionLogSummaryService.insert(questionLogSummary);
|
|
|
|
|
|
|
|
|
|
QuestionLogSummaryQuery summaryQuery = new QuestionLogSummaryQuery();
|
|
|
|
|
summaryQuery.setQuestionLogSummaryStatus(1);
|
|
|
|
|
summaryQuery.setPersonId(student.getStudentId());
|
|
|
|
|
summaryQuery.setQuestionSettingId(questionSettingId);
|
|
|
|
|
summaryQuery.setQuestionLogSummaryFromType(fromType);
|
|
|
|
|
QuestionLogSummary logSummary = questionLogSummaryService.getInfo(summaryQuery);
|
|
|
|
|
|
|
|
|
|
if (logSummary != null) {
|
|
|
|
|
questionLogSummary.setQuestionLogSummaryId(logSummary.getQuestionLogSummaryId());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 更新或插入统计数据
|
|
|
|
|
questionLogSummaryService.upsertByTemplate(questionLogSummary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|