select id, agent_id, start_no, end_no, end_date, location, school_id, dept_id, sender, create_time, is_reopen, status, audit_desc, card_type from dz_cards_open
insert into dz_cards_open
agent_id,
start_no,
end_no,
end_date,
location,
school_id,
dept_id,
sender,
create_time,
is_reopen,
status,
card_type,
#{agentId},
#{startNo},
#{endNo},
#{endDate},
#{location},
#{schoolId},
#{deptId},
#{sender},
#{createTime},
#{isReopen},
#{status},
#{cardType},
update dz_cards_open
agent_id = #{agentId},
start_no = #{startNo},
end_no = #{endNo},
end_date = #{endDate},
location = #{location},
school_id = #{schoolId},
dept_id = #{deptId},
sender = #{sender},
create_time = #{createTime},
is_reopen = #{isReopen},
status = #{status},
card_type = #{cardType},
audit_desc = #{auditDesc}
where id = #{id}
delete from dz_cards_open where id = #{id}
delete from dz_cards_open where id in
#{id}