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);
原文地址:https://www.cnblogs.com/xiaoliu66007/p/15754204.html