select id, archiveid, archive_type, source_type, outhospno, inhospno, serialnum, patid, patname, parentname, parent_relation, parent_phone, parent_idcardno, parent_address, birthdate, idcardno, phone, diag_time, archive_time, sex, doctor_code, doctor_name, management_doctor_code, management_doctor_name, deptcode, deptname, wardcode, wardname, icd10code, diagname, nutrition_icd10_code, nutrition_diag_name, nd_physical_measurements, nd_dietary_assessment, nd_intervention_program, appointment_situation, ld_learning_ability_assessment, ld_behavioral_assessment, ld_intervention_training_record, high_risk_child_type, high_risk_child_name, planned_follow_time, hrc_growth_development_monitoring, hrc_neurological_evaluation, hrc_intervention_records, close_status, gestational_week, birth_weight, register_user, remark, orgid, campusid, update_by, update_time, create_by, create_time, del_flag from pat_child_archive_detail insert into pat_child_archive_detail archiveid, archive_type, source_type, outhospno, inhospno, serialnum, patid, patname, parentname, parent_relation, parent_phone, parent_idcardno, parent_address, birthdate, idcardno, phone, diag_time, archive_time, sex, doctor_code, doctor_name, management_doctor_code, management_doctor_name, deptcode, deptname, wardcode, wardname, icd10code, diagname, nutrition_icd10_code, nutrition_diag_name, nd_physical_measurements, nd_dietary_assessment, nd_intervention_program, appointment_situation, ld_learning_ability_assessment, ld_behavioral_assessment, ld_intervention_training_record, high_risk_child_type, high_risk_child_name, planned_follow_time, hrc_growth_development_monitoring, hrc_neurological_evaluation, hrc_intervention_records, close_status, gestational_week, birth_weight, register_user, remark, orgid, campusid, update_by, update_time, create_by, create_time, del_flag, #{archiveid}, #{archiveType}, #{sourceType}, #{outhospno}, #{inhospno}, #{serialnum}, #{patid}, #{patname}, #{parentname}, #{parentRelation}, #{parentPhone}, #{parentIdcardno}, #{parentAddress}, #{birthdate}, #{idcardno}, #{phone}, #{diagTime}, #{archiveTime}, #{sex}, #{doctorCode}, #{doctorName}, #{managementDoctorCode}, #{managementDoctorName}, #{deptcode}, #{deptname}, #{wardcode}, #{wardname}, #{icd10code}, #{diagname}, #{nutritionIcd10Code}, #{nutritionDiagName}, #{ndPhysicalMeasurements}, #{ndDietaryAssessment}, #{ndInterventionProgram}, #{appointmentSituation}, #{ldLearningAbilityAssessment}, #{ldBehavioralAssessment}, #{ldInterventionTrainingRecord}, #{highRiskChildType}, #{highRiskChildName}, #{plannedFollowTime}, #{hrcGrowthDevelopmentMonitoring}, #{hrcNeurologicalEvaluation}, #{hrcInterventionRecords}, #{closeStatus}, #{gestationalWeek}, #{birthWeight}, #{registerUser}, #{remark}, #{orgid}, #{campusid}, #{updateBy}, #{updateTime}, #{createBy}, #{createTime}, #{delFlag}, update pat_child_archive_detail archiveid = #{archiveid}, archive_type = #{archiveType}, source_type = #{sourceType}, outhospno = #{outhospno}, inhospno = #{inhospno}, serialnum = #{serialnum}, patid = #{patid}, patname = #{patname}, parentname = #{parentname}, parent_relation = #{parentRelation}, parent_phone = #{parentPhone}, parent_idcardno = #{parentIdcardno}, parent_address = #{parentAddress}, birthdate = #{birthdate}, idcardno = #{idcardno}, phone = #{phone}, diag_time = #{diagTime}, archive_time = #{archiveTime}, sex = #{sex}, doctor_code = #{doctorCode}, doctor_name = #{doctorName}, management_doctor_code = #{managementDoctorCode}, management_doctor_name = #{managementDoctorName}, deptcode = #{deptcode}, deptname = #{deptname}, wardcode = #{wardcode}, wardname = #{wardname}, icd10code = #{icd10code}, diagname = #{diagname}, nutrition_icd10_code = #{nutritionIcd10Code}, nutrition_diag_name = #{nutritionDiagName}, nd_physical_measurements = #{ndPhysicalMeasurements}, nd_dietary_assessment = #{ndDietaryAssessment}, nd_intervention_program = #{ndInterventionProgram}, appointment_situation = #{appointmentSituation}, ld_learning_ability_assessment = #{ldLearningAbilityAssessment}, ld_behavioral_assessment = #{ldBehavioralAssessment}, ld_intervention_training_record = #{ldInterventionTrainingRecord}, high_risk_child_type = #{highRiskChildType}, high_risk_child_name = #{highRiskChildName}, planned_follow_time = #{plannedFollowTime}, hrc_growth_development_monitoring = #{hrcGrowthDevelopmentMonitoring}, hrc_neurological_evaluation = #{hrcNeurologicalEvaluation}, hrc_intervention_records = #{hrcInterventionRecords}, close_status = #{closeStatus}, gestational_week = #{gestationalWeek}, birth_weight = #{birthWeight}, register_user = #{registerUser}, remark = #{remark}, orgid = #{orgid}, campusid = #{campusid}, update_by = #{updateBy}, update_time = #{updateTime}, create_by = #{createBy}, create_time = #{createTime}, del_flag = #{delFlag}, where id = #{id} update pat_child_archive_detail del_flag = '1' where id = #{id} update pat_child_archive_detail set del_flag = '1' where id in #{id}