insert into zd_assort(assort_id,assort_name,effective) values(#{zdAssort.assortId},#{zdAssort.assortName},#{zdAssort.effective}) delete from af_downfile where patient_id=#{patientId} and collectorid=#{collectorId} delete from t_scan_assort where patient_id=#{patientId} and assort_id=#{assortId} delete from af_collect_task where patient_id=#{patientId} and sysflag=#{sysFlag} insert into docus_medicalrecord.cqc_submit_state(patient_id,doctor_state,nurse_state) values(#{patientId},#{doctorState},#{nurseState}) update docus_medicalrecord.cqc_submit_state doctor_state=#{doctorState}, nurse_state=#{nurseState}, where patient_id=#{patientId} update t_scan_assort set is_del = 1 where patient_id=#{patientId} and source=#{collectorId}