id,item_id,order_id,status,num,total
#{id},#{itemId},#{orderId},#{status},#{num},#{total}
item_id = #{itemId},
order_id = #{orderId},
status = #{status}
num = #{num},
total = #{total},
and id = #{id}
and item_id = #{itemId}
and order_id = #{orderId}
and status = #{status}
and num = #{num}
and total = #{total}
insert into order_detail(
) values(
)
delete from order_detail where id=#{id}
delete from order_detail where 1=1
delete from order_detail where 1=1
update order_detail
where 1=1
update order_detail
where id=#{id}
update order_detail
item_id = #{item.itemId},
order_id = #{item.orderId},
status = #{item.status},
num = #{item.num},
total = #{item.total},
where 1=1
and id = #{item.id}
${sql}
${sql}