item_id itemId,
agent_orderid agentOrderid,
product_id productId,
color_id colorId,
product_type productType,
product_rent_type productRentType,
item_num itemNum,
item_total itemTotal,
item_create_date itemCreateDate,
item_product_name itemProductName,
item_color_name itemColorName,
item_product_discount itemProductDiscount,
item_product_price itemProductPrice,
item_product_pic itemProductPic
insert into tb_iamberry_agent_order (`agent_orderid` ,`agent_id` ,`agent_yet_amount` ,`agent_amount` ,`agent_create_date`,`agent_status` ,`agent_address_info` ,`agent_address_postnum` ,`agent_address_tel` ,`agent_address_name` ,`agent_admin_remark` )
values (#{agentOrderid},#{agentId},#{agentYetAmount},#{agentAmount},#{agentCreateDate},#{agentStatus},#{agentAddressInfo},#{agentAddressPostnum},#{agentAddressTel},#{agentAddressName},#{agentAdminRemark})
insert into tb_iamberry_agent_order_item (`agent_orderid` ,`product_id` ,`color_id` ,`product_type`
,`product_rent_type` ,`item_num` ,`item_total` ,`item_product_name` ,`item_color_name` ,`item_product_discount`
,`item_product_price` ,`item_product_pic` )
values
(#{item.agentOrderid},#{item.productId},#{item.colorId},#{item.productType},#{item.productRentType},#{item.itemNum},#{item.itemTotal},#{item.itemProductName},#{item.itemColorName},#{item.itemProductDiscount},#{item.itemProductPrice},#{item.itemProductPic})
update
tb_iamberry_agent_order
agent_post_num = #{agentPostNum},
agent_post_firm = #{agentPostFirm},
agent_status = #{agentStatus},
agent_send_date = #{agentSendDate},
agent_address_info = #{agentAddressInfo},
agent_address_postnum = #{agentAddressPostnum},
agent_address_tel = #{agentAddressTel},
agent_address_name = #{agentAddressName},
agent_admin_remark = #{agentAdminRemark},
agent_transaction_id = #{agentTransactionId},
agent_transaction_date = #{agentTransactionDate},
where
agent_orderid = #{agentOrderid}