From 588a99a3545b3ab22bb9d14b9c1c31d23679c9fc Mon Sep 17 00:00:00 2001 From: augushong Date: Mon, 12 Oct 2026 15:37:10 +0000 Subject: [PATCH] =?UTF-8?q?fix(notice):=20=E4=B8=AA=E4=BA=BA=E5=9F=9F?= =?UTF-8?q?=E8=BD=AF=E5=88=A0=E8=BF=87=E6=BB=A4=E6=94=B9=E7=94=A8=20withJo?= =?UTF-8?q?in=20=E5=85=B3=E7=B3=BB=E5=88=AB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/base/admin/controller/NoticeBase.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extend/base/admin/controller/NoticeBase.php b/extend/base/admin/controller/NoticeBase.php index 2d63dfb..169ce79 100644 --- a/extend/base/admin/controller/NoticeBase.php +++ b/extend/base/admin/controller/NoticeBase.php @@ -61,15 +61,15 @@ class NoticeBase extends AdminController ->withJoin('notice', 'LEFT') ->where('system_notice_target.admin_id', $adminId) ->where('system_notice_target.channel', NoticeService::CHANNEL_INMAIL) - // 软删通知不进个人域(管理页删除后此处消失) - ->where('system_notice.delete_time', 0) + // 软删通知不进个人域(管理页删除后此处消失);别名 notice 为 withJoin 的关系名 + ->where('notice.delete_time', 0) ->where($where) ->count(); $list = $this->model ->withJoin('notice', 'LEFT') ->where('system_notice_target.admin_id', $adminId) ->where('system_notice_target.channel', NoticeService::CHANNEL_INMAIL) - ->where('system_notice.delete_time', 0) + ->where('notice.delete_time', 0) ->where($where) ->page($page, $limit) ->order($this->sort) @@ -99,7 +99,7 @@ class NoticeBase extends AdminController ->where('system_notice_target.id', (int) $id) ->where('system_notice_target.admin_id', $adminId) // 软删通知不进个人域(管理页删除后详情不可打开) - ->where('system_notice.delete_time', 0) + ->where('notice.delete_time', 0) ->find(); if (empty($row)) { $this->error('消息不存在或无权查看');