|
|
|
|
@ -155,7 +155,7 @@ class TulanduoApi extends CI_Controller
|
|
|
|
|
if ($this->Orders_model->BIZ_COLI_SN === null && in_array($vo['agcName'], array("D目的地桂林组"))) {
|
|
|
|
|
$real_groupCode = $this->analysis_groupCode($vo['agcOrderNo']);
|
|
|
|
|
// set BIZ_COLI_SN, GRI_SN at Orders_model
|
|
|
|
|
$this->Orders_model->get_SN_by_groupCode($real_groupCode, mb_substr($vo["agcName"] . $vo['agcOrderNo'], 0, 19));
|
|
|
|
|
$this->Orders_model->get_SN_by_groupCode($real_groupCode, $real_groupCode);
|
|
|
|
|
}
|
|
|
|
|
/** insert HT */
|
|
|
|
|
if ($this->Orders_model->BIZ_COLI_SN === null) {
|
|
|
|
|
@ -166,9 +166,9 @@ class TulanduoApi extends CI_Controller
|
|
|
|
|
$travelDate = new DateTime($vo['travelDate']);
|
|
|
|
|
$leaveDate = new DateTime($vo['leaveDate']);
|
|
|
|
|
$date_diff = $travelDate->diff($leaveDate);
|
|
|
|
|
$this->Orders_model->GRI_No = mb_substr($vo['agcOrderNo'], 0, 19);
|
|
|
|
|
$this->Orders_model->GRI_No = mb_substr($vo['agcOrderNo'], 0, 49);
|
|
|
|
|
$this->Orders_model->GRI_OrderType = 227002; // 商务
|
|
|
|
|
$this->Orders_model->GRI_Name = mb_substr($vo["agcName"] . $vo['agcOrderNo'], 0, 19);
|
|
|
|
|
$this->Orders_model->GRI_Name = mb_substr($vo["agcName"] . $vo['agcOrderNo'], 0, 49);
|
|
|
|
|
$this->Orders_model->GRI_PersonNum = $vo['adultNum']+$vo['childNum'];
|
|
|
|
|
$this->Orders_model->GRI_Days = intval($date_diff->format('%R%a')+1);
|
|
|
|
|
$this->Orders_model->GRI_IsCancel = 0;
|
|
|
|
|
@ -222,7 +222,7 @@ class TulanduoApi extends CI_Controller
|
|
|
|
|
$this->Orders_model->GCI_groupType = $vo['orderType'];
|
|
|
|
|
$this->Orders_model->GCI_travelDate = $vo['travelDate'];
|
|
|
|
|
$this->Orders_model->GCI_leaveDate = $vo['leaveDate'];
|
|
|
|
|
$this->Orders_model->GCI_createTime = $vo['orderDate'];
|
|
|
|
|
$this->Orders_model->GCI_createTime = date('Y-m-d H:i:s');
|
|
|
|
|
$this->Orders_model->biz_groupcombineinfo_save();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -308,10 +308,11 @@ class TulanduoApi extends CI_Controller
|
|
|
|
|
$this->Order_update->gci_where_update = " GCI_SN=" . $order->GCI_SN;
|
|
|
|
|
$vei_SN = $this->city_info[$detail_jsonResp->orderDetail->operationDep]['PlanVEI_SN'] ? $this->city_info[$detail_jsonResp->orderDetail->operationDep]['PlanVEI_SN'] : 1343;
|
|
|
|
|
$gci_update_column = array(
|
|
|
|
|
"GCI_combineNo" => $detail_jsonResp->orderDetail->groupOrderNo
|
|
|
|
|
"GCI_combineNo" => isset($detail_jsonResp->orderDetail->groupOrderNo) ? $detail_jsonResp->orderDetail->groupOrderNo : null
|
|
|
|
|
,"GCI_VEI_SN" => $vei_SN
|
|
|
|
|
,"GCI_travelDate" => $detail_jsonResp->orderDetail->travelDate
|
|
|
|
|
,"GCI_leaveDate" => $detail_jsonResp->orderDetail->leaveDate
|
|
|
|
|
,"GCI_createTime" => date('Y-m-d H:i:s')
|
|
|
|
|
);
|
|
|
|
|
$this->Order_update->biz_groupcombineinfo_update($gci_update_column);
|
|
|
|
|
/** INSERT */
|
|
|
|
|
|