select id, order_id, goods_id, product_id, goods_name, goods_img, product_name, price, total, comment, del_flag, commission, return_total,returnable_quantity, return_status,integral from mall_order_goods
insert into mall_order_goods
order_id,
goods_id,
product_id,
goods_name,
goods_img,
product_name,
price,
total,
comment,
del_flag,
commission,
return_total,
return_status,
integral,
returnable_quantity,
#{orderId},
#{goodsId},
#{productId},
#{goodsName},
#{goodsImg},
#{productName},
#{price},
#{total},
#{comment},
#{delFlag},
#{commission},
#{returnTotal},
#{returnStatus},
#{integral},
#{returnableQuantity},
update mall_order_goods
order_id = #{orderId},
goods_id = #{goodsId},
product_id = #{productId},
goods_name = #{goodsName},
goods_img = #{goodsImg},
product_name = #{productName},
price = #{price},
total = #{total},
comment = #{comment},
del_flag = #{delFlag},
commission = #{commission},
return_total = #{returnTotal},
return_status = #{returnStatus},
integral = #{integral},
returnable_quantity = #{returnableQuantity},
where id = #{id}
delete from mall_order_goods where id = #{id}
delete from mall_order_goods where id in
#{id}
update mall_order_goods set
return_status = #{returnStatus},
return_total = '0' ,
returnable_quantity = total
where order_id = #{orderId}
and return_status != '0'
update mall_order_goods set
return_status = #{returnStatus},
return_total = #{returnTotal} ,
returnable_quantity = #{returnableQuantity}
where order_id = #{orderId}
and goods_id = #{goodsId}
and return_status != '0'
update mall_order_goods set
return_status = #{returnStatus}
and return_total = '0'
where order_id = #{orderId}
and (return_status != '0' or return_status != '2' )