|
|
@ -283,7 +283,7 @@ class Orders_model extends CI_Model {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public function combineoperation_exist($combineNo='', $operation="")
|
|
|
|
public function combineoperation_exist($combineNo='', $operation="")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if( ! $combineNo) { return false; }
|
|
|
|
if( ! $combineNo) { return array(); }
|
|
|
|
$sql = "SELECT TOP 1 GCOD_GCI_combineNo
|
|
|
|
$sql = "SELECT TOP 1 GCOD_GCI_combineNo
|
|
|
|
FROM BIZ_GroupCombineOperationDetail
|
|
|
|
FROM BIZ_GroupCombineOperationDetail
|
|
|
|
WHERE GCOD_GCI_combineNo = N? and GCOD_operationType=?";
|
|
|
|
WHERE GCOD_GCI_combineNo = N? and GCOD_operationType=?";
|
|
|
@ -765,7 +765,12 @@ class Orders_model extends CI_Model {
|
|
|
|
/** 包价线路订单入库 */
|
|
|
|
/** 包价线路订单入库 */
|
|
|
|
public function biz_packageorder_save()
|
|
|
|
public function biz_packageorder_save()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$sql = "INSERT INTO BIZ_PackageOrderInfo
|
|
|
|
$sql = "IF NOT EXISTS(
|
|
|
|
|
|
|
|
SELECT TOP 1 1
|
|
|
|
|
|
|
|
FROM BIZ_PackageOrderInfo
|
|
|
|
|
|
|
|
WHERE POI_COLD_SN = ?
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
INSERT INTO BIZ_PackageOrderInfo
|
|
|
|
(POI_COLD_SN
|
|
|
|
(POI_COLD_SN
|
|
|
|
,POI_FlightsNo
|
|
|
|
,POI_FlightsNo
|
|
|
|
,POI_AirPort
|
|
|
|
,POI_AirPort
|
|
|
@ -794,6 +799,7 @@ class Orders_model extends CI_Model {
|
|
|
|
";
|
|
|
|
";
|
|
|
|
$query = $this->HT->query($sql, array(
|
|
|
|
$query = $this->HT->query($sql, array(
|
|
|
|
$this->POI_COLD_SN
|
|
|
|
$this->POI_COLD_SN
|
|
|
|
|
|
|
|
,$this->POI_COLD_SN
|
|
|
|
,$this->POI_FlightsNo
|
|
|
|
,$this->POI_FlightsNo
|
|
|
|
,$this->POI_AirPort
|
|
|
|
,$this->POI_AirPort
|
|
|
|
,$this->POI_Time
|
|
|
|
,$this->POI_Time
|
|
|
@ -948,6 +954,16 @@ class Orders_model extends CI_Model {
|
|
|
|
return $this->FOI_SN;
|
|
|
|
return $this->FOI_SN;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function bookpeople_exist($cold_sn)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if( ! $cold_sn) { return array(); }
|
|
|
|
|
|
|
|
$sql = "SELECT top 1 *
|
|
|
|
|
|
|
|
FROM BIZ_BookPeopleList BPL
|
|
|
|
|
|
|
|
WHERE BPL_COLD_SN=? ";
|
|
|
|
|
|
|
|
$query = $this->HT->query($sql, array($cold_sn));
|
|
|
|
|
|
|
|
return $query->result();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var $BPE_SN;
|
|
|
|
var $BPE_SN;
|
|
|
|
var $BPE_FirstName; //客人
|
|
|
|
var $BPE_FirstName; //客人
|
|
|
|
var $BPE_MiddleName; //客人
|
|
|
|
var $BPE_MiddleName; //客人
|
|
|
|