Gorm and or hybrid query

problem description

just used gorm for query but encountered some problems. I want to do some mixed query of and and or, but db.Where in gorm is an and query, but if you add .Or () to query, all the conditions will become or. Ask for help from the bosses, if and and mixed query how to achieve it.

related codes

SELECT * FROM users WHERE (mobile = "1880000000000" or email =" test@test.com") and status=1 ORDER BY users . id ASC LIMIT 1

Apr.02,2021

Where ("(mobile =? or email =?) and status < =?", "18800000000", "test@test.com", 1)

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37e9c-2c0d6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37e9c-2c0d6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?