From bb45c2ee334360c8862fa07f9d29567e0a5b2f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Thu, 2 Jun 2022 10:42:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E8=AE=BE=E7=BD=AE=E5=88=86?= =?UTF-8?q?=E5=88=B0infomation=5Fct=E8=BF=99=E8=BE=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/infoaccessmanage_model.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/models/infoaccessmanage_model.php b/application/models/infoaccessmanage_model.php index 70e95b82..82ce2e41 100644 --- a/application/models/infoaccessmanage_model.php +++ b/application/models/infoaccessmanage_model.php @@ -5,7 +5,8 @@ class infoAccessmanage_model extends CI_Model function __construct() { parent::__construct(); - $this->HT = $this->load->database('HT', TRUE); + $this->HT = $this->load->database('INFORMATION', TRUE); + $this->HT229 = $this->load->database('HT', TRUE); } //获取用户结构列表 @@ -19,7 +20,7 @@ class infoAccessmanage_model extends CI_Model iam_author FROM infoaccessmanage INNER JOIN infoStructures is1 ON iam_is_id = is1.is_id - LEFT JOIN OperatorInfo ON iam_author=OPI_Code + LEFT JOIN tourmanager.dbo.OperatorInfo ON iam_author=OPI_Code ORDER BY is1.is_level ASC, is1.is_sort ASC, is1.is_path ASC"; @@ -408,7 +409,7 @@ class infoAccessmanage_model extends CI_Model $undefined_sql="AND OPI_Code NOT IN (SELECT iam_author FROM infoaccessmanage)"; } $sql = "SELECT * FROM OperatorInfo WHERE DeleteFlag=0 $undefined_sql"; - $query = $this->HT->query($sql); + $query = $this->HT229->query($sql); return $query->result(); }