refactor(oa): 优化项目报表查询 SQL 和图表数据处理- 修改 OaProjectReportMapper.xml 中的日期比较逻辑,确保使用 DATE 函数进行日期对比

This commit is contained in:
2025-08-06 09:22:24 +08:00
parent 7ad49224d2
commit 5ba9343dd5
2 changed files with 2 additions and 1 deletions

View File

@@ -430,6 +430,7 @@ public class AiDataQueryServiceImpl implements IAiDataQueryService {
DynamicDataVo.ChartData chartData = new DynamicDataVo.ChartData();
// 图表配置
// 这里可以使用AI来封装数据进行一个返回
Map<String, Object> options = new HashMap<>();
options.put("title", "数据统计图表");
options.put("type", "bar");

View File

@@ -246,7 +246,7 @@
AND opr.create_time &gt;= #{bo.startDate}
</if>
<if test="bo.endDate != null">
AND opr.create_time &lt;= #{bo.endDate}
AND DATE(opr.create_time) &lt;= DATE(#{bo.endDate})
</if>
AND opr.del_flag = '0'
</where>