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


PHP OmAvailableModel::addTNameRow1方法代碼示例

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


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

示例1: implode

 $relation_set = "set " . implode(",", $insert_relation_arr);
 $relationId = OmAvailableModel::addTNameRow($relation_tname, $relation_set);
 if (!$relationId) {
     Log::write("INSERT INTO " . $relation_tname . $relation_set, Log::ERR);
     OmAvailableModel::rollback();
     $sku_flag = false;
 }
 if ($sku_flag) {
     if (!empty($msg_array['tracknumbers'])) {
         $insert_tracknumber_arr = array();
         $insert_tracknumber_arr[] = "tracknumber = '{$msg_array['tracknumbers']['tracknumber']}'";
         $insert_tracknumber_arr[] = "shipOrderId = '{$shipOrderId}'";
         $insert_tracknumber_arr[] = "createdTime = '{$mctime}'";
         $tracknumber_tname = "wh_order_tracknumber";
         $tracknumber_set = "set " . implode(",", $insert_tracknumber_arr);
         $tracknumberId = OmAvailableModel::addTNameRow1($tracknumber_tname, $tracknumber_set);
         if (!$tracknumberId) {
             Log::write("INSERT INTO " . $tracknumber_tname . $tracknumber_set, Log::ERR);
             OmAvailableModel::rollback();
             $sku_flag = false;
         }
     }
     if ($sku_flag) {
         if (!empty($msg_array['notes'])) {
             $insert_notes_arr = array();
             $insert_notes_arr[] = "shipOrderId = '{$shipOrderId}'";
             $content = mysql_real_escape_string($msg_array['notes'][0]['content']);
             $insert_notes_arr[] = "content = '{$content}'";
             $insert_notes_arr[] = "userId = '{$msg_array['notes'][0]['userId']}'";
             $insert_notes_arr[] = "createdTime = '{$msg_array['notes'][0]['createdTime']}'";
             $insert_notes_arr[] = "storeId = '{$msg_array['notes'][0]['storeId']}'";
開發者ID:ohjack,項目名稱:newErp,代碼行數:31,代碼來源:wh_getOrderInfo_subscribe.php


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