【修复】修复mysql下【订单报表】按天计算回调数据为空的问题。

This commit is contained in:
大灰灰
2022-09-20 20:47:32 +08:00
parent de73aff810
commit cff66014af

View File

@@ -83,7 +83,7 @@ namespace CoreCms.Net.Services
select * from CoreCmsOrder
where 1 = 1
" + where + @"
) o on tmp_x.x = ((cast(date(o." + joinVal + @") as signed) - " + sTime.ToString("yyyy-MM-dd") + @") div(" + section + @"))
) o on tmp_x.x = ((cast(date(o." + joinVal + @") as signed) - " + sTime.ToString("yyyyMMdd") + @") div(" + section + @"))
group by tmp_x.x
";
}