INSERT INTO tb_supply_new
(
title,
uid,
industry_id,
money,
minimum,
country_id,
city_id,
province_id,
phone,
company_id
)
VALUES
(
#{title},
#{uid},
#{industryId},
#{money},
#{minimum},
#{countryId},
#{cityId},
#{provinceId},
#{phone},
#{companyId}
);
AND (tnc.`website_status` = #{websiteStatus} OR
tnc.`website_status` = 4 OR tnc.`website_status` = 3 OR tnc.`website_status` = 6)
AND tnc.`website_status` = #{websiteStatus}
AND tnc.`website_name` is not null
AND tnc.`company_name` is not null
AND tnc.`company_address` is not null
AND tnc.`company_synopsis` is not null
AND tnc.`industry_id` is not null
AND tnc.`scale_id` is not null
AND (SELECT COUNT(*) FROM tb_enterprise_product_certificate pro WHERE pro.enterprise_id = tnc.id AND
pro.type = 1) > 0
AND (SELECT COUNT(*) FROM tb_enterprise_phone ph WHERE ph.enterprise_id = tnc.id) > 0