Ignore:
Timestamp:
2012/01/17 16:26:02 (14 years ago)
Author:
Seasoft
Message:

2.12系へマイルストーン変更となったチケット分を差し戻し
r21329 #1548
r21328 #1545

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/SC_Product.php

    r21405 r21409  
    165165            ,update_date 
    166166__EOS__; 
    167         $res = $objQuery->select($col, $this->alldtlSQL()); 
     167        $where = 'dtb_products_class.del_flg = 0'; 
     168        $res = $objQuery->select($col, $this->alldtlSQL($where)); 
    168169        return $res; 
    169170    } 
     
    221222    function getDetail($productId) { 
    222223        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    223         $result = $objQuery->select("*", $this->alldtlSQL('product_id = ?'), 
     224        $result = $objQuery->select("*", $this->alldtlSQL("product_id = ? AND del_flg = 0"), 
    224225                                    "product_id = ?", 
    225226                                    array($productId, $productId)); 
     
    688689        $where_clause = ''; 
    689690        if (!SC_Utils_Ex::isBlank($where_products_class)) { 
    690             $where_products_class = 'AND (' . $where_products_class . ')'; 
     691            $where_clause = 'WHERE ' . $where_products_class; 
    691692        } 
    692693        /* 
     
    773774                              COUNT(*) as class_count 
    774775                        FROM dtb_products_class 
    775                         WHERE del_flg = 0 $where_products_class 
     776                        $where_clause 
    776777                        GROUP BY product_id 
    777778                    ) AS T4 
Note: See TracChangeset for help on using the changeset viewer.