|
|
@@ -14,7 +14,12 @@ class OrderDetail < ActiveRecord::Base
|
|
|
pd = Product.where("id = ?", record[:product_id]).first
|
|
|
pd = Product.where("id = ?", record[:product_id]).first
|
|
|
end
|
|
|
-
|
|
|
+ def after_import_save(record)
|
|
|
+ od = Order.where("id = ?", record[:product_id]).first
|
|
|
+ od = Order.where("id = ?",record[:product_id]).first
|
|
|
+ od = Order.where("id = ?", record[:product_id]).first
|
|
|
+ od = Order.where("id = ?", record[:product_id]).first
|
|
|
+ end
|
|
|
def import_orders
|
|
|
# 获取商品信息
|
|
|
pd = Product.where("id = ?", self.product_id).first
|