Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-pe-analysis
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1ecf76d0
authored
Apr 02, 2026
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]组装周报月报的链接参数
1 parent
79c3381d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/service/WeComMessageService.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/service/WeComMessageService.java
View file @
1ecf76d
...
...
@@ -109,8 +109,13 @@ public class WeComMessageService {
}
}
// 构建URL,添加参数
String
baseUrl
=
env
.
getProperty
(
"push.bi.week.url"
)
==
null
?
"https://www.baidu.com"
:
env
.
getProperty
(
"push.bi.week.url"
);
SimpleDateFormat
urlDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
url
=
baseUrl
+
"?reportStartDate="
+
urlDateFormat
.
format
(
startDate
)
+
"&reportEndDate="
+
urlDateFormat
.
format
(
endDate
)
+
"&reportType=1"
;
// 批量发送消息
return
sendBatchWechatMessage
(
toUsers
.
toString
(),
title
,
subTitle
,
dateRange
,
env
.
getProperty
(
"push.bi.week.url"
)==
null
?
"https://www.baidu.com"
:
env
.
getProperty
(
"push.bi.week.url"
)
);
return
sendBatchWechatMessage
(
toUsers
.
toString
(),
title
,
subTitle
,
dateRange
,
url
);
}
catch
(
Exception
e
)
{
log
.
error
(
"批量发送展业周报通知失败"
,
e
);
return
false
;
...
...
@@ -158,8 +163,13 @@ public class WeComMessageService {
}
}
// 构建URL,添加参数
String
baseUrl
=
env
.
getProperty
(
"push.bi.month.url"
)
==
null
?
"https://www.baidu.com"
:
env
.
getProperty
(
"push.bi.month.url"
);
SimpleDateFormat
urlDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
String
url
=
baseUrl
+
"?reportStartDate="
+
urlDateFormat
.
format
(
startDate
)
+
"&reportEndDate="
+
urlDateFormat
.
format
(
endDate
)
+
"&reportType=2"
;
// 批量发送消息
return
sendBatchWechatMessage
(
toUsers
.
toString
(),
title
,
subTitle
,
dateRange
,
env
.
getProperty
(
"push.bi.month.url"
)==
null
?
"https://www.baidu.com"
:
env
.
getProperty
(
"push.bi.month.url"
)
);
return
sendBatchWechatMessage
(
toUsers
.
toString
(),
title
,
subTitle
,
dateRange
,
url
);
}
catch
(
Exception
e
)
{
log
.
error
(
"批量发送展业月报通知失败"
,
e
);
return
false
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment