Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
zhangshaowu
/
pipi-helper
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 82dcf7cd
authored
Oct 16, 2022
by
weiss
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
272fc736
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
src/main/java/com/pipihelper/project/feishu/controller/FeiShuEventController.java
src/main/java/com/pipihelper/project/scheduled/MassageNoticeScheduleService.java
src/main/java/com/pipihelper/project/feishu/controller/FeiShuEventController.java
View file @
82dcf7c
...
...
@@ -343,7 +343,7 @@ public class FeiShuEventController {
for
(
Pain
pain
:
pains
)
{
String
messageId
=
pain
.
getMessageId
();
massageService
.
updateSingleMassageMsgCardWhenBegin
(
messageId
);
userString
.
append
(
String
.
format
(
"<at user_id=\
\\"%s\\
\">%s</at>"
,
pain
.
getOpenId
(),
pain
.
getName
()));
userString
.
append
(
String
.
format
(
"<at user_id=\
"%s
\">%s</at>"
,
pain
.
getOpenId
(),
pain
.
getName
()));
//1代表正在按
pain
.
setStatus
(
1
);
...
...
@@ -377,6 +377,7 @@ public class FeiShuEventController {
receiveId
=
(
String
)
CacheUtil
.
get
(
"chatId"
);
}
feiShuMsgDTO
.
setReceiveId
(
receiveId
);
log
.
info
(
"已机器人身份发送消息:{}"
,
feiShuMsgDTO
.
toString
());
feiShuApiService
.
sendMsg
(
feiShuMsgDTO
,
receiveIdType
);
return
ResultGenerator
.
genSuccessResult
();
}
...
...
src/main/java/com/pipihelper/project/scheduled/MassageNoticeScheduleService.java
View file @
82dcf7c
...
...
@@ -70,11 +70,11 @@ public class MassageNoticeScheduleService {
floorCountMap
.
put
(
14
,
30
);
}
/**
* 每周四定时生成要按摩的人员名单,并发送大群和单人消息
*/
@Async
@Scheduled
(
cron
=
"0 0 10 * * ?"
)
//
/**
//
* 每周四定时生成要按摩的人员名单,并发送大群和单人消息
//
*/
//
@Async
//
@Scheduled(cron = "0 0 10 * * ?")
public
void
sendMsgCardToPipiChat
()
{
employeeService
.
uprsetAllEmployee
();
chatMessageService
.
deleteAll
();
...
...
@@ -170,7 +170,7 @@ public class MassageNoticeScheduleService {
for
(
Pain
pain
:
pains
)
{
String
messageId
=
pain
.
getMessageId
();
massageService
.
updateSingleMassageMsgCardWhenBegin
(
messageId
);
userString
.
append
(
String
.
format
(
"<at user_id=\
\\"%s\\
\">%s</at>"
,
pain
.
getOpenId
(),
pain
.
getName
()));
userString
.
append
(
String
.
format
(
"<at user_id=\
"%s
\">%s</at>"
,
pain
.
getOpenId
(),
pain
.
getName
()));
//1代表正在按
pain
.
setStatus
(
1
);
painService
.
update
(
pain
);
...
...
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