From 5ba9343dd55dd64f5813a2c56422af2706ce2097 Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Wed, 6 Aug 2025 09:22:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor(oa):=20=E4=BC=98=E5=8C=96=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E6=8A=A5=E8=A1=A8=E6=9F=A5=E8=AF=A2=20SQL=20=E5=92=8C?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E6=95=B0=E6=8D=AE=E5=A4=84=E7=90=86-=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20OaProjectReportMapper.xml=20=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=97=A5=E6=9C=9F=E6=AF=94=E8=BE=83=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E7=A1=AE=E4=BF=9D=E4=BD=BF=E7=94=A8=20DATE=20?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E8=BF=9B=E8=A1=8C=E6=97=A5=E6=9C=9F=E5=AF=B9?= =?UTF-8?q?=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/oa/service/impl/AiDataQueryServiceImpl.java | 1 + ruoyi-oa/src/main/resources/mapper/oa/OaProjectReportMapper.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ruoyi-oa/src/main/java/com/ruoyi/oa/service/impl/AiDataQueryServiceImpl.java b/ruoyi-oa/src/main/java/com/ruoyi/oa/service/impl/AiDataQueryServiceImpl.java index d4f81f7..7e85783 100644 --- a/ruoyi-oa/src/main/java/com/ruoyi/oa/service/impl/AiDataQueryServiceImpl.java +++ b/ruoyi-oa/src/main/java/com/ruoyi/oa/service/impl/AiDataQueryServiceImpl.java @@ -430,6 +430,7 @@ public class AiDataQueryServiceImpl implements IAiDataQueryService { DynamicDataVo.ChartData chartData = new DynamicDataVo.ChartData(); // 图表配置 + // 这里可以使用AI来封装数据进行一个返回 Map options = new HashMap<>(); options.put("title", "数据统计图表"); options.put("type", "bar"); diff --git a/ruoyi-oa/src/main/resources/mapper/oa/OaProjectReportMapper.xml b/ruoyi-oa/src/main/resources/mapper/oa/OaProjectReportMapper.xml index ec63104..e2d1da0 100644 --- a/ruoyi-oa/src/main/resources/mapper/oa/OaProjectReportMapper.xml +++ b/ruoyi-oa/src/main/resources/mapper/oa/OaProjectReportMapper.xml @@ -246,7 +246,7 @@ AND opr.create_time >= #{bo.startDate} - AND opr.create_time <= #{bo.endDate} + AND DATE(opr.create_time) <= DATE(#{bo.endDate}) AND opr.del_flag = '0'