在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
如果前端人员比较倔强,他不想传集合,而你也不想转换
本文来自博客园,作者:ukyo--君君小时候,转载请注明原文链接:https://www.cnblogs.com/ukzq/p/16211471.html