提交分页信息
This commit is contained in:
parent
844ae8c8eb
commit
d5044e1b76
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue