|
@@ -493,6 +493,10 @@ public class QuestionService {
|
493
|
493
|
Integer createid = question.getCreateid();
|
494
|
494
|
int timestamp = N_Utils.getSecondTimestamp();
|
495
|
495
|
TQuestion q = questionMapper.getQuestionAndDirectorPointById(shareqid);
|
|
496
|
+ List<TQuestion> list = new ArrayList<>();
|
|
497
|
+ if (q.getQlevel().equals(2)) {
|
|
498
|
+ list = questionMapper.listSonQuestionsForShare(shareqid);
|
|
499
|
+ }
|
496
|
500
|
List<TQuestionPoint> questionPoints = q.getQuestionPoints();
|
497
|
501
|
List<TQuestionDirector> questionDirectors = q.getDirectors();
|
498
|
502
|
List<Integer> schoolids = q.getSchools().stream().map(s -> (Integer) s.get("schoolid")).collect(Collectors.toList());
|
|
@@ -518,6 +522,19 @@ public class QuestionService {
|
518
|
522
|
tq.setSchoolid(schoolid);
|
519
|
523
|
tq.setShareqid(shareqid);
|
520
|
524
|
questions.add(tq);
|
|
525
|
+ for (TQuestion s : list) {
|
|
526
|
+ TQuestion sq = new TQuestion();
|
|
527
|
+ BeanUtils.copyProperties(s, sq);
|
|
528
|
+ sq.setQuestionid(StudyUtil.getId());
|
|
529
|
+ sq.setQuestionpid(questionid);
|
|
530
|
+ sq.setCount(0);
|
|
531
|
+ sq.setCreateid(createid);
|
|
532
|
+ sq.setCreatetime(timestamp);
|
|
533
|
+ sq.setBelong(10);
|
|
534
|
+ sq.setSchoolid(schoolid);
|
|
535
|
+ sq.setShareqid(shareqid);
|
|
536
|
+ questions.add(sq);
|
|
537
|
+ }
|
521
|
538
|
|
522
|
539
|
//试题关联知识点
|
523
|
540
|
for (TQuestionPoint p : questionPoints) {
|