update FormInstance set status = (select qmi.status from QualityMonitoringInstance qmi where qmi.id = FormInstance.id), reviewer = (select qmi.reviewer from QualityMonitoringInstance qmi where qmi.id = FormInstance.id), reviewTime = (select qmi.reviewTime from QualityMonitoringInstance qmi where qmi.id = FormInstance.id) where formDefinition_id in (select id from FormDefinition where formType in ('定期监测', '质量监测')) and status is null;
update FormInstance set status = '未审核' where formDefinition_id in (select id from FormDefinition where formType = '自定义表单') and status is null;