springboot+mybatisPlust按条件查询分页

Page<DepartureListBill> page = departureListBillService.selectPage(
new Page<>(pageNo, pageSize),
new EntityWrapper<DepartureListBill>().eq("enable", true)
.eq("organizationId", user.getOrganizationId())
.between(MyStringUtils.isNotBlank(time), "createTime", time, DateUtils.toEndTimeStr(time))
.like(MyStringUtils.isNotBlank(operator), "operator", operator)
.like(MyStringUtils.isNotBlank(departureListBillNum), "departureListBillNum", departureListBillNum)
.orderDesc(orderStr)
);
posted @ 2018-11-16 17:02  9102_Struggle  阅读(2997)  评论(0编辑  收藏  举报