修改国际火车查询

hotfix/远程访问多媒体中心
cyc 6 years ago
parent e724dbf142
commit 41fd2b66d9

@ -148,7 +148,9 @@ class BIZ_intel_train_model extends CI_Model {
public function ch_train_rules($station_id){
if($station_id == 11){
$station = "or tsi_FromStation = 10 or tsi_ToStation = 10";
$station = "or tsi_FromStation = 10";
}elseif($station_id == 2){
$station = "or tsi_FromStation = 9";
}else{
$station = "";
}
@ -161,7 +163,7 @@ class BIZ_intel_train_model extends CI_Model {
ON
tsi_ToStation = station_id
where
(tsi_FromStation = ? or tsi_ToStation = ?)
(tsi_FromStation = ?)
";
$sql .= $station;
$query = $this->HT->query($sql,array($station_id,$station_id));

Loading…
Cancel
Save