From 4d730af0447c686133130d0116a0fa3dd82c2dca Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Tue, 10 Nov 2026 01:41:03 +0000
Subject: [PATCH] Merge branch 'wcd-2411-update' into wcd

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

diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/ContractMethod.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/ContractMethod.java
index 42154ee..2eaf4b3 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/ContractMethod.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/ContractMethod.java
@@ -3,6 +3,7 @@
 import lombok.RequiredArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
 import me.zhengjie.modules.constant.Constant;
+import me.zhengjie.modules.contract.service.ContractService;
 import me.zhengjie.modules.quartz.service.impl.WeComServiceImpl;
 import me.zhengjie.modules.system.domain.Role;
 import me.zhengjie.modules.system.domain.SysConfigProportion;
@@ -35,6 +36,7 @@
     private final SysUserContractRepository sysUserContractRepository;
     private final UserRepository userRepository;
     private final WeComServiceImpl weComService;
+    private final ContractService contractService;
 
     // 合同到期提醒
     public void contractRemind() throws Exception {
@@ -48,7 +50,7 @@
             // 获取用户角色
             Role role = user.getRoles().iterator().next();
             // 高级别
-            if (Long.valueOf(role.getLevel()).equals(Constant.ROLE_LEVEL_SUPER) || Long.valueOf(role.getLevel()).equals(Constant.ROLE_LEVEL_GENERAL)) {
+            if (Constant.SUPER_LEVEL_LIST.contains(Long.valueOf(role.getLevel()))) {
                 if (StringUtils.isNotBlank(user.getWeComId())) {
                     weComList.add(user.getWeComId());
                 }
@@ -87,4 +89,9 @@
             }
         }
     }
+
+    // 合同季度统计推送
+    public void contractQuarterlyReport() throws Exception {
+        contractService.contractQuarterlyReport(null);
+    }
 }

--
Gitblit v1.9.3