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


PHP OmAvailableModel::replaceTNameRow2arr方法代碼示例

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


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

示例1: array

        if (!empty($taker)) {
            echo "領取人 is {$taker}\n";
            $queryConditions = array('userName' => $taker);
            $queryConditions = json_encode($queryConditions);
            $userInfo = Auth::getApiGlobalUser($queryConditions);
            $userInfo = json_decode($userInfo, true);
            //print_r($userInfo);
            //echo "\n";
            $personId = $userInfo[0]['userId'];
            echo "領取人Id is '{$personId}'\n";
            $pcProductsArr['productsTakerId'] = $personId;
        }
        if (!empty($completer)) {
            echo "製作完成人 is {$completer}\n";
            $queryConditions = array('userName' => $completer);
            $queryConditions = json_encode($queryConditions);
            $userInfo = Auth::getApiGlobalUser($queryConditions);
            $userInfo = json_decode($userInfo, true);
            //print_r($userInfo);
            //echo "\n";
            $personId = $userInfo[0]['userId'];
            echo "製作完成人Id is '{$personId}'\n";
            $pcProductsArr['productsCompleterId'] = $personId;
        }
        $pcProductsArr['productsComfirmTime'] = $value['comfirmtime'];
        $pcProductsArr['productsTakeTime'] = $value['taketime'];
        $pcProductsArr['productsCompleteTime'] = $value['completetime'];
        $tName = 'pc_products';
        OmAvailableModel::replaceTNameRow2arr($tName, $pcProductsArr);
    }
}
開發者ID:ohjack,項目名稱:newErp,代碼行數:31,代碼來源:crontab_ebay_order_product_2_pc_products.php

示例2:

 //if($countIsExist == 0){
 //            $affectRow = OmAvailableModel::addTNameRow($tName, $set);
 //            echo "{$pcGoodsArr['sku']} insert success!\n";
 //        }
 //        else{
 //            if(!empty($pcGoodsArr['goodsCategory']) && !empty($pcGoodsArr['purchaseId'])){
 //                $set = "SET goodsCategory='{$pcGoodsArr['goodsCategory']}',purchaseId='{$pcGoodsArr['purchaseId']}',goodsStatus='{$pcGoodsArr['goodsStatus']}',isNew='{$pcGoodsArr['isNew']}'";
 //            	$where = "WHERE sku='{$pcGoodsArr['sku']}'";
 //            	OmAvailableModel::updateTNameRow($tName, $set, $where);
 //            	echo "{$pcGoodsArr['sku']} update category,purchaseId,goodsStatus  {$pcGoodsArr['goodsCategory']},{$pcGoodsArr['purchaseId']},{$pcGoodsArr['goodsStatus']} success!\n";
 //            }else{
 //                echo "{$pcGoodsArr['sku']} not update category,purchaseId,because its empty!\n";
 //            }
 //
 //        }
 OmAvailableModel::replaceTNameRow2arr($tName, $pcGoodsArr);
 //if($affectRow){
 $partnerId = $value['factory'] ? $value['factory'] : 0;
 $tName = 'pc_goods_partner_relation';
 $set = "SET sku='{$pcGoodsArr['sku']}',partnerId='{$partnerId}'";
 OmAvailableModel::addTNameRow($tName, $set);
 //插入sku,供應商關係表
 echo "{$pcGoodsArr['sku']} {$partnerId} insert relation success!\n";
 if (!empty($value['goods_hgbm'])) {
     //海關編碼不為空時,插入sku,海關編碼關係表
     $tName = 'pc_sku_hscode';
     $where = "WHERE sku='{$value['goods_sn']}' AND hsCode='{$value['goods_hgbm']}'";
     $countHscode = OmAvailableModel::getTNameCount($tName, $where);
     if ($countHscode) {
         echo "hscode {$value['goods_sn']} {$value['goods_hgbm']} had exist\n";
         //continue;
開發者ID:ohjack,項目名稱:newErp,代碼行數:31,代碼來源:crontab_ebay_goods_2_pc_goods2.php

示例3: array

    $ioStoreId = OmAvailableModel::replaceTNameRow2arr($tName, $iostoreArr);
    if (!$ioStoreId) {
        continue;
    }
    $ioStoreDetailList = UserCacheModel::getOpenSysApi('pc.erp.getEbayProductIostoreDetailCrontab', array('io_ordersn' => $value['io_ordersn']), 'gw88');
    //print_r($ioStoreDetailList);
    //        exit;
    $countStoreDetail = count($ioStoreDetailList);
    echo "{$value['io_ordersn']} 一共有 {$countStoreDetail} 條詳細記錄\n";
    foreach ($ioStoreDetailList as $valueDetail) {
        $iostoreDetailArr = array();
        $iostoreDetailArr['id'] = $valueDetail['id'];
        $iostoreDetailArr['iostoreId'] = $ioStoreId;
        $iostoreDetailArr['iostoreTypeId'] = $iostoreArr['iostoreTypeId'];
        $iostoreDetailArr['useTypeId'] = $iostoreArr['useTypeId'];
        $iostoreDetailArr['sku'] = $valueDetail['goods_sn'];
        if (intval($iostoreArr['addUserId']) > 0) {
            $iostoreDetailArr['addUserId'] = $iostoreArr['addUserId'];
            $iostoreDetailArr['addTime'] = $iostoreArr['createdTime'];
        }
        $iostoreDetailArr['iostoreStatus'] = 2;
        if (!empty($iostoreArr['isAudit'])) {
            $iostoreDetailArr['isAudit'] = $iostoreArr['isAudit'];
        }
        if (!empty($iostoreArr['isComfirm'])) {
            $iostoreDetailArr['isComfirm'] = $iostoreArr['isComfirm'];
        }
        $tName = 'pc_products_iostore_detail';
        OmAvailableModel::replaceTNameRow2arr($tName, $iostoreDetailArr);
    }
}
開發者ID:ohjack,項目名稱:newErp,代碼行數:31,代碼來源:crontab_ebay_product_iostore_2_pc_products_iostore.php

示例4: act_updateOmAccount

 function act_updateOmAccount()
 {
     require_once WEB_PATH . "api/include/functions.php";
     $paramArr = array('method' => 'order.erp.cronOmAccount', 'format' => 'json', 'v' => '1.0', 'username' => 'purchase', 'all' => "all");
     $result = callOpenSystem($paramArr, '88');
     $data = json_decode($result, true);
     if (is_array($data) && !empty($data)) {
         foreach ($data as $value) {
             OmAvailableModel::replaceTNameRow2arr('om_account', $value);
         }
         echo 'success';
     } else {
         echo 'false';
     }
     exit;
 }
開發者ID:ohjack,項目名稱:newErp,代碼行數:16,代碼來源:omAvailableApi.action.php

示例5: updateOmAccount

 /**
  * 同步舊係統的賬號表到新係統(按照 id replace),並也會replace舊係統的om_account表(oldErp)
  * @return array
  * @author zqt
  */
 public function updateOmAccount()
 {
     $conf = $this->getRequestConf(__FUNCTION__);
     if (empty($conf)) {
         return false;
     }
     $result = callOpenSystem($conf);
     $data = json_decode($result, true);
     if (is_array($data) && !empty($data)) {
         foreach ($data as $value) {
             OmAvailableModel::replaceTNameRow2arr('om_account', $value);
         }
         echo 'success';
     } else {
         echo 'false';
     }
     exit;
 }
開發者ID:ohjack,項目名稱:newErp,代碼行數:23,代碼來源:interfaceOldErp.model.php


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