本文整理汇总了PHP中CommonModel::get_shipDetail方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonModel::get_shipDetail方法的具体用法?PHP CommonModel::get_shipDetail怎么用?PHP CommonModel::get_shipDetail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommonModel
的用法示例。
在下文中一共展示了CommonModel::get_shipDetail方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: act_abnormalInvoice
//.........这里部分代码省略.........
$pick_record = WhWavePickRecordModel::get_pickByIdSku($shipOrderId, $sku);
if ($pick_record) {
if ($pick_record[0]['skuAmount'] > $pick_record[0]['amount']) {
$shortage = true;
}
$amount_datail = $pick_record[0]['skuAmount'];
$sku_count = $pick_record[0]['amount'];
} else {
//如果分拣和分拣复核都没有数据的就跳过
if (strpos($err_str, $val) === false) {
self::$errMsg .= $val . '分拣和分拣复核都没有数据,';
$err_str .= $val . ':分拣和分拣复核都没有数据';
}
}
}
$arr_data[] = array('oldshipOrderId' => $shipOrderId, 'sku' => $sku, 'createdTime' => time(), 'skuAmount' => $amount_datail, 'amount' => $sku_count, 'userId' => $userId, 'combineSku' => $combineSku);
}
if ($shortage) {
$isShortage = 1;
} else {
$isShortage = 2;
}
foreach ($arr_data as $data_value) {
//传递到订单系统的
$data_api[$originOrderId][$isShortage][$data_value['sku']] = $data_value['skuAmount'];
//添加到拆分记录表的
$data[$shipOrderId][] = array('oldshipOrderId' => $data_value['oldshipOrderId'], 'sku' => $data_value['sku'], 'createdTime' => time(), 'skuAmount' => $data_value['skuAmount'], 'amount' => $data_value['amount'], 'userId' => $data_value['userId'], 'combineSku' => $data_value['combineSku'], 'isShortage' => $isShortage);
}
}
}
//以上是拆分发货单到拆分记录表的操作
//把需要拆分的数组传递到订单系统
WhBaseModel::begin();
$ipa_res = CommonModel::get_shipDetail($data_api);
/*
$ipa_res = array(
"status"=>true,
"data"=> array(
$originOrderId=>array(
'1'=>array(
'omOrderId'=>14478451,
'actualTotal'=>7.43,
'usefulChannelId'=>66,
'calcOrderShipping'=>2.39,
'calOrderWeight'=>0.192,
),
'2'=>array(
'omOrderId'=>15029562,
'actualTotal'=>22.29,
'usefulChannelId'=>66,
'calcOrderShipping'=>9.88,
'calOrderWeight'=>0.653
),
),
),
);
*/
// var_dump($ipa_res);
// print_r($data_api);
// print_r($data);
//exit();
//调用订单拆分接口成功
if ($ipa_res['status']) {
foreach ($data[$val] as $insert_list) {
//查询发货单拆分记录