Changeset 17178 for branches/sol/dev02/data/class/util/SC_Utils.php
- Timestamp:
- 2008/03/24 00:28:34 (18 years ago)
- File:
-
- 1 edited
-
branches/sol/dev02/data/class/util/SC_Utils.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/sol/dev02/data/class/util/SC_Utils.php
r17121 r17178 763 763 $where = "product_id = ?"; 764 764 $objQuery->delete("dtb_products_class", $where, array($product_id)); 765 765 // 在庫テーブルの削除 766 $objQuery->delete("dtb_stock", $where, array($product_id)); 767 766 768 // 配列の添字を定義 767 769 $checkArray = array("product_code", "stock", "stock_unlimited", "price01", "price02"); … … 782 784 $sqlval['creator_id'] = '0'; 783 785 } 784 786 785 787 // INSERTの実行 786 788 $objQuery->insert("dtb_products_class", $sqlval); 789 790 791 // 在庫テーブルを作成する 792 $where = ''; 793 $stock_where = array(); 794 $stock_sqlval = array(); 795 $where = 'product_id = ? AND classcategory_id1 = 0 AND classcategory_id2 = 0'; 796 $tmp_product_class_id = $objQuery->select('product_class_id', 'dtb_products_class', $where, array($product_id)); 797 798 $stock_sqlval['product_class_id'] = $tmp_product_class_id[0]['product_class_id']; 799 $stock_sqlval['product_id'] = $product_id; 800 $stock_sqlval['stock'] = $arrList["stock"]; 801 $objQuery->insert("dtb_stock", $stock_sqlval); 787 802 } 788 803 }
Note: See TracChangeset
for help on using the changeset viewer.
