Student.Achieve.Manager icon indicating copy to clipboard operation
Student.Achieve.Manager copied to clipboard

在部分查询功能中,带入了测试环境的查询限制?

Open LiGImA8 opened this issue 8 months ago • 0 comments

#if DEBUG GID = 1; #endif

        var data = await _iClazzRepository.GetQueryPageOfMapperTb(a => (a.IsDeleted == false && (a.Name != null && a.Name.Contains(key))) /*&& (a.GradeId == GID || (GID == -9999 && true))*/, page, intPageSize, " Id asc ");


        return new MessageModel<PageModel<Clazz>>()
        {
            msg = "获取成功",
            success = data.dataCount >= 0,
            response = data
        };

    }

这里注释掉的代码会约束查询结果(数据量多的情况下),疑似测试环境的需要?

LiGImA8 avatar Mar 02 '25 09:03 LiGImA8