|
@@ -131,6 +131,7 @@
|
|
FROM `ctop_kuaishou_channel`
|
|
FROM `ctop_kuaishou_channel`
|
|
WHERE account_id = #{accountId}
|
|
WHERE account_id = #{accountId}
|
|
AND state = 1
|
|
AND state = 1
|
|
|
|
+ AND channel_state = 1
|
|
AND id > #{usedId}
|
|
AND id > #{usedId}
|
|
AND usage_range = #{usageRange}
|
|
AND usage_range = #{usageRange}
|
|
ORDER BY channel_code, channel_number limit 10
|
|
ORDER BY channel_code, channel_number limit 10
|
|
@@ -146,6 +147,7 @@
|
|
FROM `ctop_kuaishou_channel`
|
|
FROM `ctop_kuaishou_channel`
|
|
WHERE account_id = #{accountId}
|
|
WHERE account_id = #{accountId}
|
|
AND state = 1
|
|
AND state = 1
|
|
|
|
+ AND channel_state = 1
|
|
<if test="isHaveItem != null">
|
|
<if test="isHaveItem != null">
|
|
and is_have_item = #{isHaveItem}
|
|
and is_have_item = #{isHaveItem}
|
|
</if>
|
|
</if>
|
|
@@ -317,6 +319,7 @@
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
AND state = 1
|
|
AND state = 1
|
|
|
|
+ AND channel_state = 1
|
|
group by usage_times
|
|
group by usage_times
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -351,6 +354,7 @@
|
|
LEFT JOIN ctop_kuaishou_channel_app_info t2 ON t1.app_id = t2.app_id
|
|
LEFT JOIN ctop_kuaishou_channel_app_info t2 ON t1.app_id = t2.app_id
|
|
WHERE
|
|
WHERE
|
|
t1.state = 1
|
|
t1.state = 1
|
|
|
|
+ AND t1.channel_state = 1
|
|
AND t1.account_id = #{accountId}
|
|
AND t1.account_id = #{accountId}
|
|
AND t2.app_name = #{appName}
|
|
AND t2.app_name = #{appName}
|
|
|
|
|
|
@@ -379,6 +383,7 @@
|
|
WHERE t2.account_id = #{accountId}
|
|
WHERE t2.account_id = #{accountId}
|
|
AND t2.usage_level = #{level}
|
|
AND t2.usage_level = #{level}
|
|
AND t2.state = 1
|
|
AND t2.state = 1
|
|
|
|
+ AND t2.channel_state = 1
|
|
AND t1.campaign_id = #{campaignId} LIMIT 1
|
|
AND t1.campaign_id = #{campaignId} LIMIT 1
|
|
</select>
|
|
</select>
|
|
|
|
|