|
|
<?php
|
|
|
|
|
|
|
|
|
class TuLanDuo_addOrUpdateRouteOrderContentBuilder extends CI_Model
|
|
|
{
|
|
|
|
|
|
private $userId;
|
|
|
private $Key;
|
|
|
|
|
|
private $bizContentarr = array();
|
|
|
private $bizContent = NULL;
|
|
|
|
|
|
private $orderData=array();
|
|
|
private $orderId; //”Integer”//订单ID,不为空代表修改
|
|
|
private $modifyLogInfo; //”String”//修改的日志记录信息.如果是修改订单的状态,这里传输修改简报
|
|
|
private $orderType; //”Integer” //订单类型 1=独立成团,2=散客团
|
|
|
private $routeName; //”String”//行程名称
|
|
|
private $routeType; //”String”//线路类型
|
|
|
private $agcOrderNo; //”String”//组团社团号,团号格式 yyyy-mm-dd-cc(**)后面中括号号的对应团号的其他表达信息
|
|
|
private $adultNum; //”Integer”//大人数量
|
|
|
private $childNum; //”Integer”//小孩数量
|
|
|
private $guiderNum; //”Integer”//领队数量
|
|
|
private $guiderInfo; //”String”//领队信息
|
|
|
private $toTraffic; //”String”//抵达交通
|
|
|
private $backTraffic; //”String”//返回交通
|
|
|
private $roomStandard; //”String”//用房标准
|
|
|
private $orderRemark; //”String”//订单备注
|
|
|
private $routeStandard; //”String”//行程接待标准
|
|
|
private $destination; //”目的地名称”//目的地城市名称
|
|
|
private $travelDate; //”String”//出游时间yyyy-mm-dd
|
|
|
private $leavedDate; //”String”//离团时间 yyyy-mm-dd
|
|
|
|
|
|
// private $orderData['travelFees']=array(); //团款明细
|
|
|
// [{
|
|
|
// type:”String”//团款类型
|
|
|
// money:”Double”//单价
|
|
|
// num:”Double”//数量
|
|
|
// unit:”Double”//单位
|
|
|
// sumMoney:”Double//总金额”
|
|
|
// remark:”String”//备注
|
|
|
// }]
|
|
|
// private $orderData['replaceCollections']=array(); //代收明细
|
|
|
// [{
|
|
|
// type:“String”//代收类型
|
|
|
// money:”Double”//金额
|
|
|
// remark:”String”//备注
|
|
|
// }]
|
|
|
// private $orderData['replacePays']=array(); //代付明细
|
|
|
// [{
|
|
|
// type:“String”//代付类型
|
|
|
// money:”Double”//金额
|
|
|
// remark:”String”//备注
|
|
|
// }]
|
|
|
// private $orderData['scheduleDetails']=array(); //行程详细,数组类型,按照第一天往后有序排列
|
|
|
// [{
|
|
|
// title:”String”//行程标题
|
|
|
// content:”String”//行程内容
|
|
|
// traffic:”String”//交通号
|
|
|
// accommodation:”String”//住宿
|
|
|
// breakFirst:”Integer”//是否包含早餐 【1=包含 0=不含】
|
|
|
// dinner:”Integer”//是否包含中餐 【1=包含 0=不含】
|
|
|
// lunch:”Integer”//是否包含晚餐 【1=包含 0=不含】
|
|
|
// }]
|
|
|
// private $orderData['customers']=array(); //游客信息
|
|
|
// [{
|
|
|
// name:”String”//名字
|
|
|
// peopleType:”String”//类型 【成人,小孩,婴儿,老人,学生…】
|
|
|
// document Type:”String”//证件类型【护照,身份证,户口,驾驶证….】
|
|
|
// documentNo:”String”//证件号
|
|
|
// phoneNo:”String”//手机号
|
|
|
// otherInfo:”String”//其他信息
|
|
|
// }]
|
|
|
|
|
|
function __construct() {
|
|
|
parent::__construct();
|
|
|
$this->orderData['travelFees'] = array(); //团款明细
|
|
|
$this->orderData['replaceCollections'] = array(); //代收明细
|
|
|
$this->orderData['replacePays'] = array(); //代付明细
|
|
|
$this->orderData['scheduleDetails'] = array(); //行程详细,数组类型,按照第一天往后有序排列
|
|
|
$this->orderData['customers'] = array(); //游客信息
|
|
|
}
|
|
|
|
|
|
public function getBizContent()
|
|
|
{
|
|
|
if(!empty($this->orderData)){
|
|
|
$this->bizContentarr['orderData'] = $this->orderData;
|
|
|
$this->bizContent = json_encode($this->bizContentarr);
|
|
|
}
|
|
|
return $this->bizContent;
|
|
|
}
|
|
|
|
|
|
public function setUserId($userId)
|
|
|
{
|
|
|
$this->userId = $userId;
|
|
|
$this->bizContentarr['userId'] = $userId;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setKey($Key)
|
|
|
{
|
|
|
$this->key = $Key;
|
|
|
$this->bizContentarr['key'] = $Key;
|
|
|
return $this;
|
|
|
}
|
|
|
/** 订单基本信息 */
|
|
|
public function setOrderId($orderId)
|
|
|
{
|
|
|
$this->orderData['orderId'] = $orderId;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setModifyLogInfo($modifyLogInfo)
|
|
|
{
|
|
|
$this->orderData['modifyLogInfo'] = $modifyLogInfo;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setOrderType($orderType)
|
|
|
{
|
|
|
$this->orderData['orderType'] = $orderType;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setRouteName($routeName)
|
|
|
{
|
|
|
$this->orderData['routeName'] = $routeName;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setRouteType($routeType)
|
|
|
{
|
|
|
$this->orderData['routeType'] = $routeType;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setAgcOrderNo($agcOrderNo)
|
|
|
{
|
|
|
$this->orderData['agcOrderNo'] = $agcOrderNo;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setAdultNum($adultNum)
|
|
|
{
|
|
|
$this->orderData['adultNum'] = $adultNum;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setChildNum($childNum)
|
|
|
{
|
|
|
$this->orderData['childNum'] = $childNum;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setGuiderNum($guiderNum)
|
|
|
{
|
|
|
$this->orderData['guiderNum'] = $guiderNum;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setGuiderInfo($guiderInfo)
|
|
|
{
|
|
|
$this->orderData['guiderInfo'] = $guiderInfo;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setToTraffic($toTraffic)
|
|
|
{
|
|
|
$this->orderData['toTraffic'] = $toTraffic;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setBackTraffic($backTraffic)
|
|
|
{
|
|
|
$this->orderData['backTraffic'] = $backTraffic;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setRoomStandard($roomStandard)
|
|
|
{
|
|
|
$this->orderData['roomStandard'] = $roomStandard;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setOrderRemark($orderRemark)
|
|
|
{
|
|
|
$this->orderData['orderRemark'] = $orderRemark;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setRouteStandard($routeStandard)
|
|
|
{
|
|
|
$this->orderData['routeStandard'] = $routeStandard;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setDestination($destination)
|
|
|
{
|
|
|
$this->orderData['destination'] = $destination;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setTravelDate($travelDate)
|
|
|
{
|
|
|
$this->orderData['travelDate'] = $travelDate;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setLeavedDate($leavedDate)
|
|
|
{
|
|
|
$this->orderData['leavedDate'] = $leavedDate;
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
/** 团款数组 */
|
|
|
public function setTravelFeesType($index, $type)
|
|
|
{
|
|
|
$this->orderData['travelFees'][$index]['type'] = $type;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setTravelFeesMoney($index, $money)
|
|
|
{
|
|
|
$this->orderData['travelFees'][$index]['money'] = $money;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setTravelFeesNum($index, $num)
|
|
|
{
|
|
|
$this->orderData['travelFees'][$index]['num'] = $num;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setTravelFeesUnit($index, $unit)
|
|
|
{
|
|
|
$this->orderData['travelFees'][$index]['unit'] = $unit;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setTravelFeesSumMoney($index, $sumMoney)
|
|
|
{
|
|
|
$this->orderData['travelFees'][$index]['sumMoney'] = $sumMoney;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setTravelFeesRemark($index, $remark)
|
|
|
{
|
|
|
$this->orderData['travelFees'][$index]['remark'] = $remark;
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
/** 代付数组 */
|
|
|
public function setReplacePaysType($index, $type)
|
|
|
{
|
|
|
$this->orderData['replacePays'][$index]['type'] = $type;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setReplacePaysMoney($index, $money)
|
|
|
{
|
|
|
$this->orderData['replacePays'][$index]['money'] = $money;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setReplacePaysRemark($index, $remark)
|
|
|
{
|
|
|
$this->orderData['replacePays'][$index]['remark'] = $remark;
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
/** 代收数组 */
|
|
|
public function setReplaceCollectionsType($index, $type)
|
|
|
{
|
|
|
$this->orderData['replaceCollections'][$index]['type'] = $type;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setReplaceCollectionsMoney($index, $money)
|
|
|
{
|
|
|
$this->orderData['replaceCollections'][$index]['money'] = $money;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setReplaceCollectionsRemark($index, $remark)
|
|
|
{
|
|
|
$this->orderData['replaceCollections'][$index]['remark'] = $remark;
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
/** 行程详细数组 */
|
|
|
public function setScheduleDetailsTitle($index, $title)
|
|
|
{
|
|
|
$this->orderData['scheduleDetails'][$index]['title'] = $title;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setScheduleDetailsContent($index, $content)
|
|
|
{
|
|
|
$this->orderData['scheduleDetails'][$index]['content'] = $content;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setScheduleDetailsTraffic($index, $traffic)
|
|
|
{
|
|
|
$this->orderData['scheduleDetails'][$index]['traffic'] = $traffic;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setScheduleDetailsAccommodation($index, $accommodation)
|
|
|
{
|
|
|
$this->orderData['scheduleDetails'][$index]['accommodation'] = $accommodation;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setScheduleDetailsBreakFirst($index, $breakFirst)
|
|
|
{
|
|
|
$this->orderData['scheduleDetails'][$index]['breakFirst'] = $breakFirst;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setScheduleDetailsDinner($index, $dinner)
|
|
|
{
|
|
|
$this->orderData['scheduleDetails'][$index]['dinner'] = $dinner;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setScheduleDetailsLunch($index, $lunch)
|
|
|
{
|
|
|
$this->orderData['scheduleDetails'][$index]['lunch'] = $lunch;
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
/** 游客信息数组 */
|
|
|
public function setCustomersName($index, $name)
|
|
|
{
|
|
|
$this->orderData['customers'][$index]['name'] = $name;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setCustomersPeopleType($index, $peopleType)
|
|
|
{
|
|
|
$this->orderData['customers'][$index]['peopleType'] = $peopleType;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setCustomersDocumentType($index, $documentType)
|
|
|
{
|
|
|
$this->orderData['customers'][$index]['documentType'] = $documentType;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setCustomersDocumentNo($index, $documentNo)
|
|
|
{
|
|
|
$this->orderData['customers'][$index]['documentNo'] = $documentNo;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setCustomersPhoneNo($index, $phoneNo)
|
|
|
{
|
|
|
$this->orderData['customers'][$index]['phoneNo'] = $phoneNo;
|
|
|
return $this;
|
|
|
}
|
|
|
public function setCustomersOtherInfo($index, $otherInfo)
|
|
|
{
|
|
|
$this->orderData['customers'][$index]['otherInfo'] = $otherInfo;
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
?>
|