From c15e44eadf48d3d124b43a0ee7d9cc4901c57034 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 9 Jan 2024 10:44:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/Model/Project.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/common/Model/Project.php b/application/common/Model/Project.php index 249fdcb..8ed763f 100755 --- a/application/common/Model/Project.php +++ b/application/common/Model/Project.php @@ -36,7 +36,8 @@ class Project extends CommonModel $offset = ($page - 1) * $pageSize; $limit = $pageSize; $prefix = config('database.prefix'); - $sql = "select *,p.id as id,p.name as name,p.code as code,p.create_time as create_time from {$prefix}project as p join {$prefix}project_member as pm on p.code = pm.project_code left join {$prefix}project_collection as pc on p.code = pc.project_code where pm.member_code = '{$memberCode}' and p.organization_code = '$organizationCode'"; + // and p.organization_code = '$organizationCode' + $sql = "select *,p.id as id,p.name as name,p.code as code,p.create_time as create_time from {$prefix}project as p join {$prefix}project_member as pm on p.code = pm.project_code left join {$prefix}project_collection as pc on p.code = pc.project_code where pm.member_code = '{$memberCode}' "; if ($deleted != -1) { $sql .= " and p.deleted = {$deleted} "; }