在mysql中,如果传入的startTime为2020-11-12,2020-11-13这样的字符串,则可以使用find_in_set取代in

                 and find_in_set((date_format(o.create_time,'%Y-%m-%d')),#{startTime})>0

如果前端人员比较倔强,他不想传集合,而你也不想转换

posted @ 2022-04-30 21:39  ukyo--君君小时候  阅读(38)  评论(0编辑  收藏  举报