lambdaQuery().orderByDesc无效
@Override public IPage<OrderDTO> findList( String openid, Integer page, Integer pagesize) { Page pageOrderList = new Page<>(page, pagesize); //Page<OrderMaster> orderMasterPage = orderMasterMapper..selectPage(pageOrderList, null); Page orderMasterPage = lambdaQuery().orderByDesc(OrderMaster::getOrderId).eq(OrderMaster::getBuyerOpenid, openid).page(pageOrderList); orderMasterPage.setRecords(OrderMaster2OrderDTOConverter.convert(orderMasterPage.getRecords())); return orderMasterPage; }
orderByDesc(OrderMaster::getOrderId)
看文档使用方法,应该是这样写的。
但是。。。
没效果
请老师解惑