LambdaQueryWrapper 查distinct数据
作者:互联网
QueryWrapper<MessageWebPage> query = new QueryWrapper<>(); query.select(" DISTINCT customer_id ").lambda() .eq(MessageWebPage::getShopId, shopId) .ge(MessageWebPage::getSendDate, beginTime) .le(MessageWebPage::getSendDate, endTime) .isNotNull(MessageWebPage::getCustomerId); List<MessageWebPage> idListLo = messageWebPageService.list(query);
标签:QueryWrapper,LambdaQueryWrapper,distinct,getSendDate,MessageWebPage,isNotNull,ge 来源: https://www.cnblogs.com/xiaoliu66007/p/15754204.html