本文整理汇总了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();