Przeglądaj źródła

fix:
文件记录按照名称查询bug修复

18339543638 2 lat temu
rodzic
commit
625ea336d5

+ 2 - 2
tr-modules/tr-module-system/src/main/resources/mapper/storage/SysStorageRecordMapper.xml

@@ -34,10 +34,10 @@
         from sys_storage_record as sr join sys_storage_config sc on sr.config_id=sc.id
             <where>
                 <if test="query.configId != null">
-                    and st.config_id = #{query.configId}
+                    and sr.config_id = #{query.configId}
                 </if>
                 <if test="query.realName != null">
-                   and st.real_name = #{query.realName}
+                   and sr.real_name like concat('%',#{query.realName},'%')
                 </if>
             </where>
     </select>