作者 唐旭辉

更新tag

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