提交分页信息

This commit is contained in:
yangjun 2024-07-18 14:50:25 +08:00
parent 844ae8c8eb
commit d5044e1b76
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,10 @@ public class AppShipinquanController {
public Result list(BlShipinquan entity, Integer page, Integer limit){
QueryWrapper<BlShipinquan> qw = new QueryWrapper<>();
qw.orderByDesc("create_time");
if(page==null){
page=1;
limit=10;
}
IPage<BlShipinquan> pageList = service.page(new Page<>(page,limit),qw);
return Result.success().put("data",pageList);
}