From d55d074bfc1960cde8d27c0c21555c5e8a1021c3 Mon Sep 17 00:00:00 2001 From: guoshengxiong <1923636941@qq.com> Date: Fri, 27 Jun 2025 19:43:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E9=87=91=E6=B9=BE=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E8=80=83=E5=8B=A4bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../worker/service/impl/WorkerAttendanceServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/zhgd/xmgl/modules/worker/service/impl/WorkerAttendanceServiceImpl.java b/src/main/java/com/zhgd/xmgl/modules/worker/service/impl/WorkerAttendanceServiceImpl.java index fff577265..e31ca73ec 100644 --- a/src/main/java/com/zhgd/xmgl/modules/worker/service/impl/WorkerAttendanceServiceImpl.java +++ b/src/main/java/com/zhgd/xmgl/modules/worker/service/impl/WorkerAttendanceServiceImpl.java @@ -1433,7 +1433,7 @@ status 状态码 String 1表示成功;其余表示失败 PresentDayByMonthVo vo = new PresentDayByMonthVo(); String month = DateUtil.format(date, "yyyy-MM"); vo.setMonth(month); - vo.setAttendance(Optional.ofNullable(date2PresentMap.get(DateUtil.formatDate(date))).map(PresentDayByMonthVo::getAttendance).orElse(0)); + vo.setAttendance(Optional.ofNullable(date2PresentMap.get(month)).map(PresentDayByMonthVo::getAttendance).orElse(0)); int betweenDay; Date firstDate; Date lastDate;