java里mongodb复合查询
2024-09-03 11:47:48
Query query = new Query();
Criteria criteria = Criteria.where("packetTitle").is(redPacketStatVO.getActiveTitle())
.and("activeCode").is(redPacketStatVO.getActiveCode())
.and("packetDetailStatus").is(RedPacketDetailStatusEnum.FINISH.getValue())
.and("drawStatus").is(RedPacketDrawEnum.GET_PACKET.getValue());
query.addCriteria(criteria); //领取总量
List<RedPacketDraw> drawTotals = mongoTemplate.find(query, RedPacketDraw.class);
最新文章
- harris角点检测的学习
- java filechannel大文件的读写
- js去空格
- 视频聊天APP
- C++之map、list操作
- Android 蓝牙4.0 BLE
- Pod::Executable pull
- vs2010 无法连接到asp.net development server
- mysql 之路目录
- Python进程
- MyEclipse2014搭建JSF项目实例
- LinuxMint(Ubuntu)安装文泉驿家族黑体字
- swagger支持中英文
- (后端)spring的@Transactional注解详细用法(转)
- 时间戳转日期 mysql以及sql server 用法
- Linux文件系统2---VFS的四个主要对象
- C#基础回顾:正则表达式-转
- 【Ansible 文档】【译文】Ad-Hoc 命令介绍
- leetcode:Insert Sort List
- (windows)一台电脑上安装两个Mysql服务
热门文章
- NO24 第三关--企业面试题
- 搭建python的开发环境(采用eclipse的开发工具)在线和离线安装pyDev
- iOS 枚举ENUM和OPTIONS的区别
- Unable to execute dex:Multuple dex files define 解决方法
- imagenet下载及训练
- Django(十二)视图--利用jquery从后台发送ajax请求并处理、ajax登录案例
- mybaits-plus总结
- ffmpeg “inttypes.h”: No such file or directory
- CentOS7基于http方式搭建本地yum源
- JS - n次方计算