作者 唐旭辉

更新tag

@@ -123,7 +123,7 @@ func (reponsitory UsersRepository) FindOne(queryOptions domain.UsersFindOneQuery @@ -123,7 +123,7 @@ func (reponsitory UsersRepository) FindOne(queryOptions domain.UsersFindOneQuery
123 hasCondition bool 123 hasCondition bool
124 ) 124 )
125 query := tx.Model(&m) 125 query := tx.Model(&m)
126 - query.Where("delete_at ISNULL") 126 + query = query.Where("delete_at ISNULL")
127 if queryOptions.Id > 0 { 127 if queryOptions.Id > 0 {
128 hasCondition = true 128 hasCondition = true
129 query = query.Where("id=?", queryOptions.Id) 129 query = query.Where("id=?", queryOptions.Id)