|
@@ -8,6 +8,7 @@ import java.util.stream.Collectors;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
+import com.qmth.teachcloud.mark.bean.answercard.CardFile;
|
|
|
import com.qmth.teachcloud.mark.entity.*;
|
|
|
import com.qmth.teachcloud.mark.service.*;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
@@ -274,7 +275,7 @@ public class MarkGroupServiceImpl extends MppServiceImpl<MarkGroupMapper, MarkGr
|
|
|
markGroup.setCourseCode(markPaper.getCourseCode());
|
|
|
markGroup.setCourseName(markPaper.getCourseName());
|
|
|
markGroup.setNumber(markGroupDto.getGroupNumber());
|
|
|
- markGroup.setPicList(JSON.toJSONString(markGroupDto.getPictureConfigs()));
|
|
|
+ markGroup.setPicList(CardFile.getMarkConfigAdd(markGroupDto.getPictureConfigs(), 0.015));
|
|
|
Double totalScore = questions.stream().collect(Collectors.summingDouble(MarkQuestion::getTotalScore));
|
|
|
markGroup.setTotalScore(totalScore);
|
|
|
if (markGroupDto.getDoubleEnable()) {
|
|
@@ -367,7 +368,7 @@ public class MarkGroupServiceImpl extends MppServiceImpl<MarkGroupMapper, MarkGr
|
|
|
markGroup.setDoubleRate(markGroupDto.getDoubleRate());
|
|
|
markGroup.setScorePolicy(markGroupDto.getScorePolicy());
|
|
|
markGroup.setArbitrateThreshold(markGroupDto.getArbitrateThreshold());
|
|
|
- markGroup.setPicList(JSON.toJSONString(markGroupDto.getPictureConfigs()));
|
|
|
+ markGroup.setPicList(CardFile.getMarkConfigAdd(markGroupDto.getPictureConfigs(), 0.015));
|
|
|
this.updateByMultiId(markGroup);
|
|
|
|
|
|
// 结构分组号
|
|
@@ -394,7 +395,7 @@ public class MarkGroupServiceImpl extends MppServiceImpl<MarkGroupMapper, MarkGr
|
|
|
}
|
|
|
|
|
|
// 开启双评且双评比例值修改过,则删除任务
|
|
|
- if(markGroupDto.getDoubleEnable() && markGroup.getDoubleRate() != null && markGroupDto.getDoubleRate().doubleValue() != markGroup.getDoubleRate().doubleValue()){
|
|
|
+ if (markGroupDto.getDoubleEnable() && markGroup.getDoubleRate() != null && markGroupDto.getDoubleRate().doubleValue() != markGroup.getDoubleRate().doubleValue()) {
|
|
|
markSyncService.deleteMarkGroup(markGroup, false);
|
|
|
}
|
|
|
}
|