insert into store_order_cart(
value_id,product_id,order_id,cart_id,remark,store_id,cart_num,price,pay_price,person_id,state,freight_price
) values (
#{valueId},#{productId},#{orderId},#{cartId},#{remark},#{storeId},#{cartNum},#{price},#{payPrice},#{personId},#{state},#{freightPrice}
)
update store_order_cart t set t.status_cd = #{statusCd}
, t.value_id= #{valueId}
, t.product_id= #{productId}
, t.remark= #{remark}
, t.store_id= #{storeId}
, t.cart_num= #{cartNum}
, t.price= #{price}
, t.pay_price= #{payPrice}
, t.person_id= #{personId}
, t.state= #{state}
, t.freight_price= #{freightPrice}
where 1=1
and t.cart_id= #{cartId}
and t.order_id= #{orderId}