- Timestamp:
- 2008/08/21 00:02:54 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/products/LC_Page_Admin_Products.php
r17548 r17549 273 273 case 'delete_all': 274 274 // 検索結果をすべて削除 275 $where = "product_id IN (SELECT product_id FROM vw_products_allclass AS allclsWHERE $where)";275 $where = "product_id IN (SELECT product_id FROM vw_products_allclass_detail AS alldtl WHERE $where)"; 276 276 $sqlval['del_flg'] = 1; 277 277 $objQuery->update("dtb_products", $sqlval, $where, $arrval); 278 $objQuery->delete("dtb_customer_favorite_products", $where );278 $objQuery->delete("dtb_customer_favorite_products", $where, $arrval); 279 279 break; 280 280 default: 281 281 // 読み込む列とテーブルの指定 282 // XXX DISTINCT は応急処置。update_date は DISTINCT のため。 283 $col = "DISTINCT product_id, name, main_list_image, status, product_code_min, product_code_max, price02_min, price02_max, stock_min, stock_max, stock_unlimited_min, stock_unlimited_max, update_date"; 284 $from = "vw_products_allclass AS allcls "; 282 $col = "product_id, name, main_list_image, status, product_code_min, product_code_max, price02_min, price02_max, stock_min, stock_max, stock_unlimited_min, stock_unlimited_max, update_date"; 283 $from = "vw_products_allclass_detail AS alldtl "; 285 284 286 285 // 行数の取得
Note: See TracChangeset
for help on using the changeset viewer.