本文整理匯總了PHP中commonModel::updateWarehouseInfo方法的典型用法代碼示例。如果您正苦於以下問題:PHP commonModel::updateWarehouseInfo方法的具體用法?PHP commonModel::updateWarehouseInfo怎麽用?PHP commonModel::updateWarehouseInfo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類commonModel
的用法示例。
在下文中一共展示了commonModel::updateWarehouseInfo方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: in
echo "\n=====同步的訂單{$orderid}狀態成功======\n";
}
$msg = CommonModel::updateWarehouseInfo($orderid, 2, $operateUserId, $operateTime, $actualWeight);
if ($msg) {
$where = ' WHERE id in (' . join(",", $orderids) . ') AND orderStatus= ' . C('STATESHIPPED') . ' AND orderType= ' . C('STATEHASSHIPPED_CONV') . ' AND is_delete = 0 ';
if (OrderindexModel::shiftOrderList($where)) {
echo "轉移成功\n";
} else {
echo "轉移失敗\n";
}
}
} else {
$where = " WHERE id in (" . join(',', $orderids) . ") AND orderStatus = " . C('STATESHIPPED');
$returnStatus0 = array('orderType' => C($orderStatus));
if (OrderindexModel::updateOrder($tableName, $returnStatus0, $where)) {
echo "\n=====同步的訂單{$orderid}狀態成功======\n";
}
$msg = commonModel::updateWarehouseInfo($orderid, C($orderStatus), $operateUserId, $operateTime);
if ($tracknumber) {
$updateArr = array('omOrderId' => $orderid, 'tracknumber' => $tracknumber, 'createdTime' => time());
$msg = OrderAddModel::insertOrderTrackRow($updateArr);
}
}
};
$channel->basic_consume($queue_name, '', false, true, false, false, $callback);
while (count($channel->callbacks)) {
$channel->wait();
}
$channel->close();
$connection->close();
//$dbConn->close();