select
a.id,
a.name,
a.classification,
a.category,
a.brand,
a.packaging,
a.manufacturers,
a.treatment_type,
a.is_import,
a.ingredients,
a.usage,
a.dosage_form,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
a.del_flag,
a.remark,
a.code,
a.specifications,
a.unit,
a.adverse_reaction,
a.address,
a.content,
a.content_unit,
a.character,
a.storage,
a.indications,
a.short_name,
a.package_unit
from
health_medicine_basic a
insert into health_medicine_basic
id,
name,
classification,
category,
brand,
packaging,
manufacturers,
treatment_type,
is_import,
ingredients,
usage,
dosage_form,
create_by,
create_time,
update_by,
update_time,
del_flag,
remark,
code,
specifications,
unit,
adverse_reaction,
address,
content,
content_unit,
character,
storage,
indications,
short_name,
package_unit,
#{id},
#{name},
#{classification},
#{category},
#{brand},
#{packaging},
#{manufacturers},
#{treatmentType},
#{isImport},
#{ingredients},
#{usage},
#{dosageForm},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{delFlag},
#{remark},
#{code},
#{specifications},
#{unit},
#{adverseReaction},
#{address},
#{content},
#{contentUnit},
#{character},
#{storage},
#{indications},
#{shortName},
#{packageUnit},
update health_medicine_basic
name = #{name},
classification = #{classification},
category = #{category},
brand = #{brand},
packaging = #{packaging},
manufacturers = #{manufacturers},
treatment_type = #{treatmentType},
is_import = #{isImport},
ingredients = #{ingredients},
usage = #{usage},
dosage_form = #{dosageForm},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
del_flag = #{delFlag},
remark = #{remark},
code = #{code},
specifications = #{specifications},
unit = #{unit},
adverse_reaction = #{adverseReaction},
address = #{address},
content = #{content},
content_unit = #{contentUnit},
character = #{character},
storage = #{storage},
indications = #{indications},
short_name = #{shortName},
package_unit = #{packageUnit},
where id = #{id}
delete from health_medicine_basic where id = #{id}
delete from health_medicine_basic where id in
#{id}
update health_medicine_basic set del_flag='1' where id = #{id}
update health_medicine_basic set del_flag='1' where id in
#{id}