1.数据库字段设置成varchar 查询的时候会有时差
解决办法:
and CAST(ts_message.utime as DATE) between CAST('$times1' as DATE) and cast('$times2' as date)