其他分享
首页 > 其他分享> > LambdaQueryWrapper 查distinct数据

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