select id,
type,
archive_type,
outhospno,
inhospno,
serialnum,
patid,
patname,
parentname,
birthdate,
idcardno,
phone,
diag_time,
archive_time,
planned_follow_time,
followup_cycle_times,
sex,
doctor_code,
doctor_name,
management_doctor_code,
management_doctor_name,
deptcode,
deptname,
wardcode,
wardname,
icd10code,
diagname,
pregnancy_situation,
appointment_situation,
close_status,
nutrition_icd10_code,
nutrition_diag_name,
gestational_week,
birth_weight,
high_risk_child_type,
high_risk_child_name,
register_user,
remark,
orgid,
campusid,
update_by,
update_time,
create_by,
create_time,
del_flag
from pat_maternity_child_archive
insert into pat_maternity_child_archive
type,
archive_type,
outhospno,
inhospno,
serialnum,
patid,
patname,
parentname,
birthdate,
idcardno,
phone,
diag_time,
archive_time,
planned_follow_time,
followup_cycle_times,
sex,
doctor_code,
doctor_name,
management_doctor_code,
management_doctor_name,
deptcode,
deptname,
wardcode,
wardname,
icd10code,
diagname,
pregnancy_situation,
appointment_situation,
close_status,
nutrition_icd10_code,
nutrition_diag_name,
gestational_week,
birth_weight,
high_risk_child_type,
high_risk_child_name,
register_user,
remark,
orgid,
campusid,
update_by,
update_time,
create_by,
create_time,
del_flag,
#{type},
#{archiveType},
#{outhospno},
#{inhospno},
#{serialnum},
#{patid},
#{patname},
#{parentname},
#{birthdate},
#{idcardno},
#{phone},
#{diagTime},
#{archiveTime},
#{plannedFollowTime},
#{followupCycleTimes},
#{sex},
#{doctorCode},
#{doctorName},
#{managementDoctorCode},
#{managementDoctorName},
#{deptcode},
#{deptname},
#{wardcode},
#{wardname},
#{icd10code},
#{diagname},
#{pregnancySituation},
#{appointmentSituation},
#{closeStatus},
#{nutritionIcd10Code},
#{nutritionDiagName},
#{gestationalWeek},
#{birthWeight},
#{highRiskChildType},
#{highRiskChildName},
#{registerUser},
#{remark},
#{orgid},
#{campusid},
#{updateBy},
#{updateTime},
#{createBy},
#{createTime},
#{delFlag},
update pat_maternity_child_archive
type = #{type},
archive_type = #{archiveType},
outhospno = #{outhospno},
inhospno = #{inhospno},
serialnum = #{serialnum},
patid = #{patid},
patname = #{patname},
parentname = #{parentname},
birthdate = #{birthdate},
idcardno = #{idcardno},
phone = #{phone},
diag_time = #{diagTime},
archive_time = #{archiveTime},
planned_follow_time = #{plannedFollowTime},
followup_cycle_times = #{followupCycleTimes},
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},
pregnancy_situation = #{pregnancySituation},
appointment_situation = #{appointmentSituation},
close_status = #{closeStatus},
nutrition_icd10_code = #{nutritionIcd10Code},
nutrition_diag_name = #{nutritionDiagName},
gestational_week = #{gestationalWeek},
birth_weight = #{birthWeight},
high_risk_child_type = #{highRiskChildType},
high_risk_child_name = #{highRiskChildName},
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_maternity_child_archive
del_flag = '1'
where id = #{id}
update pat_maternity_child_archive set del_flag = '1' where id in
#{id}