Browse Source

fix: 创建任务中算法模型列表去除已删除模型

Eagle 3 weeks ago
parent
commit
3a78fb88ae

+ 1 - 1
taais-modules/taais-biz/src/main/resources/mapper/ag/AlgorithmModelMapper.xml

@@ -11,7 +11,7 @@
         (select ac.algorithm_name from algorithm_config ac where ac.id = #{algorithmId} limit 1)
     </select>
     <select id="getModelByAlgorithmId" resultType="com.taais.biz.domain.vo.AlgorithmModelVo">
-        select * from algorithm_model am where am.algorithm_id = #{algorithmId}
+        select * from algorithm_model am where am.algorithm_id = #{algorithmId} and am.del_flag = 0
     </select>
     <select id="getModelById" resultType="com.taais.biz.domain.vo.AlgorithmModelVo">
         select * from algorithm_model am where am.id = #{id}