소스 검색

增加图片查询判断条件

xusonglin 5 년 전
부모
커밋
3b5bedb711
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/main/resources/mapper/PhotoMapper.xml

+ 2 - 0
src/main/resources/mapper/PhotoMapper.xml

@@ -59,6 +59,7 @@
             photo
         where
             type = 2
+            and activated = 1
         order by create_time desc
         limit 1
     </select>
@@ -70,6 +71,7 @@
             photo
         where
             type = 1
+            and activated = 1
         order by create_time desc
     </select>
 </mapper>