Ignore:
Timestamp:
2007/03/08 09:33:33 (20 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/data/class/SC_CustomerList.php

    r224 r11577  
    167167        if ( $mode == 'magazine' ){ 
    168168            if ( strlen($this->arrSql['htmlmail']) > 0 ) { 
    169                 $this->setWhere( " mail_flag = ? "); 
     169                $this->setWhere( " mailmaga_flg = ? "); 
    170170                $this->arrVal[] = $this->arrSql['htmlmail']; 
    171171            } else { 
    172                 $this->setWhere( " (mail_flag = 1 or mail_flag = 2) "); 
     172                $this->setWhere( " (mailmaga_flg = 1 or mailmaga_flg = 2) "); 
    173173            } 
    174174        } 
    … …  
    295295                dtb_customer.tel03, 
    296296                dtb_customer.pref,  
    297                 dtb_customer_mail.mail_flag  
     297                dtb_customer.mailmaga_flg  
    298298            FROM  
    299                 dtb_customer_mail LEFT OUTER JOIN dtb_customer USING(email)"; 
     299                dtb_customer"; 
    300300        return $this->getSql(0);     
    301301    } 
    … …  
    307307    //¹ØÆþ¾¦ÉÊ¥³¡¼¥É¸¡º÷ÍÑSQL 
    308308    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_code  
     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.mailmaga_flg, B.order_email, B.order_id, C.product_code  
    310310                        FROM (dtb_customer LEFT OUTER JOIN dtb_customer_mail USING (email)) AS A LEFT OUTER JOIN dtb_order AS B ON  
    311311                        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.