|
|
|
@@ -4,8 +4,6 @@ import com.ruoyi.common.security.utils.SecurityUtils; |
|
|
|
import com.ruoyi.platform.domain.*; |
|
|
|
import com.ruoyi.platform.mapper.*; |
|
|
|
import com.ruoyi.platform.service.*; |
|
|
|
import com.ruoyi.platform.utils.JacksonUtil; |
|
|
|
import com.ruoyi.platform.utils.JsonUtils; |
|
|
|
import com.ruoyi.platform.utils.NewHttpUtils; |
|
|
|
import com.ruoyi.platform.vo.ModelsVo; |
|
|
|
import com.ruoyi.platform.vo.NewDatasetVo; |
|
|
|
@@ -15,7 +13,6 @@ import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.data.domain.Page; |
|
|
|
import org.springframework.data.domain.PageRequest; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import redis.clients.jedis.Jedis; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.util.HashMap; |
|
|
|
@@ -38,20 +35,13 @@ public class WorkspaceServiceImpl implements WorkspaceService { |
|
|
|
@Resource |
|
|
|
private ComponentDao componentDao; |
|
|
|
@Resource |
|
|
|
private GitService gitService; |
|
|
|
private CodeConfigDao codeConfigDao; |
|
|
|
@Resource |
|
|
|
private NewDatasetService newDatasetService; |
|
|
|
@Resource |
|
|
|
private ModelsService modelsService; |
|
|
|
@Resource |
|
|
|
private NewHttpUtils httpUtils; |
|
|
|
|
|
|
|
@Value("${git.endpoint}") |
|
|
|
String gitendpoint; |
|
|
|
@Value("${spring.redis.host}") |
|
|
|
private String redisHost; |
|
|
|
@Value("${spring.redis.port}") |
|
|
|
private Integer redisPort; |
|
|
|
private ServiceDao serviceDao; |
|
|
|
|
|
|
|
@Override |
|
|
|
public Map<String, Object> getOverview() { |
|
|
|
@@ -126,7 +116,15 @@ public class WorkspaceServiceImpl implements WorkspaceService { |
|
|
|
Workflow workflow = new Workflow(); |
|
|
|
Integer workflowCount = (int) this.workflowDao.count(workflow); |
|
|
|
assetCountMap.put("workflow", workflowCount); |
|
|
|
|
|
|
|
// 统计代码配置数量 |
|
|
|
CodeConfig codeConfig = new CodeConfig(); |
|
|
|
codeConfig.setIsPublic(isPublic); |
|
|
|
Integer codeConfigCount = (int) this.codeConfigDao.count(codeConfig); |
|
|
|
assetCountMap.put("codeConfig", codeConfigCount); |
|
|
|
// 统计服务数量 |
|
|
|
com.ruoyi.platform.domain.Service service = new com.ruoyi.platform.domain.Service(); |
|
|
|
Integer serviceCount = (int) serviceDao.countService(service); |
|
|
|
assetCountMap.put("service", serviceCount); |
|
|
|
return assetCountMap; |
|
|
|
} |
|
|
|
} |