當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CommonModel::getExpressRemark方法代碼示例

本文整理匯總了PHP中CommonModel::getExpressRemark方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonModel::getExpressRemark方法的具體用法?PHP CommonModel::getExpressRemark怎麽用?PHP CommonModel::getExpressRemark使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CommonModel的用法示例。


在下文中一共展示了CommonModel::getExpressRemark方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getOrderInfoByIdList

 public function getOrderInfoByIdList($idlist, $where = '')
 {
     $str = implode(',', $idlist);
     $sql = "\n                select so.id, so.platformUsername,so.accountId, so.zipCode, so.username, so.countryName, so.countrySn, so.state, so.city, so.street, so.address2, so.address3, so.landline, so.phone\n                ,so.createdTime, sor.recordNumber,sor.originOrderId from wh_shipping_order as so join wh_shipping_order_relation as sor on so.id=sor.shipOrderId  where 1 and so.id in ({$str}) \n                group by so.id {$where}\n        ";
     $orderlist = array();
     $q_order = $this->dbconn->query($sql);
     $orderlist = $this->dbconn->fetch_array_all($q_order);
     $total = 0;
     foreach ($orderlist as &$list) {
         $list['countryZh'] = CommonModel::getCountryNameCn($list['countryName']);
         $remarks = CommonModel::getExpressRemark($list['id']);
         //得到快遞備注
         $accountId = CommonModel::getAccountNameById($list['accountId']);
         //店鋪賬號
         $list['appname'] = $accountId['account'];
         //賬號昵稱
         if (!empty($remarks)) {
             foreach ($remarks as $remark) {
                 $total += $remark['amount'] * $remark['price'];
             }
         }
         $list['remarkTotal'] = $total;
         $list['remark'] = $remarks;
     }
     return $orderlist;
 }
開發者ID:ohjack,項目名稱:newErp,代碼行數:26,代碼來源:packingOrder.model.php

示例2: view_getExpressRemark

 public function view_getExpressRemark()
 {
     $id = isset($_GET['id']) ? $_GET['id'] : '';
     if (empty($id)) {
         return false;
     }
     $data = CommonModel::getExpressRemark($id);
     if (empty($data)) {
         echo '查詢不到數據!';
         exit;
     }
     $total = 0;
     foreach ($data as $k => $v) {
         $total += $v['price'] * $v['amount'];
         $type = $v['type'];
     }
     $this->smarty->assign('data', $data);
     $this->smarty->assign('total', $total);
     $this->smarty->assign('type', $type);
     $this->smarty->display('expressRemark.htm');
 }
開發者ID:ohjack,項目名稱:newErp,代碼行數:21,代碼來源:dispatchBillQuery.view.php

示例3: count

 $text .= '|' . $order['zipCode'] . $lt;
 $text .= '|' . $order['countryName'] . $lt;
 /*
 	if(empty($order['ebay_couny'])){
 		$country_name = $order['countryName'];
 		$c_sql   = "select * from ebay_countrys where countryen='{$country_name}'";
 		$c_sql	 = $dbcon->execute($c_sql);
 		$country = $dbcon->fetch_one($c_sql);
 		$text .= '|'.$country['countrysn'].$lt;
 	}else{
 		$text .= '|'.$order['ebay_couny'].$lt;
 	}*/
 $text .= '|' . $order['countrySn'] . $lt;
 $text .= !empty($order['landline']) ? '|' . $order['landline'] . $lt : '|' . $order['phone'] . $lt;
 $text .= '|' . $order['recordNumber'] . $lt;
 $order_details = CommonModel::getExpressRemark($order['id']);
 $count = count($order_details);
 if (!empty($order_details)) {
     foreach ($order_details as $key => $order_detail) {
         $text .= '|' . str_replace('´', '\'', stripslashes($order_detail['description'])) . $lt;
         $price = $order_detail['price'] * $order_detail['amount'];
         $all_amount += $order_detail['amount'];
         //總申數量
         $all_price += $price;
         //總申報價
     }
 }
 if ($count < 3) {
     for ($i = 0; $i < 3 - $count; $i++) {
         $text .= '|' . $lt;
     }
開發者ID:ohjack,項目名稱:newErp,代碼行數:31,代碼來源:labelto2.php


注:本文中的CommonModel::getExpressRemark方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。