Bläddra i källkod

头条素材数据获取-图片新增类型 开屏

yangzian 4 år sedan
förälder
incheckning
c645f6fd75

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

@@ -23,5 +23,5 @@ public interface BytedanceImageInfoMapper extends BaseMapper<BytedanceImageInfo>
     //开屏
     void updateImageUnionType();
     //开屏 或者 竖图
-    void updateImageUnionIOrVerticalType();
+    //void updateImageUnionIOrVerticalType();
 }

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

@@ -49,7 +49,7 @@
             ctop_bytedance_image_info
         set type = 3
         where width &lt; height and type is null
-          and (width between 1080 and 2160)  and (height between 1920 and 3840)
+          and width = 1080 and height = 1920
     </update>
     <!-- 大图竖图 -->
     <update id="updateImageVerticalType">

+ 1 - 1
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/material/service/impl/BytedanceImageInfoServiceImpl.java

@@ -34,6 +34,6 @@ public class BytedanceImageInfoServiceImpl extends ServiceImpl<BytedanceImageInf
         //开屏-3
         imageInfoMapper.updateImageUnionType();
         //开屏 或者 竖图 -4
-        imageInfoMapper.updateImageUnionIOrVerticalType();
+        //imageInfoMapper.updateImageUnionIOrVerticalType();
     }
 }