Browse Source

解决算法io界面无法按算法子类型查询的bug

twzydn20000928 1 year ago
parent
commit
3e59d6e61d

+ 5 - 5
pdaaphm-admin/src/main/resources/mapper/conf/AlgorithmIoFieldMapper.xml

@@ -26,11 +26,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="selectAlgorithmIoFieldList" parameterType="AlgorithmIoField" resultMap="AlgorithmIoFieldResult">
         <include refid="selectAlgorithmIoFieldVo"/>
         <where>
-            <if test="algorithmSubId != null "> and algorithm_sub_id = #{algorithmSubId}</if>
-            <if test="type != null  and type != ''"> and `type` = #{type}</if>
-            <if test="name != null  and name != ''"> and `name` like concat('%', #{name}, '%')</if>
-            <if test="index != null "> and `index` = #{index}</if>
-            <if test="matlabIoPath != null  and matlabIoPath != ''"> and matlab_io_path = #{matlabIoPath}</if>
+            <if test="algorithmSubId != null "> and io.algorithm_sub_id = #{algorithmSubId}</if>
+            <if test="type != null  and type != ''"> and io.`type` = #{type}</if>
+            <if test="name != null  and name != ''"> and io.`name` like concat('%', #{name}, '%')</if>
+            <if test="index != null "> and io.`index` = #{index}</if>
+            <if test="matlabIoPath != null  and matlabIoPath != ''"> and io.matlab_io_path = #{matlabIoPath}</if>
         </where>
     </select>
 

+ 1 - 1
pdaaphm-ui/src/views/conf/field/index.vue

@@ -3,7 +3,7 @@
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
       <el-form-item label="算法子类型" prop="algorithmSubId">
         <el-select
-          v-model="form.algorithmSubId"
+          v-model="queryParams.algorithmSubId"
           placeholder="请选择算法子类型"
           filterable
         >