Compare commits
No commits in common. "aa765e941216f0d295d9c4692714d6eaabe629f5" and "4128347eab34b9cc869c6026407ac99f3f9c26a4" have entirely different histories.
aa765e9412
...
4128347eab
|
|
@ -21,7 +21,7 @@ type Video struct {
|
||||||
|
|
||||||
func FindWillDelVideoList(id int) []Video {
|
func FindWillDelVideoList(id int) []Video {
|
||||||
var videos []Video
|
var videos []Video
|
||||||
DB.Raw("select * from videos where auth_id = ? and delete_time<=now() and isdelete=0", id).Scan(&videos)
|
DB.Where("auth_id = ?", id).Where("delete_time<=now()").Where("isdelete=0").Find(&videos)
|
||||||
return videos
|
return videos
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue