|
|
|
|
@ -136,15 +136,15 @@ class Api_model extends CI_Model {
|
|
|
|
|
}else {
|
|
|
|
|
//普通线路价格
|
|
|
|
|
$sql = "select top 1
|
|
|
|
|
CLI_SN,CLP_TwoToFiveAdultPrice,CLI_PackageClass
|
|
|
|
|
CLI_SN,CLP_TwoToFiveAdultPrice,CLI_PackageClass,CLP_TwoToFiveAdultPriceRMB
|
|
|
|
|
FROM CustomerLineInfo INNER JOIN
|
|
|
|
|
CustomerLinePrice ON CustomerLineInfo.CLI_SN = CustomerLinePrice.CLP_CLI_SN INNER JOIN
|
|
|
|
|
CustomerLineInfo2 ON CustomerLineInfo.CLI_SN = CustomerLineInfo2.CLI2_CLI_SN
|
|
|
|
|
where CLI_SN= ? and CLI2_LGC=? and (CLP_Area=1 or CLP_Area=2)
|
|
|
|
|
where CLI_SN= ? and CLI2_LGC=?
|
|
|
|
|
and (CLI_State = 1005004 or CLI_State = 1005003) ORDER BY CLP_TwoToFiveAdultPrice";
|
|
|
|
|
$query = $this->HT->query($sql,array($CLI_SN,$this->CTLGC));
|
|
|
|
|
if ($query->num_rows()>0){
|
|
|
|
|
$reust = $query->row()->CLP_TwoToFiveAdultPrice;
|
|
|
|
|
$reust = $query->row();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -210,8 +210,8 @@ class Api_model extends CI_Model {
|
|
|
|
|
ORDER BY tball.sortBy ASC
|
|
|
|
|
";
|
|
|
|
|
|
|
|
|
|
$query = $this->HT->query($sql);
|
|
|
|
|
return $query->result();
|
|
|
|
|
$query = $this->HT->query($sql);
|
|
|
|
|
return $query->result();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -697,12 +697,17 @@ class Api_model extends CI_Model {
|
|
|
|
|
|
|
|
|
|
//价格
|
|
|
|
|
$price = $this->getTourPrice($row["code"]);
|
|
|
|
|
$resultPrice = 0;
|
|
|
|
|
if (isset($price->CLP_TwoToFiveAdultPrice)){
|
|
|
|
|
$resultPrice = $price->CLP_TwoToFiveAdultPrice;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 处理价格:
|
|
|
|
|
// 1. 如果是 null,设为空字符串 ""
|
|
|
|
|
// 2. 如果是数字(如 100.0000),转为整数(100)
|
|
|
|
|
$tourItem->price = ($price === null)
|
|
|
|
|
$tourItem->price = ($resultPrice === null)
|
|
|
|
|
? ""
|
|
|
|
|
: (string)(int)floatval($price);
|
|
|
|
|
: (string)(int)floatval($resultPrice);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//类别信息
|
|
|
|
|
|