- Timestamp:
- 2012/01/17 16:32:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/SC_CustomerList.php
r21407 r21410 302 302 } 303 303 304 // カテゴリ を選択している場合のみ絞込検索を行う304 // カテゴリーを選択している場合のみ絞込検索を行う 305 305 if (!isset($this->arrSql['search_category_id'])) $this->arrSql['search_category_id'] = ""; 306 306 if ( strlen($this->arrSql['search_category_id']) > 0){ 307 // カテゴリ で絞込検索を行うSQL文生成307 // カテゴリーで絞込検索を行うSQL文生成 308 308 list($tmp_where, $tmp_arrval) = $objDb->sfGetCatWhere($this->arrSql['search_category_id']); 309 309 310 // カテゴリ で絞込みが可能の場合310 // カテゴリーで絞込みが可能の場合 311 311 if($tmp_where != "") { 312 312 $this->setWhere( " customer_id IN (SELECT distinct customer_id FROM dtb_order WHERE order_id IN (SELECT distinct order_id FROM dtb_order_detail WHERE product_id IN (SELECT product_id FROM dtb_product_categories WHERE ".$tmp_where." ))) ");
Note: See TracChangeset
for help on using the changeset viewer.