From 28b2629444d02115ae04aded7068a36d910af261 Mon Sep 17 00:00:00 2001 From: cjy Date: Fri, 28 Nov 2025 14:11:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9C=80=E8=BF=91=E6=8C=87=E6=B4=BE?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=A2=9E=E5=8A=A0=E8=BF=87=E6=BB=A4=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E8=AE=B0=E5=BD=95=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/dao/taskDao.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/dao/taskDao.go b/internal/dao/taskDao.go index 68a64e5..61e2b9d 100644 --- a/internal/dao/taskDao.go +++ b/internal/dao/taskDao.go @@ -1333,6 +1333,11 @@ func GetRecentAssignRecords(limit int) ([]*model.TaskAssignRecords, error) { AND (t2.operator_time > t1.operator_time OR (t2.operator_time = t1.operator_time AND t2.id > t1.id)) ) + AND NOT EXISTS ( + SELECT 1 FROM task_assignee_hidden h + WHERE h.task_assignee_num = t1.task_assignee_num + AND h.deleted_at = 0 + ) ORDER BY t1.operator_time DESC, t1.id DESC LIMIT ? `, 2, 2, limit).Scan(&records).Error