把部分SQL语句中的to_char改为to_date
修改endtime
Merge branch 'master' into lichenxing