Jelajahi Sumber

算法库-gitverison字段添加

zhaoyan 3 tahun lalu
induk
melakukan
62ff3baef2

+ 3 - 0
api-common/src/main/java/api/common/pojo/po/algorithm/AlgorithmPO.java

@@ -34,6 +34,9 @@ public class AlgorithmPO extends BasePo {
     //代码仓库访问密码
     private String gitPassword;
 
+    //代码仓库访问密码
+    private String gitVersion;
+
     //算法文件名称
     private String fileName;
 

+ 3 - 1
simulation-resource-server/src/main/java/com/css/simulation/resource/algorithm/serviceImpl/AlgorithmServiceImpl.java

@@ -189,7 +189,9 @@ public class AlgorithmServiceImpl implements AlgorithmService {
 
     @Override
     public ResponseBodyVO getGitVersion(AlgorithmParameter param) throws IOException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException {
-        String gitUrl = param.getGitUrl();
+
+        AlgorithmPO po = algorithmMapper.selectDetailsById(param);
+        String gitUrl = po.getGitUrl();
         if(StringUtil.isEmpty(gitUrl)){
             return new ResponseBodyVO(ResponseBodyVO.Response.CLIENT_FAILURE);
         }