Pārlūkot izejas kodu

车辆配置分享

root 2 gadi atpakaļ
vecāks
revīzija
2953440da7

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

@@ -308,7 +308,7 @@ public class AlgorithmServiceImpl implements AlgorithmService {
         } else {
             Map<String,String> map =new HashMap<>();
             String algorithmId = param.getId();
-            List<RunningProjectVO> runningParentProjectVos = algorithmMapper.selectRunningProjectParent(algorithmId);
+            List<RunningProjectVO> runningParentProjectVos = algorithmMapper.selectAutoProjectIdByAlgorithmId(algorithmId);
             if (runningParentProjectVos != null && runningParentProjectVos.size() > 0) {
                 StringBuilder stringBuilder = new StringBuilder();
                 for (RunningProjectVO voParent : runningParentProjectVos) {

+ 1 - 1
simulation-resource-server/src/main/resources/mapper/algorithm/AlgorithmMapper.xml

@@ -109,7 +109,7 @@
         select id, project_id
         from simulation_automatic_project
         where is_deleted = '0'
-          and algorithm = #{id,jdbcType=VARCHAR}
+          and algorithm = #{algorithmId}
     </select>
 
     <!--查询算法名称是否已存在-当前用户-->