Changeset 11577 for branches/dev/data/class/SC_CustomerList.php
- Timestamp:
- 2007/03/08 09:33:33 (20 years ago)
- File:
-
- 1 edited
-
branches/dev/data/class/SC_CustomerList.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/data/class/SC_CustomerList.php
r224 r11577 167 167 if ( $mode == 'magazine' ){ 168 168 if ( strlen($this->arrSql['htmlmail']) > 0 ) { 169 $this->setWhere( " mail _flag = ? ");169 $this->setWhere( " mailmaga_flg = ? "); 170 170 $this->arrVal[] = $this->arrSql['htmlmail']; 171 171 } else { 172 $this->setWhere( " (mail _flag = 1 or mail_flag = 2) ");172 $this->setWhere( " (mailmaga_flg = 1 or mailmaga_flg = 2) "); 173 173 } 174 174 } … … 295 295 dtb_customer.tel03, 296 296 dtb_customer.pref, 297 dtb_customer _mail.mail_flag297 dtb_customer.mailmaga_flg 298 298 FROM 299 dtb_customer _mail LEFT OUTER JOIN dtb_customer USING(email)";299 dtb_customer"; 300 300 return $this->getSql(0); 301 301 } … … 307 307 //¹ØÆþ¾¦ÉÊ¥³¡¼¥É¸¡º÷ÍÑSQL 308 308 function getBuyList(){ 309 $this->select = "SELECT A.customer_id, A.name01, A.name02, A.kana01, A.kana02, A.sex, A.email, A.tel01, A.tel02, A.tel03, A.pref, A.mail _flag, B.order_email, B.order_id, C.product_code309 $this->select = "SELECT A.customer_id, A.name01, A.name02, A.kana01, A.kana02, A.sex, A.email, A.tel01, A.tel02, A.tel03, A.pref, A.mailmaga_flg, B.order_email, B.order_id, C.product_code 310 310 FROM (dtb_customer LEFT OUTER JOIN dtb_customer_mail USING (email)) AS A LEFT OUTER JOIN dtb_order AS B ON 311 311 A.email=B.order_email LEFT OUTER JOIN dtb_order_detail AS C ON B.order_id = C.order_id";
Note: See TracChangeset
for help on using the changeset viewer.
