select id, archive_id, storeroom_id, medicineCode, batch, expiryDate,
box_count, inventoryUnit, pack_count, retail_price, min_price,
create_by, create_time, update_by, update_time, remark
from healthcare_drug_filing
insert into healthcare_drug_filing
archive_id,
storeroom_id,
medicineCode,
batch,
expiryDate,
box_count,
inventoryUnit,
pack_count,
retail_price,
min_price,
create_by,
create_time,
update_by,
update_time,
remark,
#{archiveId},
#{storeroomId},
#{medicineCode},
#{batch},
#{expiryDate},
#{boxCount},
#{inventoryUnit},
#{packCount},
#{retailPrice},
#{minPrice},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
update healthcare_drug_filing
archive_id = #{archiveId},
storeroom_id = #{storeroomId},
medicineCode = #{medicineCode},
batch = #{batch},
expiryDate = #{expiryDate},
box_count = #{boxCount},
inventoryUnit = #{inventoryUnit},
pack_count = #{packCount},
retail_price = #{retailPrice},
min_price = #{minPrice},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where id = #{id}
delete from healthcare_drug_filing where id = #{id}
delete from healthcare_drug_filing where archive_id = #{archiveId}