From f580801657ee57e167e0b1869a151de5d763128d Mon Sep 17 00:00:00 2001 From: lyt Date: Mon, 4 Jun 2018 10:22:58 +0800 Subject: [PATCH] =?UTF-8?q?trippest=20=E5=A2=9E=E5=8A=A0<=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E6=94=AF=E5=87=BA>,<=E5=85=B6=E4=BB=96=E6=94=B6?= =?UTF-8?q?=E5=85=A5>;=20todo:=20=E4=B9=8B=E5=89=8D=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E7=9A=84=E8=AE=A2=E5=8D=95=E9=9C=80=E8=A6=81=E8=A1=A5=E5=85=A8?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controllers/TulanduoApi.php | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php b/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php index 916796fb..849ab040 100644 --- a/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php +++ b/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php @@ -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);