Changeset 21256 for branches/version-2_11-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php
- Timestamp:
- 2011/09/25 13:15:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php
r20970 r21256 125 125 126 126 /** 127 * 商品取得 127 128 * 128 * 商品取得 129 * @param array $arrProduct_id 130 * @param SC_Product $objProduct 131 */ 132 function getProductList($arrProduct_id,&$objProduct){ 133 $where = ""; 134 if (is_array($arrProduct_id) && !empty($arrProduct_id)) { 135 $where = 'product_id IN (' . implode(',', $arrProduct_id) . ')'; 136 } else { 137 // 一致させない 138 $where = '0<>0'; 139 } 129 * @param array $arrProductId 130 * @param SC_Product $objProduct 131 */ 132 function getProductList($arrProductId, &$objProduct){ 140 133 $objQuery =& SC_Query_Ex::getSingletonInstance(); 141 $objQuery->setWhere($where); 142 return $objProduct->lists($objQuery, $arrProduct_id); 134 135 // 表示順序 136 $order = "update_date DESC, product_id DESC"; 137 $objQuery->setOrder($order); 138 139 return $objProduct->getListByProductIds($objQuery, $arrProductId); 143 140 } 144 141
Note: See TracChangeset
for help on using the changeset viewer.