|
@@ -202,9 +202,7 @@ public class PaperService {
|
202
|
202
|
qtype.setPstnum(scanlst.size());
|
203
|
203
|
Double qtypescore = scanlst.stream().collect(Collectors.summingDouble(TPaperScantron::getPsscore));
|
204
|
204
|
qtype.setPstscore(qtypescore);
|
205
|
|
- qtype.setPstorder(qtypeorder);
|
206
|
205
|
qtype.setPaperid(paper.getPaperid());
|
207
|
|
- qtypeorder++;
|
208
|
206
|
}
|
209
|
207
|
|
210
|
208
|
paperScantronQtypeMapper.insertList(qtypes);//批量保存答题卡题型
|
|
@@ -215,9 +213,7 @@ public class PaperService {
|
215
|
213
|
sc.setSchoolid(paper.getSchoolid());
|
216
|
214
|
sc.setPaperid(paper.getPaperid());
|
217
|
215
|
sc.setPsqtypeid(qtype.getId());
|
218
|
|
- sc.setPsorder(sorder);
|
219
|
216
|
savescan.add(sc);
|
220
|
|
- sorder++;
|
221
|
217
|
}
|
222
|
218
|
}
|
223
|
219
|
paperScantronMapper.insertList(savescan);//批量保存答题卡
|