select id,
identification_code,
wbm,
medication_common_name,
manufacturer_name,
item_code,
small_large_package_ratio,
remark,
org_id,
item_name,
medication_type,
antimicrobial_grade_code,
license_number,
default_usage_name,
special_drugs_name,
antimicrobial_grade_name,
common_pinyin,
common_wbm,
manufacturer_id,
default_usage_id,
specification,
small_package_unit,
item_id,
special_drugs_code,
pinyin,
dose_form_name,
large_package_unit,
retail_price,
status,
create_by,
create_time,
update_by,
update_time
from medication_item
insert into medication_item
identification_code,
wbm,
medication_common_name,
manufacturer_name,
item_code,
small_large_package_ratio,
remark,
org_id,
item_name,
medication_type,
antimicrobial_grade_code,
license_number,
default_usage_name,
special_drugs_name,
antimicrobial_grade_name,
common_pinyin,
common_wbm,
manufacturer_id,
default_usage_id,
specification,
small_package_unit,
item_id,
special_drugs_code,
pinyin,
dose_form_name,
large_package_unit,
retail_price,
status,
create_by,
create_time,
update_by,
update_time,
#{identificationCode},
#{wbm},
#{medicationCommonName},
#{manufacturerName},
#{itemCode},
#{smallLargePackageRatio},
#{remark},
#{orgId},
#{itemName},
#{medicationType},
#{antimicrobialGradeCode},
#{licenseNumber},
#{defaultUsageName},
#{specialDrugsName},
#{antimicrobialGradeName},
#{commonPinyin},
#{commonWbm},
#{manufacturerId},
#{defaultUsageId},
#{specification},
#{smallPackageUnit},
#{itemId},
#{specialDrugsCode},
#{pinyin},
#{doseFormName},
#{largePackageUnit},
#{retailPrice},
#{status},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update medication_item
identification_code =
#{identificationCode},
wbm =
#{wbm},
medication_common_name =
#{medicationCommonName},
manufacturer_name =
#{manufacturerName},
item_code =
#{itemCode},
small_large_package_ratio =
#{smallLargePackageRatio},
remark =
#{remark},
org_id =
#{orgId},
item_name =
#{itemName},
medication_type =
#{medicationType},
antimicrobial_grade_code =
#{antimicrobialGradeCode},
license_number =
#{licenseNumber},
default_usage_name =
#{defaultUsageName},
special_drugs_name =
#{specialDrugsName},
antimicrobial_grade_name =
#{antimicrobialGradeName},
common_pinyin =
#{commonPinyin},
common_wbm =
#{commonWbm},
manufacturer_id =
#{manufacturerId},
default_usage_id =
#{defaultUsageId},
specification =
#{specification},
small_package_unit =
#{smallPackageUnit},
item_id =
#{itemId},
special_drugs_code =
#{specialDrugsCode},
pinyin =
#{pinyin},
dose_form_name =
#{doseFormName},
large_package_unit =
#{largePackageUnit},
retail_price =
#{retailPrice},
status =
#{status},
create_by =
#{createBy},
create_time =
#{createTime},
update_by =
#{updateBy},
update_time =
#{updateTime},
where id = #{id}
update medication_item
del_flag =1
where id = #{id}
update medication_item
del_flag =1
where id in
#{id}