摘要: 查询一些用户的首笔订单: select a.* from tb_order as a right join (select user_id, min(create_time) as maxtime from tb_order where user_id in(111,222,333) group b 阅读全文
posted @ 2021-05-25 10:55 mentalidade 阅读(1162) 评论(0) 推荐(0) 编辑
摘要: 往常使用options.Find().SetSort(bson.D{{"a", -1},{"b", -1}})结果报错,感觉使用方法没问题,排查之后发现是import的包错了导致。 cannot transform type bson.D to a BSON Document: WriteArray 阅读全文
posted @ 2021-05-25 10:15 mentalidade 阅读(596) 评论(0) 推荐(0) 编辑