删除任务信息接口bug修复

Former-commit-id: 9bdb33268bac4311470a94df54b37cc11d71656a
This commit is contained in:
zhangwei 2023-09-18 09:16:47 +08:00
parent 4a82cfa159
commit 9b3da9a6c1
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func (l *DeleteTaskLogic) DeleteTask(req *types.DeleteTaskReq) error {
return tx.Error
}
// 将子任务信息修改为待删除
tx = l.svcCtx.DbEngin.Model(&model.Task{}).Where("task_id", req.Id).Update("status", "WaitDelete")
tx = l.svcCtx.DbEngin.Model(&model.Task{}).Where("id", req.Id).Update("status", "WaitDelete")
if tx.Error != nil {
return tx.Error
}