Sfoglia il codice sorgente

增加订单导入功能

abiao 4 anni fa
parent
commit
2cd7055889
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      app/models/order_detail.rb

+ 6 - 1
app/models/order_detail.rb

@@ -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