From 45865d418f8536e7e90bff68f3a094c870ba3367 Mon Sep 17 00:00:00 2001 From: du <1725534722@qq.com> Date: Fri, 21 Jun 2024 10:18:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=9A=E6=97=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/jjh/declaration/regular/TimeChange.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/regular/TimeChange.java b/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/regular/TimeChange.java index a30962f..62962b2 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/regular/TimeChange.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/jjh/declaration/regular/TimeChange.java @@ -62,6 +62,9 @@ public class TimeChange { if(currentDate.isAfter(endDate)){ items.setStatus(1); } + if (currentDate.equals(startDate)||currentDate.equals(endDate)) { + items.setStatus(2); + } if (currentDate.isAfter(startDate) && currentDate.isBefore(endDate)) { items.setStatus(2); }