|
@@ -397,6 +397,7 @@ public class MsPaperCheckTeacherTaskService {
|
397
|
397
|
String checkscore;
|
398
|
398
|
//仲裁状态0默认1待仲裁2已仲裁
|
399
|
399
|
Integer arbitratestate = null;
|
|
400
|
+ param.setCorrecttype(correcttype);
|
400
|
401
|
MsCheckVo result = msPaperCheckTeacherTaskMapper.getCheckResult(param);
|
401
|
402
|
Integer mpsid = result.getMpsid();
|
402
|
403
|
String stumerge = param.getStumerge();
|
|
@@ -410,7 +411,10 @@ public class MsPaperCheckTeacherTaskService {
|
410
|
411
|
MsPaperStudentBlock block = new MsPaperStudentBlock();
|
411
|
412
|
block.setMpsbid(mpsbid);
|
412
|
413
|
block.setChecked(checked);
|
|
414
|
+ block.setFirstcid(handleid);
|
413
|
415
|
block.setFirstcime(N_Utils.getSecondTimestamp());
|
|
416
|
+ String stuscores = questions.stream().map(MsPaperBlockQuestion::getMergestuscore).collect(Collectors.joining(";"));
|
|
417
|
+ block.setFirstccores(stuscores);
|
414
|
418
|
block.setFirstccore(arbitratescore);
|
415
|
419
|
block.setHasgood(hasgood);
|
416
|
420
|
block.setHasbad(hasbad);
|
|
@@ -435,21 +439,11 @@ public class MsPaperCheckTeacherTaskService {
|
435
|
439
|
} else {
|
436
|
440
|
String[] mptqids = question.getMergeqid().split(",");
|
437
|
441
|
String[] mergestuscore = question.getMergestuscore().split(",");
|
438
|
|
- double[] scores = new double[mergestuscore.length];
|
439
|
|
- int last = mergestuscore.length - 1;
|
440
|
|
- double score = 0;
|
441
|
|
- for (int i = 0; i < mergestuscore.length; i++) {
|
442
|
|
- scores[i] = MarkingUtil.mul(MarkingUtil.div(mergestuscore[i], qscore), stuscore);
|
443
|
|
- score = MarkingUtil.add(score, scores[i]);
|
444
|
|
- if (i == last) {
|
445
|
|
- scores[i] = MarkingUtil.sub(stuscore, score);
|
446
|
|
- }
|
447
|
|
- }
|
448
|
442
|
for (int i = 0; i < mptqids.length; i++) {
|
449
|
443
|
MsPaperStudentQuestion studentQuestion = new MsPaperStudentQuestion();
|
450
|
444
|
studentQuestion.setMptqid(N_Utils.obj2Int(mptqids[i]));
|
451
|
|
- studentQuestion.setFirstccore(scores[i]);
|
452
|
|
- studentQuestion.setStuscore(scores[i]);
|
|
445
|
+ studentQuestion.setFirstccore(MarkingUtil.objToDouble(mergestuscore[i]));
|
|
446
|
+ studentQuestion.setStuscore(MarkingUtil.objToDouble(mergestuscore[i]));
|
453
|
447
|
studentQuestions.add(studentQuestion);
|
454
|
448
|
}
|
455
|
449
|
}
|
|
@@ -460,6 +454,7 @@ public class MsPaperCheckTeacherTaskService {
|
460
|
454
|
MsPaperStudentQuestion question = new MsPaperStudentQuestion();
|
461
|
455
|
question.setMpsqid(mpsbid);
|
462
|
456
|
question.setChecked(checked);
|
|
457
|
+ question.setFirstcid(handleid);
|
463
|
458
|
question.setFirstcime(N_Utils.getSecondTimestamp());
|
464
|
459
|
question.setFirstccore(arbitratescore);
|
465
|
460
|
question.setHasgood(hasgood);
|
|
@@ -514,11 +509,13 @@ public class MsPaperCheckTeacherTaskService {
|
514
|
509
|
String stuscores = questions.stream().map(MsPaperBlockQuestion::getMergescore).collect(Collectors.joining(";"));
|
515
|
510
|
String[] cores;
|
516
|
511
|
if (type.equals(1)) {
|
|
512
|
+ block.setFirstcid(handleid);
|
517
|
513
|
block.setFirstcime(N_Utils.getSecondTimestamp());
|
518
|
514
|
block.setFirstccore(arbitratescore);
|
519
|
515
|
block.setFirstccores(stuscores);
|
520
|
516
|
cores = param.getSecondcscores().split(";");
|
521
|
517
|
} else {
|
|
518
|
+ block.setSecondcid(handleid);
|
522
|
519
|
block.setSecondctime(N_Utils.getSecondTimestamp());
|
523
|
520
|
block.setSecondcscore(arbitratescore);
|
524
|
521
|
block.setSecondcscores(stuscores);
|
|
@@ -617,9 +614,11 @@ public class MsPaperCheckTeacherTaskService {
|
617
|
614
|
question.setChecked(checked);
|
618
|
615
|
checkscore = arbitratescore.toString();
|
619
|
616
|
if (type.equals(1)) {
|
|
617
|
+ question.setFirstcid(handleid);
|
620
|
618
|
question.setFirstcime(N_Utils.getSecondTimestamp());
|
621
|
619
|
question.setFirstccore(arbitratescore);
|
622
|
620
|
} else {
|
|
621
|
+ question.setSecondcid(handleid);
|
623
|
622
|
question.setSecondctime(N_Utils.getSecondTimestamp());
|
624
|
623
|
question.setSecondcscore(arbitratescore);
|
625
|
624
|
}
|