|
|
@@ -19,6 +19,7 @@ import cn.seecoder.web.service.tree.TreeNodeService;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.List;
|
|
|
@@ -27,16 +28,25 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
|
@Slf4j
|
|
|
public class CommitLinkServiceImpl implements CommitLinkService {
|
|
|
+ private final CommitMapper commitMapper;
|
|
|
+
|
|
|
+ private final TreeNodeService treeNodeService;
|
|
|
+
|
|
|
+ private final BugListService bugListService;
|
|
|
+
|
|
|
+ private final CommitService commitService;
|
|
|
+
|
|
|
+ private final UserMapper userMapper;
|
|
|
+
|
|
|
@Autowired
|
|
|
- private CommitMapper commitMapper;
|
|
|
- @Autowired
|
|
|
- private TreeNodeService treeNodeService;
|
|
|
- @Autowired
|
|
|
- private BugListService bugListService;
|
|
|
- @Autowired
|
|
|
- private CommitService commitService;
|
|
|
- @Autowired
|
|
|
- private UserMapper userMapper;
|
|
|
+ public CommitLinkServiceImpl(CommitMapper commitMapper, TreeNodeService treeNodeService,
|
|
|
+ BugListService bugListService, @Lazy CommitService commitService, UserMapper userMapper) {
|
|
|
+ this.commitMapper = commitMapper;
|
|
|
+ this.treeNodeService = treeNodeService;
|
|
|
+ this.bugListService = bugListService;
|
|
|
+ this.commitService = commitService;
|
|
|
+ this.userMapper = userMapper;
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
public void linkCommitByInfoFromGitlab(GitWebHookVO gitWebHookVO) {
|