Changeset 21409 for branches/version-2_11-dev/data/class/SC_Product.php
- Timestamp:
- 2012/01/17 16:26:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/SC_Product.php
r21405 r21409 165 165 ,update_date 166 166 __EOS__; 167 $res = $objQuery->select($col, $this->alldtlSQL()); 167 $where = 'dtb_products_class.del_flg = 0'; 168 $res = $objQuery->select($col, $this->alldtlSQL($where)); 168 169 return $res; 169 170 } … … 221 222 function getDetail($productId) { 222 223 $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"), 224 225 "product_id = ?", 225 226 array($productId, $productId)); … … 688 689 $where_clause = ''; 689 690 if (!SC_Utils_Ex::isBlank($where_products_class)) { 690 $where_ products_class = 'AND (' . $where_products_class . ')';691 $where_clause = 'WHERE ' . $where_products_class; 691 692 } 692 693 /* … … 773 774 COUNT(*) as class_count 774 775 FROM dtb_products_class 775 WHERE del_flg = 0 $where_products_class776 $where_clause 776 777 GROUP BY product_id 777 778 ) AS T4
Note: See TracChangeset
for help on using the changeset viewer.
