fix: 使用@Autowired字段注入解决循环依赖

This commit is contained in:
Your Name 2026-01-20 00:21:22 +08:00
parent 907f88e486
commit 4163799b63
2 changed files with 6 additions and 2 deletions

View File

@ -40,8 +40,10 @@ public class TaskApprovalService {
private final PlatformMapper platformMapper;
private final NotificationService notificationService;
private final TeamScorePoolService teamScorePoolService;
@org.springframework.beans.factory.annotation.Autowired
@org.springframework.context.annotation.Lazy
private final TaskService taskService;
private TaskService taskService;
private final ConfigService configService;
private final ObjectMapper objectMapper;
private final DingTalkService dingTalkService;

View File

@ -64,8 +64,10 @@ public class TaskService {
private final com.designhub.mapper.DepartmentMapper departmentMapper;
private final com.designhub.util.WorkHoursCalculator workHoursCalculator;
private final com.designhub.mapper.DelayPenaltyRecordMapper delayPenaltyRecordMapper;
@org.springframework.beans.factory.annotation.Autowired
@org.springframework.context.annotation.Lazy
private final TaskApprovalService taskApprovalService;
private TaskApprovalService taskApprovalService;
/**
* 创建任务