Browse Source

增加图片查询判断条件

xusonglin 5 years ago
parent
commit
3b5bedb711
1 changed files with 2 additions and 0 deletions
  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>