select p.id,
p.project_num,
p.project_num1,
p.project_name,
p.project_name1,
p.project_desc,
p.project_url,
p.project_vurl,
p.project_baidu_url,
quark_check.check_status as quark_check_status,
quark_check.check_message as quark_check_message,
quark_check.checked_at as quark_checked_at,
baidu_check.check_status as baidu_check_status,
baidu_check.check_message as baidu_check_message,
baidu_check.checked_at as baidu_checked_at
from tt_project_info p
left join tt_project_link_check quark_check
on quark_check.project_id = p.id
and quark_check.disk_type = 'QUARK'
and quark_check.link_url = p.project_url
left join tt_project_link_check baidu_check
on baidu_check.project_id = p.id
and baidu_check.disk_type = 'BAIDU'
and baidu_check.link_url = p.project_baidu_url
insert into tt_project_info
project_num,project_num1,project_name,project_name1,project_desc,project_url,project_vurl,project_baidu_url,#{projectNum},#{projectNum1},#{projectName},#{projectName1},#{projectDesc},#{projectUrl},#{projectVurl},#{projectBaiduUrl},
update tt_project_info
project_num = #{projectNum},project_num1 = #{projectNum1},project_name = #{projectName},project_name1 = #{projectName1},project_desc = #{projectDesc},project_url = #{projectUrl},project_vurl = #{projectVurl},project_baidu_url = #{projectBaiduUrl},
where id = #{id}
update tt_project_info
set project_url = #{projectUrl}
where id = #{id}
update tt_project_info
set project_baidu_url = #{projectBaiduUrl}
where id = #{id}
delete from tt_project_info where id = #{id}
delete from tt_project_info where id in
#{id}