From aad64863ba44c743e56a7558a7d951e16c805e77 Mon Sep 17 00:00:00 2001 From: zhouqunjie Date: Mon, 27 Nov 2023 18:51:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=97=E8=A1=A8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=85=A5=E5=8F=82=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 0c0586081f3799a222ad200c819ab3064f8462e5 --- api/internal/logic/apps/applistlogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/internal/logic/apps/applistlogic.go b/api/internal/logic/apps/applistlogic.go index be126b60..a0f29f5b 100644 --- a/api/internal/logic/apps/applistlogic.go +++ b/api/internal/logic/apps/applistlogic.go @@ -47,7 +47,7 @@ type Task struct { func (l *AppListLogic) AppList(req *types.AppListReq) (resp *types.AppListResp, err error) { var tasks []Task resp = &types.AppListResp{} - l.svcCtx.DbEngin.Raw("SELECT t.*,phy.name as p_name,phy.id as p_id FROM task t LEFT JOIN cloud c ON c.task_id = t.id join sc_participant_phy_info phy on c.participant_id = phy.id WHERE c.kind in ('Deployment', 'StatefulSet', 'Ingress', 'Service') AND t.`ns_id` = ? AND t.`deleted_at` IS NULL ORDER BY t.created_time Desc", req.Namespace).Scan(&tasks) + l.svcCtx.DbEngin.Raw("SELECT t.*,phy.name as p_name,phy.id as p_id FROM task t LEFT JOIN cloud c ON c.task_id = t.id join sc_participant_phy_info phy on c.participant_id = phy.id WHERE c.kind in ('Deployment', 'StatefulSet', 'Ingress', 'Service') AND t.`ns_id` = ? AND t.`deleted_at` IS NULL ORDER BY t.created_time Desc", req.NsID).Scan(&tasks) for _, task := range tasks { var replicas []types.Replica