上海API fix

master
赵鹏 10 months ago
parent 1be1ec1a4b
commit 1da408cf79

@ -692,6 +692,14 @@ class Api_model extends CI_Model {
//价格
$tourItem->price = $this->getTourPrice($row["code"]);
//类别信息
$tourDetail = $this->getTourDetail($row["code"]);
if (isset($tourDetail->CLI_LineType)){
$tourItem->linetype = $tourDetail->CLI_LineType;
}else{
$tourItem->linetype = "";
}
$resultJson[] = $tourItem;
}
}
@ -700,6 +708,29 @@ class Api_model extends CI_Model {
}
/**
* 获取对应编码的线路信息
*/
function getTourDetail($clino){
$sql = " SELECT top 1 CLI_LineType ,CLI_PackageClass,CLI_SN
FROM CustomerLineInfo INNER JOIN
CustomerLineInfo2 ON CustomerLineInfo.CLI_SN = CustomerLineInfo2.CLI2_CLI_SN
WHERE (CLI_DEI_SN=".$this->dei_sn.")
AND (CLI_State = 1005004)
AND (CLI2_LGC = ".$this->CTLGC.")
and isnull(CustomerLineInfo2.DeleteFlag,0)=0
and CLI_NO = ? ";
$query =$this->HT->query($sql,array($clino));
if ($query->num_rows() > 0) {
return $query->row();
}else{
return null;
}
}
}
/* End of file Api_model.php */

Loading…
Cancel
Save