Explorar el Código

增加图片查询判断条件

xusonglin hace 5 años
padre
commit
3b5bedb711
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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>