|
|
|
|
@ -531,6 +531,48 @@ class TulanduoApi extends CI_Controller
|
|
|
|
|
$this->Orders_model->biz_groupcombineoperationdetail_save();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 其他支出
|
|
|
|
|
if (isset($detail_jsonResp->orderDetail->operationDetails->otherCosts) ) {
|
|
|
|
|
foreach ($detail_jsonResp->orderDetail->operationDetails->otherCosts as $voc) {
|
|
|
|
|
$this->Orders_model->GCOD_GCI_combineNo = $detail_jsonResp->orderDetail->groupOrderNo ;
|
|
|
|
|
$this->Orders_model->GCOD_VEI_SN = $vei_SN;
|
|
|
|
|
$this->Orders_model->GCOD_operationType = "otherCosts";
|
|
|
|
|
$this->Orders_model->GCOD_subType = $voc->type;
|
|
|
|
|
$this->Orders_model->GCOD_title = "";
|
|
|
|
|
$this->Orders_model->GCOD_dutyName = "";
|
|
|
|
|
$this->Orders_model->GCOD_dutyTel = "";
|
|
|
|
|
$this->Orders_model->GCOD_dutyPhoto = '';
|
|
|
|
|
$this->Orders_model->GCOD_startDate = "";
|
|
|
|
|
$this->Orders_model->GCOD_endDate = "";
|
|
|
|
|
$this->Orders_model->GCOD_sumMoney = $voc->sumMoney;
|
|
|
|
|
$this->Orders_model->GCOD_carLicense = "";
|
|
|
|
|
$this->Orders_model->GCOD_standard = "";
|
|
|
|
|
$this->Orders_model->GCOD_remark = $voc->remark;
|
|
|
|
|
$this->Orders_model->GCOD_useNum = $voc->useNum;
|
|
|
|
|
$this->Orders_model->biz_groupcombineoperationdetail_save();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 其他收入
|
|
|
|
|
if (isset($detail_jsonResp->orderDetail->operationDetails->otherReceives) ) {
|
|
|
|
|
foreach ($detail_jsonResp->orderDetail->operationDetails->otherReceives as $vor) {
|
|
|
|
|
$this->Orders_model->GCOD_GCI_combineNo = $detail_jsonResp->orderDetail->groupOrderNo ;
|
|
|
|
|
$this->Orders_model->GCOD_VEI_SN = $vei_SN;
|
|
|
|
|
$this->Orders_model->GCOD_operationType = "otherReceives";
|
|
|
|
|
$this->Orders_model->GCOD_subType = $vor->type;
|
|
|
|
|
$this->Orders_model->GCOD_title = "";
|
|
|
|
|
$this->Orders_model->GCOD_dutyName = "";
|
|
|
|
|
$this->Orders_model->GCOD_dutyTel = "";
|
|
|
|
|
$this->Orders_model->GCOD_dutyPhoto = '';
|
|
|
|
|
$this->Orders_model->GCOD_startDate = "";
|
|
|
|
|
$this->Orders_model->GCOD_endDate = "";
|
|
|
|
|
$this->Orders_model->GCOD_sumMoney = $vor->sumMoney;
|
|
|
|
|
$this->Orders_model->GCOD_carLicense = "";
|
|
|
|
|
$this->Orders_model->GCOD_standard = "";
|
|
|
|
|
$this->Orders_model->GCOD_remark = $vor->remark;
|
|
|
|
|
$this->Orders_model->GCOD_useNum = $vor->useNum;
|
|
|
|
|
$this->Orders_model->biz_groupcombineoperationdetail_save();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} // end foreach order
|
|
|
|
|
log_message('error',"Got order operations from TuLanDuo, count: " . count($cnt));
|
|
|
|
|
echo "Got order operations from TuLanDuo, count: " . count($cnt);
|
|
|
|
|
|