没看到官网有这种说明啊,再者这应该是mybatis+的写法,怎么默认按flag=0搜索呢?
public Result<IPage<YyPatientProstateHyperplasiasf>> queryPageList(YyPatientProstateHyperplasiasf phyperParam,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<YyPatientProstateHyperplasiasf> queryWrapper = QueryGenerator.initQueryWrapper(phyperParam, req.getParameterMap());
Page<YyPatientProstateHyperplasiasf> page = new Page<YyPatientProstateHyperplasiasf>(pageNo, pageSize);
IPage<YyPatientProstateHyperplasiasf> pageList = yyPatientphypersfService.page(page, queryWrapper);
return Result.OK(pageList);
}
新增截图**
你是不是弄了关于flag的索引,如果你没order by的话,会优先根据索引进行排序