fix:project添加lyric包扫描

This commit is contained in:
2025-12-19 14:42:00 +08:00
parent e91ed2a236
commit 4495b6eb1e
4 changed files with 16 additions and 3 deletions

View File

@@ -87,6 +87,19 @@
<version>4.4.0</version>
</dependency>
<!--外部系统交互-->
<dependency>
<groupId>com.sdm</groupId>
<artifactId>outbridge</artifactId>
<version>0.0.1-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>

View File

@@ -6,7 +6,7 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication(scanBasePackages = {"com.sdm.project", "com.sdm.common"})
@SpringBootApplication(scanBasePackages = {"com.sdm.project", "com.sdm.common", "com.sdm.outbridge"})
@EnableDiscoveryClient
@EnableScheduling
@EnableFeignClients(basePackages = "com.sdm.common.feign")

View File

@@ -2,7 +2,7 @@ package com.sdm.project.controller;
import com.alibaba.excel.util.StringUtils;
import com.sdm.common.common.SdmResponse;
import com.sdm.common.service.lyric.LyricIntegrateService;
import com.sdm.outbridge.service.lyric.LyricIntegrateService;
import com.sdm.project.common.ApprovalStatusEnum;
import com.sdm.project.model.entity.SimulationNode;
import com.sdm.project.service.ISimulationLyricNodeService;

View File

@@ -706,7 +706,7 @@ public class TaskServiceImpl implements ITaskService {
taskCountResp.setClosed((int) taskList.stream().filter(i -> TaskExeStatusEnum.CLOSED.getCode().equals(i.getExeStatus())).count());
taskCountResp.setPaused((int) taskList.stream().filter(i -> TaskExeStatusEnum.PAUSED.getCode().equals(i.getExeStatus())).count());
taskCountResp.setRejected((int) taskList.stream().filter(i -> TaskExeStatusEnum.REJECTED.getCode().equals(i.getExeStatus())).count());
taskCountResp.setTodayTmrTasks((int) taskList.stream().filter(todayTmrTaskList::contains).count());
taskCountResp.setTodayTmrTasks(todayTmrTaskList.size());
}