From 0e50c8beb68006e290bb6f950507445db6a7a49f Mon Sep 17 00:00:00 2001
From: DESKTOP-6GG29MI\dell <2847338803@qq.com>
Date: Wed, 17 Sep 2025 09:16:45 +0000
Subject: [PATCH] 项目报销添加新查询条件
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/service/impl/WeComServiceImpl.java | 25 ++++++++++++++++++++-----
1 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/service/impl/WeComServiceImpl.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/service/impl/WeComServiceImpl.java
index 9e20816..061222b 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/service/impl/WeComServiceImpl.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/service/impl/WeComServiceImpl.java
@@ -192,7 +192,7 @@
public void getWeComAttendanceListOfNoon(String attendDate, List attUser) throws Exception {
try {
// 获取企业微信Token
- wxCpService.getAccessToken(true);
+ wxCpService.getAccessToken();
// 获取参数日期类
Calendar calAttendDate = Calendar.getInstance();
@@ -322,6 +322,9 @@
}
} catch (WxErrorException wxErrorException) {
wxErrorException.printStackTrace();
+ sendNotice(Arrays.asList("YueYuHuanXiangQinYuFenDou"), "企微通信异常", String.format("<div class=\"normal\">异常方法:%s</div>" +
+ "<div class=\"highlight\">请前往API服务查看LOG。</div>",
+ "getWeComAttendanceListOfNoon"), Constant.WECOM_MESSAGE_TYPE_TEXTCARD);
}
}
@@ -335,7 +338,7 @@
public void getWeComAttendanceListOfNight(String attendDate, List attUser) throws Exception {
try {
// 获取企业微信Token
- wxCpService.getAccessToken(true);
+ wxCpService.getAccessToken();
// 获取参数日期类
Calendar calAttendDate = Calendar.getInstance();
@@ -467,6 +470,9 @@
}
} catch (WxErrorException wxErrorException) {
wxErrorException.printStackTrace();
+ sendNotice(Arrays.asList("YueYuHuanXiangQinYuFenDou"), "企微通信异常", String.format("<div class=\"normal\">异常方法:%s</div>" +
+ "<div class=\"highlight\">请前往API服务查看LOG。</div>",
+ "getWeComAttendanceListOfNight"), Constant.WECOM_MESSAGE_TYPE_TEXTCARD);
}
}
@@ -1092,7 +1098,7 @@
if (userWeComIdList.size() > 0) {
try {
// 获取企业微信Token
- wxCpService.getAccessToken(true);
+ wxCpService.getAccessToken();
// 编辑消息
WxCpMessage wxCpMessage = new WxCpMessage();
@@ -1131,6 +1137,9 @@
wxCpService.getMessageService().send(wxCpMessage);
} catch (WxErrorException wxErrorException) {
wxErrorException.printStackTrace();
+// sendNotice(Arrays.asList("YueYuHuanXiangQinYuFenDou"), "企微通信异常", String.format("<div class=\"normal\">异常方法:%s</div>" +
+// "<div class=\"highlight\">请前往API服务查看LOG。</div>",
+// "sendNotice"), Constant.WECOM_MESSAGE_TYPE_TEXTCARD);
}
}
}
@@ -1261,7 +1270,7 @@
try {
// 获取企业微信Token
- wxCpService.getAccessToken(true);
+ wxCpService.getAccessToken();
// 查询现有子表信息
WxCpSheetQueryRequest sheetQueryRequest = new WxCpSheetQueryRequest();
@@ -1515,6 +1524,9 @@
}
} catch (WxErrorException wxErrorException) {
wxErrorException.printStackTrace();
+ sendNotice(Arrays.asList("YueYuHuanXiangQinYuFenDou"), "企微通信异常", String.format("<div class=\"normal\">异常方法:%s</div>" +
+ "<div class=\"highlight\">请前往API服务查看LOG。</div>",
+ "toWecomSheetPushWeeklyReport"), Constant.WECOM_MESSAGE_TYPE_TEXTCARD);
} catch (Exception e) {
e.printStackTrace();
}
@@ -1545,7 +1557,7 @@
try {
// 获取企业微信Token
- wxCpService.getAccessToken(true);
+ wxCpService.getAccessToken();
// 查询现有子表信息
WxCpSheetQueryRequest sheetQueryRequest = new WxCpSheetQueryRequest();
@@ -2050,6 +2062,9 @@
}
} catch (WxErrorException wxErrorException) {
wxErrorException.printStackTrace();
+ sendNotice(Arrays.asList("YueYuHuanXiangQinYuFenDou"), "企微通信异常", String.format("<div class=\"normal\">异常方法:%s</div>" +
+ "<div class=\"highlight\">请前往API服务查看LOG。</div>",
+ "toWeComSheetPushProjectReport"), Constant.WECOM_MESSAGE_TYPE_TEXTCARD);
} catch (Exception e) {
e.printStackTrace();
}
--
Gitblit v1.9.3