|
@@ -48,9 +48,8 @@
|
|
update
|
|
update
|
|
ctop_bytedance_image_info
|
|
ctop_bytedance_image_info
|
|
set type = 3
|
|
set type = 3
|
|
- where width < height and type is null or type = 2
|
|
|
|
- and width = 1080 and height = 1920
|
|
|
|
- <if test="projectId !=null and projectId != ''">
|
|
|
|
|
|
+ where width = 1080 and height = 1920
|
|
|
|
+ <if test="accountId !=null and accountId != ''">
|
|
and account_id = #{accountId}
|
|
and account_id = #{accountId}
|
|
</if>
|
|
</if>
|
|
|
|
|
|
@@ -62,7 +61,7 @@
|
|
set type = 2
|
|
set type = 2
|
|
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)
|
|
- <if test="projectId !=null and projectId != ''">
|
|
|
|
|
|
+ <if test="accountId !=null and accountId != ''">
|
|
and account_id = #{accountId}
|
|
and account_id = #{accountId}
|
|
</if>
|
|
</if>
|
|
</update>
|
|
</update>
|
|
@@ -72,7 +71,7 @@
|
|
set type = 1
|
|
set type = 1
|
|
where height < width and type is null
|
|
where height < width and type is null
|
|
and (width between 1280 and 2560) and (height between 720 and 1440)
|
|
and (width between 1280 and 2560) and (height between 720 and 1440)
|
|
- <if test="projectId !=null and projectId != ''">
|
|
|
|
|
|
+ <if test="accountId !=null and accountId != ''">
|
|
and account_id = #{accountId}
|
|
and account_id = #{accountId}
|
|
</if>
|
|
</if>
|
|
</update>
|
|
</update>
|