1
This commit is contained in:
@@ -227,6 +227,8 @@ jarvis:
|
|||||||
enabled: true
|
enabled: true
|
||||||
# 接收人 UserID,多个逗号或 |;留空则回退 goofish-notify-touser
|
# 接收人 UserID,多个逗号或 |;留空则回退 goofish-notify-touser
|
||||||
touser: ""
|
touser: ""
|
||||||
|
# 企微应用 AgentId,须与 wxSend qywx.app.reportAgentId 一致
|
||||||
|
agent-id: "1000014"
|
||||||
daily-cron: "0 0 21 * * ?"
|
daily-cron: "0 0 21 * * ?"
|
||||||
weekly-cron: "0 20 8 ? * MON"
|
weekly-cron: "0 20 8 ? * MON"
|
||||||
monthly-cron: "0 30 8 1 * ?"
|
monthly-cron: "0 30 8 1 * ?"
|
||||||
|
|||||||
@@ -222,6 +222,7 @@ jarvis:
|
|||||||
order-profit-analysis:
|
order-profit-analysis:
|
||||||
enabled: true
|
enabled: true
|
||||||
touser: ""
|
touser: ""
|
||||||
|
agent-id: "1000014"
|
||||||
daily-cron: "0 0 23 * * ?"
|
daily-cron: "0 0 23 * * ?"
|
||||||
weekly-cron: "0 20 8 ? * MON"
|
weekly-cron: "0 20 8 ? * MON"
|
||||||
monthly-cron: "0 30 8 1 * ?"
|
monthly-cron: "0 30 8 1 * ?"
|
||||||
|
|||||||
+7
-2
@@ -126,6 +126,10 @@ public class OrderProfitAnalysisServiceImpl implements IOrderProfitAnalysisServi
|
|||||||
@Value("${jarvis.order-profit-analysis.touser:}")
|
@Value("${jarvis.order-profit-analysis.touser:}")
|
||||||
private String analysisTouser;
|
private String analysisTouser;
|
||||||
|
|
||||||
|
/** 企微应用 AgentId,须与 wxSend qywx.app.reportAgentId 一致 */
|
||||||
|
@Value("${jarvis.order-profit-analysis.agent-id:1000014}")
|
||||||
|
private String analysisAgentId;
|
||||||
|
|
||||||
@Value("${jarvis.wecom.goofish-notify-touser:}")
|
@Value("${jarvis.wecom.goofish-notify-touser:}")
|
||||||
private String fallbackTouser;
|
private String fallbackTouser;
|
||||||
|
|
||||||
@@ -451,8 +455,9 @@ public class OrderProfitAnalysisServiceImpl implements IOrderProfitAnalysisServi
|
|||||||
if (chunks == null || chunks.isEmpty()) {
|
if (chunks == null || chunks.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
log.info("利润分析推送拆成 {} 条 toUser={}", chunks.size(), toUser);
|
String agentId = StringUtils.isNotEmpty(analysisAgentId) ? analysisAgentId.trim() : "1000014";
|
||||||
return phoneForwardActivePush.schedulePushChunks(toUser, null, chunks);
|
log.info("利润分析推送拆成 {} 条 toUser={} agentId={}", chunks.size(), toUser, agentId);
|
||||||
|
return phoneForwardActivePush.schedulePushChunks(toUser, agentId, chunks);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static List<String> labelChunks(List<String> chunks) {
|
private static List<String> labelChunks(List<String> chunks) {
|
||||||
|
|||||||
Reference in New Issue
Block a user