trippest 增加<其他支出>,<其他收入>; todo: 之前同步的订单需要补全数据

feature/pay
lyt 8 years ago
parent ae6069dba1
commit f580801657

@ -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);

Loading…
Cancel
Save