|
|
|
|
@ -9,6 +9,9 @@ class BIZ_intel_train_model extends CI_Model {
|
|
|
|
|
|
|
|
|
|
//查询火车列表信息
|
|
|
|
|
public function get_train_info($trainFromCode,$trainToCode){
|
|
|
|
|
if($trainFromCode == 'CHBJ'){
|
|
|
|
|
$add = "OR tl.trainFromCode = 'CHPW'";
|
|
|
|
|
}
|
|
|
|
|
$sql = "
|
|
|
|
|
SELECT
|
|
|
|
|
tl.trainNo,
|
|
|
|
|
@ -119,7 +122,7 @@ class BIZ_intel_train_model extends CI_Model {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function ch_allstations(){
|
|
|
|
|
$sql = "SELECT * FROM TrainStation_intel where station_id != 11";
|
|
|
|
|
$sql = "SELECT * FROM TrainStation_intel where station_id != 10";
|
|
|
|
|
$query = $this->HT->query($sql);
|
|
|
|
|
return $query->result();
|
|
|
|
|
}
|
|
|
|
|
@ -145,8 +148,8 @@ class BIZ_intel_train_model extends CI_Model {
|
|
|
|
|
}else{
|
|
|
|
|
$and = "";
|
|
|
|
|
}
|
|
|
|
|
if($station_id == 10){
|
|
|
|
|
$station = "or tsi_FromStation = 11";
|
|
|
|
|
if($station_id == 11){
|
|
|
|
|
$station = "or tsi_FromStation = 10";
|
|
|
|
|
}else{
|
|
|
|
|
$station = "";
|
|
|
|
|
}
|
|
|
|
|
|