Ver código fonte

头条-图片类型-3开屏

yangzian 3 anos atrás
pai
commit
fad4d7b700

+ 2 - 2
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/material/mapper/BytedanceImageInfoMapper.java

@@ -16,10 +16,10 @@ public interface BytedanceImageInfoMapper extends BaseMapper<BytedanceImageInfo>
 
     void replaceBatch(@Param(value = "imageInfos")List<BytedanceImageInfo> imageInfos);
 
-    //大图竖图
-    void updateImageVerticalType();
     //大图横图
     void updateImageHorizonType();
+    //大图竖图
+    void updateImageVerticalType();
     //开屏
     void updateImageUnionType();
     //开屏 或者 竖图

+ 2 - 2
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/material/mapper/xml/BytedanceImageInfoMapper.xml

@@ -48,8 +48,8 @@
         update
             ctop_bytedance_image_info
         set type = 3
-        where width &lt; height and type is null
-          and width = 1080 and height = 1920
+        where width &lt; height and type is null or type = 2
+            and width = 1080 and height = 1920
     </update>
     <!-- 大图竖图 -->
     <update id="updateImageVerticalType">