Changeset 18007 for branches/version-2/data/class/SC_CustomerList.php
- Timestamp:
- 2009/05/15 16:30:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/class/SC_CustomerList.php
r17218 r18007 28 28 29 29 var $arrColumnCSV; 30 30 31 31 function SC_CustomerList($array, $mode = '') { 32 32 parent::SC_SelectSql($array); 33 33 34 34 $masterData = new SC_DB_MasterData_Ex(); 35 35 $arrMobileDomain = $masterData->getMasterData("mtb_mobile_domain"); 36 36 37 37 $objDb = new SC_Helper_DB_Ex(); 38 38 … … 46 46 if($mode == "customer") { 47 47 // 管理者ページ顧客検索の場合仮登録会員も検索 48 $this->setWhere( "(status = 1 OR status = 2) AND del_flg = 0 "); 48 //$this->setWhere( "(status = 1 OR status = 2) AND del_flg = 0 "); 49 $this->setWhere( " del_flg = 0 "); 49 50 // 登録日を示すカラム 50 51 $regdate_col = 'dtb_customer.update_date'; … … 164 165 // E-MAIL(mobile) 165 166 if (!isset($this->arrSql['email_mobile'])) $this->arrSql['email_mobile'] = ""; 166 167 167 168 if (strlen($this->arrSql['email_mobile']) > 0) { 168 169 //カンマ区切りで複数の条件指定可能に … … 196 197 // PCサイトメールが指定されている場合 197 198 if ( strlen($this->arrSql['mail_type']) > 0 && $this->arrSql['mail_type'] == 1) { 198 199 200 $this->setWhere(" dtb_customer.email NOT ILIKE '%$mobile_domain' "); 201 199 // 携帯ドメインを外す。 200 foreach($arrMobileDomain as $mobile_domain) { 201 $this->setWhere(" dtb_customer.email NOT ILIKE '%$mobile_domain' "); 202 } 202 203 // 携帯サイトメールが指定されている場合 203 204 } else if( strlen($this->arrSql['mail_type']) > 0 && $this->arrSql['mail_type'] == 2) { 204 205 $this->setWhere( " dtb_customer.email_mobile <> '' "); 205 206 } 206 207 } … … 344 345 } 345 346 347 //会員状態 348 if (!isset($this->arrSql['status'])) $this->arrSql['status'] = ""; 349 if ( is_array( $this->arrSql['status'] ) ){ 350 $arrStatusVal = $this->setItemTerm( $this->arrSql['status'] ,"status" ); 351 foreach ($arrStatusVal as $data) { 352 $this->arrVal[] = $data; 353 } 354 } 346 355 $this->setOrder( "customer_id DESC" ); 347 356 }
Note: See TracChangeset
for help on using the changeset viewer.