select a.id, a.childid, a.fathername, a.fphone, a.foffphone, a.mothername, a.mphone, a.moffphone, a.grandfathername, a.gfgx, a.gfphone, a.gfoffphone, a.gfaddress, a.grandmothername, a.gmgx, a.gmphone, a.gmaddress, a.gmoffphone, a.create_time,b.schoolid, b.classid from by_child_contactpeople a left join by_child b on a.childid=b.id
insert into by_child_contactpeople
id,
childid,
fathername,
fphone,
foffphone,
mothername,
mphone,
moffphone,
grandfathername,
gfgx,
gfphone,
gfoffphone,
gfaddress,
grandmothername,
gmgx,
gmphone,
gmaddress,
gmoffphone,
create_time,
#{id},
#{childid},
#{fathername},
#{fphone},
#{foffphone},
#{mothername},
#{mphone},
#{moffphone},
#{grandfathername},
#{gfgx},
#{gfphone},
#{gfoffphone},
#{gfaddress},
#{grandmothername},
#{gmgx},
#{gmphone},
#{gmaddress},
#{gmoffphone},
#{createTime},
update by_child_contactpeople
childid = #{childid},
fathername = #{fathername},
fphone = #{fphone},
foffphone = #{foffphone},
mothername = #{mothername},
mphone = #{mphone},
moffphone = #{moffphone},
grandfathername = #{grandfathername},
gfgx = #{gfgx},
gfphone = #{gfphone},
gfoffphone = #{gfoffphone},
gfaddress = #{gfaddress},
grandmothername = #{grandmothername},
gmgx = #{gmgx},
gmphone = #{gmphone},
gmaddress = #{gmaddress},
gmoffphone = #{gmoffphone},
create_time = #{createTime},
where id = #{id}
delete from by_child_contactpeople where id = #{id}
delete from by_child_contactpeople where id in
#{id}