|
@@ -35,6 +35,23 @@
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
|
+ <!-- 开屏 或者 竖图 -->
|
|
|
|
+ <update id="updateImageUnionIOrVerticalType">
|
|
|
|
+ update
|
|
|
|
+ ctop_bytedance_image_info
|
|
|
|
+ set type = 4
|
|
|
|
+ where width < height and (type is null or type = 3)
|
|
|
|
+ and (width between 1080 and 1440) and (height between 1920 and 2560)
|
|
|
|
+ </update>
|
|
|
|
+ <!-- 开屏 -->
|
|
|
|
+ <update id="updateImageUnionType">
|
|
|
|
+ update
|
|
|
|
+ ctop_bytedance_image_info
|
|
|
|
+ set type = 3
|
|
|
|
+ where width < height and type is null
|
|
|
|
+ and (width between 1080 and 2160) and (height between 1920 and 3840)
|
|
|
|
+ </update>
|
|
|
|
+ <!-- 大图竖图 -->
|
|
<update id="updateImageVerticalType">
|
|
<update id="updateImageVerticalType">
|
|
update
|
|
update
|
|
ctop_bytedance_image_info
|
|
ctop_bytedance_image_info
|
|
@@ -42,6 +59,7 @@
|
|
where height > width and type is null
|
|
where height > width and type is null
|
|
and (height between 1280 and 2560) and (width between 720 and 1440);
|
|
and (height between 1280 and 2560) and (width between 720 and 1440);
|
|
</update>
|
|
</update>
|
|
|
|
+ <!-- 大图横图 -->
|
|
<update id="updateImageHorizonType">
|
|
<update id="updateImageHorizonType">
|
|
update ctop_bytedance_image_info
|
|
update ctop_bytedance_image_info
|
|
set type = 1
|
|
set type = 1
|