feat:完善项目信息
This commit is contained in:
@ -24,7 +24,7 @@ func (m *SysUser) IsAdminUser() bool {
|
||||
|
||||
func (m *SysUser) GetByAccountOrMobile(account string, tenantID uint64) (bool, error) {
|
||||
db := orm.GetDB().Table(m.TableName()).
|
||||
Select("id", "tenant_id", "name", "mobile", "password", "salt", "is_admin", "status").
|
||||
Select("id", "uuid", "tenant_id", "name", "mobile", "password", "salt", "is_admin", "status").
|
||||
Where("tenant_id = ?", tenantID).
|
||||
Where("(account = ? OR mobile = ?)", account, account).
|
||||
Where("is_deleted = ?", model.DeleteStatusForNot)
|
||||
|
Reference in New Issue
Block a user