From fc2e55e1c778b36c88d147fe68f875df52bf9337 Mon Sep 17 00:00:00 2001 From: cyc Date: Tue, 4 Sep 2018 15:45:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8C=97=E4=BA=AC=E5=92=8C?= =?UTF-8?q?=E5=8C=97=E4=BA=AC=E8=A5=BF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/train/models/BIZ_intel_train_model.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/application/third_party/train/models/BIZ_intel_train_model.php b/application/third_party/train/models/BIZ_intel_train_model.php index 43f21bd6..5898409c 100644 --- a/application/third_party/train/models/BIZ_intel_train_model.php +++ b/application/third_party/train/models/BIZ_intel_train_model.php @@ -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(); }