当前位置: 首页>>代码示例>>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;未经允许,请勿转载。