소스 검색

FileMetaMapper 的 findByPid 方法不返回 deleted=1 的数据

reghao 1 년 전
부모
커밋
27ba287444
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      oss-store/src/main/resources/mapper/FileMetaMapper.xml

+ 1 - 1
oss-store/src/main/resources/mapper/FileMetaMapper.xml

@@ -144,7 +144,7 @@
     <select id="findByPid" resultType="cn.reghao.oss.api.dto.FileInfo">
         select size,object_name,object_id,file_type,filename,update_time
         from file_meta
-        where pid=#{pid}
+        where deleted=0 and pid=#{pid}
         limit #{pageSize}
     </select>