处理循环依赖

beetlsql3-dev
Mlxa0324 2 years ago
parent 9c23b7f796
commit b82a9d3fe5

@ -18,6 +18,7 @@ import com.ibeetl.jlw.web.query.*;
import org.beetl.sql.core.SqlId;
import org.beetl.sql.core.engine.PageQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -47,7 +48,7 @@ public class CompetitionService extends CoreBaseService<Competition>{
@Autowired private CompetitionTaskSecondQuestionDao competitionTaskSecondQuestionDao;
@Autowired private CompetitionTaskSecondQuestionStepService competitionTaskSecondQuestionStepService;
@Autowired private CompetitionTaskSecondQuestionStepDao competitionTaskSecondQuestionStepDao;
@Lazy
@Autowired private StudentService studentService;
@Autowired private CompetitionTeacherEvaluationService competitionTeacherEvaluationService;

@ -16,6 +16,7 @@ import com.ibeetl.jlw.web.query.*;
import org.beetl.sql.core.SqlId;
import org.beetl.sql.core.engine.PageQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -38,7 +39,7 @@ public class ExamService extends CoreBaseService<Exam>{
@Autowired private ResourcesQuestionService resourcesQuestionService;
@Autowired private ExamTaskOneQuestionService examTaskOneQuestionService;
@Autowired private ExamTaskOneQuestionDao examTaskOneQuestionDao;
@Lazy
@Autowired private StudentService studentService;
@Autowired private ResourcesCompetitionService resourcesCompetitionService;

@ -37,6 +37,7 @@ import org.jsoup.nodes.Attributes;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
@ -76,7 +77,7 @@ public class TeacherService extends CoreBaseService<Teacher> {
@Autowired private UniversitiesCollegesDao universitiesCollegesDao;
@Autowired private StudentService studentService;
@Lazy
@Autowired private TeacherService teacherService;
@Autowired private CompetitionTeacherEvaluationService competitionTeacherEvaluationService;

Loading…
Cancel
Save