From 9583966a50fa7b26fa9c6378aa2d60fbfa7b6009 Mon Sep 17 00:00:00 2001
From: furongxin <419481438@qq.com>
Date: Thu, 10 Apr 2025 01:44:13 +0800
Subject: [PATCH] =?UTF-8?q?fix(bpm):=20=E4=BF=AE=E5=A4=8D=E6=8A=A5?=
=?UTF-8?q?=E9=94=80=E5=8D=95=E6=97=A5=E6=9C=9F=E6=9F=A5=E8=AF=A2=E7=B2=BE?=
=?UTF-8?q?=E5=BA=A6=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 将 DATE_FORMAT 函数的格式从 '%Y-%m' 修改为 '%Y-%m-%d',以提高日期查询的精度
- 此修改解决了因日期格式精度不足导致的报销单查询问题
---
.../src/main/resources/mapper/oa/BpmOAExpensesMapper.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/yudao-module-bpm/yudao-module-bpm-biz/src/main/resources/mapper/oa/BpmOAExpensesMapper.xml b/yudao-module-bpm/yudao-module-bpm-biz/src/main/resources/mapper/oa/BpmOAExpensesMapper.xml
index fe28024a..52bde67d 100644
--- a/yudao-module-bpm/yudao-module-bpm-biz/src/main/resources/mapper/oa/BpmOAExpensesMapper.xml
+++ b/yudao-module-bpm/yudao-module-bpm-biz/src/main/resources/mapper/oa/BpmOAExpensesMapper.xml
@@ -52,10 +52,10 @@
- and DATE_FORMAT(c.end_time, '%Y-%m') >= #{pageReqVO.endTime[0]}
+ and DATE_FORMAT(c.end_time, '%Y-%m-%d') >= #{pageReqVO.endTime[0]}
- and DATE_FORMAT(c.end_time, '%Y-%m') <= #{pageReqVO.endTime[1]}
+ and DATE_FORMAT(c.end_time, '%Y-%m-%d') <= #{pageReqVO.endTime[1]}
ORDER BY c.end_time DESC, a.expenses_id
@@ -88,10 +88,10 @@
- and DATE_FORMAT(c.end_time, '%Y-%m') >= #{pageReqVO.endTime[0]}
+ and DATE_FORMAT(c.end_time, '%Y-%m-%d') >= #{pageReqVO.endTime[0]}
- and DATE_FORMAT(c.end_time, '%Y-%m') <= #{pageReqVO.endTime[1]}
+ and DATE_FORMAT(c.end_time, '%Y-%m-%d') <= #{pageReqVO.endTime[1]}