select * from crawler_plan_result_rel where channel_source_id in
#{item}
select * from crawler_plan where id in
#{item}
select cc.channel_content_id, ca.wx_gh as ghId, cc.title, cc.publish_timestamp
from crawler_content cc
join crawler_account ca on cc.channel_account_id = ca.channel_account_id
where cc.channel_content_id = #{channelContentId}
select distinct record.channel_content_id as contentId,
output.output as title
from produce_plan_exe_record record
join produce_plan_module_output output
on record.plan_exe_id = output.plan_exe_id and output.produce_module_type = 3
where record.plan_id = #{planId} and record.status = 2 and audit_status = 1
select *
from produce_plan_exe_record
where plan_id in
#{item}
and status = 2
select cc.channel_content_id, cprr.plan_id as crawlerPlanId, ca.wx_gh as ghId, cc.title, cc.publish_timestamp
from crawler_content cc
join (select channel_source_id, max(plan_id) as plan_id from crawler_plan_result_rel group by channel_source_id) cprr
on cc.channel_content_id = cprr.channel_source_id
join crawler_account ca on cc.channel_account_id = ca.channel_account_id
where cc.channel_content_id in
#{item}
select *
from crawler_plan
where plan_type = 2 and channel = 5 and content_modal = 3
and create_timestamp between #{timeStart} and #{timeEnd}
and plan_tag in
#{item}
select pper.plan_id, pper.audit_status as auditStatus, count(1) as num
from produce_plan_exe_record pper
join produce_review_record prr on prr.plan_exe_id = pper.plan_exe_id
where pper.plan_id in
#{item}
and ((pper.audit_status in (1, 2) and pper.audit_timestamp between #{timeStart} and #{timeEnd})
or (prr.review_status = 0 and pper.create_timestamp < #{timeStart} and pper.status = 6))
GROUP BY pper.plan_id, pper.audit_status
select pper.plan_id, count(1) as num
from produce_plan_exe_record pper
where pper.plan_id in
#{item}
and pper.status >= 2
and pper.produce_timestamp between #{timeStart} and #{timeEnd}
GROUP BY pper.plan_id
select atom.plan_exe_id, atom.input, atom.output, record.audit_timestamp as createTimestamp
from produce_task_atom atom
join produce_plan_exe_record record on atom.plan_exe_id = record.plan_exe_id
join produce_plan_module_task task on task.task_id = atom.task_id
where task.name in ('title 安全分', 'titile 安全分')
and record.audit_timestamp between #{startTimeStamp} and #{endTimeStamp}
and atom.output >= 7
and record.status in (2, 6, 9)
and record.audit_status in (1, 3)
order by record.audit_timestamp desc
select atom.plan_exe_id, atom.input, atom.output, record.audit_timestamp as createTimestamp
from produce_task_atom atom
join produce_plan_exe_record record on atom.plan_exe_id = record.plan_exe_id
join produce_plan_module_task task on task.task_id = atom.task_id
where task.name in ('title 安全分', 'titile 安全分')
and record.plan_exe_id in
#{item}
and record.status in (2, 6, 9)
and record.audit_status in (1, 3)
order by record.audit_timestamp desc
select plan.id as planId, plan.plan_tag as poolType, pper.plan_exe_id as contentId
from produce_plan plan
join produce_plan_exe_record pper on plan.id = pper.plan_id
where pper.plan_exe_id in
#{item}
select input.input_source_value
from publish_plan plan
join publish_plan_input_source input on plan.id = input.plan_id
where plan.plan_status = 1 and plan.channel = 5
select input.input_source_value
from produce_plan plan
join produce_plan_input_source input on plan.id = input.plan_id
where plan.id in
#{item}
select count(1)
from crawler_plan_result_rel
where plan_id in
#{item}
and create_timestamp between #{start} and #{end}
select distinct plan_id
from crawler_plan_result_rel
where plan_id in
#{item}
and create_timestamp between #{start} and #{end}
select count(1)
from produce_plan_exe_record
where plan_id in
#{item}
and produce_timestamp between #{start} and #{end}
select count(1)
from produce_plan_exe_record
where plan_id in
#{item}
and audit_status in
#{item}
and audit_timestamp between #{start} and #{end}
select plan_exe_id
from produce_plan_exe_record
where channel_content_id in (
select channel_content_id
from crawler_content
where channel_account_id in (
select channel_account_id
from crawler_account
where account_name in
#{item}
)) and audit_status = 0 and status = 6
select * from produce_review_record where plan_exe_id in
#{item}
and review_status = 0
select account_name, count(if(audit_status = 1, 1, null)) / count(1) as rate, count(1) as total_count
from (
select audit_status,
e.account_name
from produce_plan_exe_record a
join produce_plan b ON a.plan_id = b.id
join crawler_content d on a.channel_content_id = d.channel_content_id
join crawler_account e on d.channel_account_id = e.channel_account_id
where a.plan_id in
#{item}
and a.audit_status in (1, 2)
and a.update_timestamp > unix_timestamp('2024-09-01')
) t1
group by account_name
having rate = 0 and total_count >= 10
order by rate
update crawler_content cc
join crawler_account ca on cc.channel_account_id = ca.channel_account_id
set cc.status = 3
where ca.account_name in
#{item}
and cc.status = 1
select distinct record.plan_exe_id as contentId,
output.output as bodyText
from produce_plan_exe_record record
join produce_plan_module_output output
on record.plan_exe_id = output.plan_exe_id and output.produce_module_type = 4
where record.plan_exe_id in
#{item}
select id, name
from produce_plan
where id in
#{item}
and name like concat('%', #{searchKeyword}, '%')
limit 100