select id, order_number, asset_number, allocation_old_responsible_person, allocation_old_location_number, allocation_new_responsible_person, allocation_new_location_number, lend_return_date, lend_actual_return_date, lend_by_sponsor, remark from tb_order_detail insert into tb_order_detail order_number, asset_number, allocation_old_responsible_person, allocation_old_location_number, allocation_new_responsible_person, allocation_new_location_number, lend_return_date, lend_actual_return_date, lend_by_sponsor, remark, #{orderNumber}, #{assetNumber}, #{allocationOldResponsiblePerson}, #{allocationOldLocationNumber}, #{allocationNewResponsiblePerson}, #{allocationNewLocationNumber}, #{lendReturnDate}, #{lendActualReturnDate}, #{lendBySponsor}, #{remark}, update tb_order_detail order_number = #{orderNumber}, asset_number = #{assetNumber}, allocation_old_responsible_person = #{allocationOldResponsiblePerson}, allocation_old_location_number = #{allocationOldLocationNumber}, allocation_new_responsible_person = #{allocationNewResponsiblePerson}, allocation_new_location_number = #{allocationNewLocationNumber}, lend_return_date = #{lendReturnDate}, lend_actual_return_date = #{lendActualReturnDate}, lend_by_sponsor = #{lendBySponsor}, remark = #{remark}, where id = #{id} delete from tb_order_detail where id = #{id} delete from tb_order_detail where order_number = #{orderNumber} delete from tb_order_detail where id in #{id} delete from tb_order_detail where order_number in #{number}