大家好,又见面了,我是你们的朋友全栈君。
写sql语句 时发现怎么都查不出来数据,后来发现数据格式化后和前台传入的 数据格式不一样。
SELECT count(*) count,a.store_id storeid, DATE_FORMAT(a.timeone,'%Y-%m-%d') mytime, s.abbreviation abbreviation1 FROM store_file s LEFT JOIN order_customer a ON s.id = a.store_id GROUP BY mytime,a.store_id HAVING mytime = #{mytime}
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/129042.html原文链接:https://javaforall.cn