UPDATE applyinfo a
LEFT JOIN enterprise_applicant e ON a.app_ent_id = e.id
SET a.`status` = 9
WHERE
e.enterprise_name = 'test'
AND a.create_date >= '2017-05-18'
AND a.`status` = 1
LEFT JOIN enterprise_applicant e ON a.app_ent_id = e.id
SET a.`status` = 9
WHERE
e.enterprise_name = 'test'
AND a.create_date >= '2017-05-18'
AND a.`status` = 1