Changeset 21328 for branches/version-2_11-dev/data/class/SC_Product.php
- Timestamp:
- 2011/11/11 00:18:04 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/SC_Product.php
r21325 r21328 165 165 ,update_date 166 166 __EOS__; 167 $where = 'dtb_products_class.del_flg = 0'; 168 $res = $objQuery->select($col, $this->alldtlSQL($where)); 167 $res = $objQuery->select($col, $this->alldtlSQL()); 169 168 return $res; 170 169 } … … 204 203 if (strlen($objQuery->order) === 0) { 205 204 $arrTmp = array(); 206 foreach($arrProductId as $product_id) {205 foreach($arrProductId as $product_id) { 207 206 $arrTmp[$product_id] = $arrProducts[$product_id]; 208 207 } … … 222 221 function getDetail($productId) { 223 222 $objQuery =& SC_Query_Ex::getSingletonInstance(); 224 $result = $objQuery->select("*", $this->alldtlSQL( "product_id = ? AND del_flg = 0"),223 $result = $objQuery->select("*", $this->alldtlSQL('product_id = ?'), 225 224 "product_id = ?", 226 225 array($productId, $productId)); … … 689 688 $where_clause = ''; 690 689 if (!SC_Utils_Ex::isBlank($where_products_class)) { 691 $where_ clause = 'WHERE ' . $where_products_class;690 $where_products_class = 'AND (' . $where_products_class . ')'; 692 691 } 693 692 /* … … 774 773 COUNT(*) as class_count 775 774 FROM dtb_products_class 776 $where_clause775 WHERE del_flg = 0 $where_products_class 777 776 GROUP BY product_id 778 777 ) AS T4
Note: See TracChangeset
for help on using the changeset viewer.
