refactor(oa): 优化项目报表查询 SQL 和图表数据处理- 修改 OaProjectReportMapper.xml 中的日期比较逻辑,确保使用 DATE 函数进行日期对比
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -246,7 +246,7 @@
|
||||
AND opr.create_time >= #{bo.startDate}
|
||||
</if>
|
||||
<if test="bo.endDate != null">
|
||||
AND opr.create_time <= #{bo.endDate}
|
||||
AND DATE(opr.create_time) <= DATE(#{bo.endDate})
|
||||
</if>
|
||||
AND opr.del_flag = '0'
|
||||
</where>
|
||||
|
||||
Reference in New Issue
Block a user