From a12d6c29981f12dc65183c89e29f388bbb9b548a Mon Sep 17 00:00:00 2001 From: zhangwei <894646498@qq.com> Date: Mon, 18 Sep 2023 09:40:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BB=BB=E5=8A=A1=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=8E=A5=E5=8F=A3bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 5a33aba8bf7d6cfbfabec8a25e3f8846f689111c --- api/internal/logic/core/deletetasklogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/internal/logic/core/deletetasklogic.go b/api/internal/logic/core/deletetasklogic.go index 088aa12d..2eeac0eb 100644 --- a/api/internal/logic/core/deletetasklogic.go +++ b/api/internal/logic/core/deletetasklogic.go @@ -31,7 +31,7 @@ func (l *DeleteTaskLogic) DeleteTask(req *types.DeleteTaskReq) error { return tx.Error } // 将子任务信息修改为待删除 - tx = l.svcCtx.DbEngin.Model(&model.Task{}).Where("id", req.Id).Update("status", "WaitDelete") + tx = l.svcCtx.DbEngin.Model(&model.Cloud{}).Where("task_id", req.Id).Update("status", "WaitDelete") if tx.Error != nil { return tx.Error }