l***@163.com
l***@163.com
  • 发布:2025-07-10 09:32
  • 更新:2025-07-10 09:45
  • 阅读:20

unicloud 云数据库 timestamp字段过滤无效

分类:uniCloud

表结构定义:

...  
"settle_time": {  
      "bsonType": "timestamp",  
      "title": "结算提交时间"  
    },  
...

表记录内容:

{  
 ...  
  "settle_time": 1752076269311,  
  ...  
}

sql 写法:

const roomsResult = await db.collection('rooms')  
        .where({  
            settle_time: db.command.lt(1752109753921)  
        })  
        .get();

结果查不到上面的记录,有大佬知道是怎么回事吗?

2025-07-10 09:32 负责人:无 分享
已邀请:
套马杆的套子

套马杆的套子 - 没有解决不了的问题,只有解决不完的问题

要回复问题请先登录注册