Changeset 18077 for branches/comu-ver2/data/class/helper/SC_Helper_DB.php
- Timestamp:
- 2009/06/09 20:53:56 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/helper/SC_Helper_DB.php
r18052 r18077 549 549 550 550 /** 551 * 顧客番号、利用ポイント、加算ポイントから最終ポイントを取得する. 552 * 553 * @param integer $customer_id 顧客番号 554 * @param integer $use_point 利用ポイント 555 * @param integer $add_point 加算ポイント 556 * @return array 最終ポイントの配列 557 */ 558 function sfGetCustomerPointFromCid($customer_id, $use_point, $add_point) { 559 $objQuery = new SC_Query(); 560 if (USE_POINT === true) { 561 $arrRet = $objQuery->select("point", "dtb_customer", "customer_id = ?", array($customer_id)); 562 $point = $arrRet[0]['point']; 563 $total_point = $arrRet[0]['point'] - $use_point + $add_point; 564 } else { 565 $total_point = 0; 566 $point = 0; 567 } 568 return array($point, $total_point); 569 } 570 /** 551 571 * カテゴリツリーの取得を行う. 552 572 *
Note: See TracChangeset
for help on using the changeset viewer.
