Commit 6d82a60a by 张富康

chore(perfSalary): 添加企微通知请求日志打印

- 在EffectiveReferralReviewQwService各通知调用接口前增加JSON格式日志输出
- 在PerfQwNotificationService发送企微应用消息处增加请求信息日志打印
- 引入cn.hutool.json.JSONUtil用于日志格式化输出
- 方便追踪企微消息请求内容,提升问题排查效率
1 parent 5a3578d9
......@@ -13,6 +13,7 @@ import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import org.oreframework.boot.env.OrePropertyConfigurer;
import org.springframework.stereotype.Service;
......@@ -90,6 +91,7 @@ public class EffectiveReferralReviewQwService {
textCard.setUrl(url);
requestDTO.setTextCard(textCard);
try {
log.info("通知区域经理-调用企微通知接口:{}", JSONUtil.toJsonStr(requestDTO));
qWManager.sendMessage(requestDTO);
} catch (Exception e) {
log.error("发送企微应用消息异常:", e);
......@@ -152,6 +154,7 @@ public class EffectiveReferralReviewQwService {
// textCard.setUrl(url);
requestDTO.setTextCard(textCard);
try {
log.info("通知总部运营-调用企微通知接口:{}", JSONUtil.toJsonStr(requestDTO));
qWManager.sendMessage(requestDTO);
} catch (Exception e) {
log.error("发送企微应用消息异常:", e);
......@@ -202,6 +205,7 @@ public class EffectiveReferralReviewQwService {
// textCard.setUrl(url);
requestDTO.setTextCard(textCard);
try {
log.info("通知线上运营符合有效引荐数-调用企微通知接口:{}", JSONUtil.toJsonStr(requestDTO));
qWManager.sendMessage(requestDTO);
} catch (Exception e) {
log.error("发送企微应用消息异常:", e);
......@@ -248,6 +252,7 @@ public class EffectiveReferralReviewQwService {
textCard.setUrl(url);
requestDTO.setTextCard(textCard);
try {
log.info("通知区域运营已确认有效引荐数-调用企微通知接口:{}", JSONUtil.toJsonStr(requestDTO));
qWManager.sendMessage(requestDTO);
} catch (Exception e) {
log.error("发送企微应用消息异常:", e);
......
......@@ -13,6 +13,7 @@ import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import org.oreframework.boot.env.OrePropertyConfigurer;
import org.springframework.stereotype.Service;
......@@ -81,6 +82,7 @@ public class PerfQwNotificationService {
textCard.setUrl(url);
requestDTO.setTextCard(textCard);
try {
log.info("绩效评分开始-通知区域运营-发送企微应用消息:{}", JSONUtil.toJsonStr(requestDTO));
qWManager.sendMessage(requestDTO);
} catch (Exception e) {
log.error("发送企微应用消息异常:", e);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!