|
@@ -25,6 +25,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import cn.com.qmth.stmms.admin.thread.MarkGroupDeleteThread;
|
|
|
import cn.com.qmth.stmms.api.dto.GroupDTO;
|
|
|
+import cn.com.qmth.stmms.api.dto.GroupQuestionDTO;
|
|
|
import cn.com.qmth.stmms.api.dto.PaperDTO;
|
|
|
import cn.com.qmth.stmms.api.dto.PaperStructureDTO;
|
|
|
import cn.com.qmth.stmms.api.dto.QuestionDTO;
|
|
@@ -728,7 +729,7 @@ public class CoreController extends BaseApiController {
|
|
|
for (GroupDTO g : dto.getGroups()) {
|
|
|
List<ExamQuestion> questionGroup = new ArrayList<ExamQuestion>();
|
|
|
BigDecimal totalScore = BigDecimal.ZERO;
|
|
|
- for (QuestionDTO q : g.getQuestions()) {
|
|
|
+ for (GroupQuestionDTO q : g.getQuestions()) {
|
|
|
ExamQuestion old = questionService.findByExamAndSubjectAndObjectiveAndMainNumberAndSubNumber(
|
|
|
dto.getExamId(), dto.getSubjectCode(), false, q.getMainNumber(), q.getSubNumber());
|
|
|
if (old == null) {
|
|
@@ -740,7 +741,8 @@ public class CoreController extends BaseApiController {
|
|
|
}
|
|
|
MarkGroup group = new MarkGroup(dto.getExamId(), dto.getSubjectCode(), g.getNumber(), g.getPicConfig(),
|
|
|
totalScore.doubleValue(), g.getDoubleRate(), g.getArbitrateThreshold(), g.getScorePolicy(),
|
|
|
- g.getMarkMode(), dto.getTrialCount(), false, g.getEnableAllZero(), null, false);
|
|
|
+ g.getMarkMode(), dto.getTrialCount(), false, g.getEnableAllZero() == null ? false
|
|
|
+ : g.getEnableAllZero(), null, false);
|
|
|
if (!questionGroup.isEmpty()) {
|
|
|
questionService.save(questionGroup);
|
|
|
groupService.save(group);
|