From fb3d2e8e673165d9489c5345275ff687f6558eba Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Tue, 17 Dec 2024 18:05:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=85=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=9F=A5=E8=AF=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dao/video.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dao/video.go b/dao/video.go index 5cc8dca..ed08de2 100644 --- a/dao/video.go +++ b/dao/video.go @@ -21,7 +21,7 @@ type Video struct { func FindWillDelVideoList(id int) []Video { var videos []Video - DB.Where("auth_id = ?", id).Where("delete_time<=now()").Where("isdelete=0").Find(&videos) + DB.Raw("select * from videos where auth_id = ? and delete_time<=now() and isdelete=0", id).Scan(&videos) return videos }