|
|
|
|
@ -119,7 +119,7 @@ class BIZ_intel_train_model extends CI_Model {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function ch_allstations(){
|
|
|
|
|
$sql = "SELECT * FROM TrainStation_intel";
|
|
|
|
|
$sql = "SELECT * FROM TrainStation_intel where station_id != 11";
|
|
|
|
|
$query = $this->HT->query($sql);
|
|
|
|
|
return $query->result();
|
|
|
|
|
}
|
|
|
|
|
@ -145,6 +145,11 @@ class BIZ_intel_train_model extends CI_Model {
|
|
|
|
|
}else{
|
|
|
|
|
$and = "";
|
|
|
|
|
}
|
|
|
|
|
if($station_id == 10){
|
|
|
|
|
$station = "or tsi_FromStation = 11";
|
|
|
|
|
}else{
|
|
|
|
|
$station = "";
|
|
|
|
|
}
|
|
|
|
|
$sql = "SELECT
|
|
|
|
|
S_ename,s_country,tsi_Message
|
|
|
|
|
FROM
|
|
|
|
|
@ -156,7 +161,8 @@ class BIZ_intel_train_model extends CI_Model {
|
|
|
|
|
where
|
|
|
|
|
tsi_FromStation = '{$station_id}'
|
|
|
|
|
";
|
|
|
|
|
$sql .= $and;
|
|
|
|
|
$sql .= $and;
|
|
|
|
|
$sql .= $station;
|
|
|
|
|
$query = $this->HT->query($sql);
|
|
|
|
|
return $query->result();
|
|
|
|
|
}
|
|
|
|
|
|