Browse Source

下载算法平台文件

LingxinMeng 1 year ago
parent
commit
51b0806ccb

+ 2 - 1
simulation-resource-scheduler/src/main/java/com/css/simulation/resource/scheduler/domain/service/ProjectDomainService.java

@@ -876,7 +876,8 @@ public class ProjectDomainService {
     @Async("pool1")
     @Async("pool1")
     @SneakyThrows
     @SneakyThrows
     public void selectProjectReportById(String projectType, String projectId) {
     public void selectProjectReportById(String projectType, String projectId) {
-        String tokenUrl = customConfiguration.getTokenUri() + "?grant_type=client_credentials" + "&client_id=" + customConfiguration.getClientId() + "&client_secret=" + customConfiguration.getClientSecret();
+//        String tokenUrl = customConfiguration.getTokenUri() + "?grant_type=client_credentials" + "&client_id=" + customConfiguration.getClientId() + "&client_secret=" + customConfiguration.getClientSecret();
+        String tokenUrl = "http://cloudsimulation.china-icv.cn/simulation/oauth/client/sign/username?username=sysadmin&password=123456";
         log.debug("获取仿真云平台 token:" + tokenUrl);
         log.debug("获取仿真云平台 token:" + tokenUrl);
         String response = HttpUtil.get(tokenUrl);
         String response = HttpUtil.get(tokenUrl);
         ObjectMapper objectMapper = new ObjectMapper();
         ObjectMapper objectMapper = new ObjectMapper();

+ 1 - 1
simulation-resource-scheduler/src/main/resources/mysql/mapper/AlgorithmExpandMapper.xml

@@ -20,6 +20,6 @@
     <select id="selectDockerImageByAlgorithmId" resultType="java.lang.String">
     <select id="selectDockerImageByAlgorithmId" resultType="java.lang.String">
         select docker_image
         select docker_image
         from algorithm_expand
         from algorithm_expand
-        where id = #{id}
+        where algorithm_id = #{algorithmId}
     </select>
     </select>
 </mapper>
 </mapper>