From 538b7dc4a871e99a3e6353ec00e3a9e6b0df7e26 Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Wed, 13 Aug 2025 08:18:49 +0000
Subject: [PATCH] 因打卡未闭环导致的工资计算问题修改(限制更新类型)

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/ResourceReminderMethod.java |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/ResourceReminderMethod.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/ResourceReminderMethod.java
index cdc6e8c..120f28d 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/ResourceReminderMethod.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/ResourceReminderMethod.java
@@ -1,6 +1,5 @@
 package me.zhengjie.modules.quartz.task;
 
-import cn.hutool.core.util.ObjectUtil;
 import lombok.RequiredArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
 import me.zhengjie.modules.constant.Constant;
@@ -12,16 +11,13 @@
 
 import java.sql.Timestamp;
 import java.text.SimpleDateFormat;
-import java.time.Instant;
-import java.time.LocalDateTime;
-import java.time.ZoneId;
-import java.time.temporal.ChronoUnit;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
 
 /**
  * 客户资源管理提醒(延时)
+ *
  * @author 魏传栋
  * @date 2023-01-10
  */
@@ -37,6 +33,7 @@
 
     /**
      * 客户资源管理提醒
+     *
      * @throws Exception
      */
     public void resourceReminder() throws Exception {
@@ -45,9 +42,9 @@
         String nowTime = sdf.format(new Date());
         // 查询客户资源管理表
         List<CustomerResources> customerResourcesList = customerResourcesRepository.findAll();
-        for(CustomerResources customerResources : customerResourcesList){
+        for (CustomerResources customerResources : customerResourcesList) {
             // 表中的提醒时间与当前的时间一致,发送钉钉消息
-            if(customerResources.getOpeningTime() != null && customerResources.getOpeningTime().compareTo(Timestamp.valueOf(nowTime)) == 0){
+            if (customerResources.getOpeningTime() != null && customerResources.getOpeningTime().compareTo(Timestamp.valueOf(nowTime)) == 0) {
                 // 企微ID
                 List<String> weComList = new ArrayList<>();
                 // 查询中间表
@@ -61,10 +58,10 @@
                 }
                 // 发送信息至被提醒人企微
                 weComService.sendNotice(weComList, "客户资源管理提示", String.format("<div class=\"normal\">标题:%s</div>" +
-                    "<div class=\"normal\">分类:%s</div>" +
-                    "<div class=\"highlight\">新增客户资源,请登录PMS系统查看。</div>",
-                    customerResources.getTitle(),
-                    customerResources.getClassification()), Constant.WECOM_MESSAGE_TYPE_TEXTCARD);
+                                "<div class=\"normal\">分类:%s</div>" +
+                                "<div class=\"highlight\">新增客户资源,请登录PMS系统查看。</div>",
+                        customerResources.getTitle(),
+                        customerResources.getClassification()), Constant.WECOM_MESSAGE_TYPE_TEXTCARD);
             }
         }
     }

--
Gitblit v1.9.3