xiatian 2 tahun lalu
induk
melakukan
19ddde9eea

+ 3 - 0
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/impl/RandomPaperServiceImpl.java

@@ -431,6 +431,7 @@ public class RandomPaperServiceImpl implements RandomPaperService {
 	private void setQuestionInfoByExactItem(StructQuestionCheckDto cd) {
 		StructQuestionCountInfo si = cd.getSi();
 		RandomPaperQuestionDto rq = new RandomPaperQuestionDto();
+		rq.setUnitScore(cd.getUnitScore());
 		rq.setDetailNumber(cd.getDetailNumber());
 		rq.setKey(cd.getIndex() + "-" + cd.getPub() + "-" + cd.getDifficulty());
 		si.getQuestionInfo().add(rq);
@@ -508,6 +509,7 @@ public class RandomPaperServiceImpl implements RandomPaperService {
 	private void setQuestionInfoByBlueProp(StructQuestionCheckDto cd) {
 		StructQuestionCountInfo si = cd.getSi();
 		RandomPaperQuestionDto rq = new RandomPaperQuestionDto();
+		rq.setUnitScore(cd.getUnitScore());
 		rq.setDetailNumber(cd.getDetailNumber());
 		rq.setKey(bulidPropertyGroupByBlueStruct(cd.getCp().getPropertyParentId(), cd.getCp().getPropertyId(),
 				cd.getPub(), cd.getDifficulty()));
@@ -788,6 +790,7 @@ public class RandomPaperServiceImpl implements RandomPaperService {
 		CreateDefaultPaperParam param = new CreateDefaultPaperParam();
 		param.setFullyObjective(true);
 		param.setRp(rp);
+		param.setPlayTime(playTime);
 		DefaultPaper paper = new DefaultPaper();
 		paper.setName(rp.getName());
 		List<DefaultQuestionGroup> details = new ArrayList<>();