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 23be7568
authored
Nov 03, 2022
by
liushuangwu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
rob
1 parent
1076cee0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/pipihelper/project/feishu/controller/FeiShuEventController.java
src/main/java/com/pipihelper/project/feishu/controller/FeiShuEventController.java
View file @
23be756
...
@@ -193,7 +193,7 @@ public class FeiShuEventController {
...
@@ -193,7 +193,7 @@ public class FeiShuEventController {
Integer
givUpPainId
=
Integer
.
parseInt
(
feiShuMsgCardEventDTO
.
getAction
().
getValue
().
getKey
().
split
(
"\\."
)[
3
]);
Integer
givUpPainId
=
Integer
.
parseInt
(
feiShuMsgCardEventDTO
.
getAction
().
getValue
().
getKey
().
split
(
"\\."
)[
3
]);
String
robOpenId
=
feiShuMsgCardEventDTO
.
getOpen_id
();
String
robOpenId
=
feiShuMsgCardEventDTO
.
getOpen_id
();
Employee
robEmployee
=
employeeService
.
findByOpenId
(
robOpenId
);
Employee
robEmployee
=
employeeService
.
findByOpenId
(
robOpenId
);
Pain
oldPain
=
pain
Service
.
findByOpenId
(
oldOpenId
);
Employee
oldEmployee
=
employee
Service
.
findByOpenId
(
oldOpenId
);
//oldOpenId 放弃人的openId, robOpenId 抢到人 openId
//oldOpenId 放弃人的openId, robOpenId 抢到人 openId
int
update
=
painService
.
updateByOpenId
(
robOpenId
,
robEmployee
.
getName
(),
oldOpenId
);
int
update
=
painService
.
updateByOpenId
(
robOpenId
,
robEmployee
.
getName
(),
oldOpenId
);
...
@@ -203,7 +203,7 @@ public class FeiShuEventController {
...
@@ -203,7 +203,7 @@ public class FeiShuEventController {
Pain
pain
=
painService
.
findById
(
givUpPainId
);
Pain
pain
=
painService
.
findById
(
givUpPainId
);
String
fileName1
=
String
.
format
(
"/templates/massage-msg-card-rob-end.json"
);
String
fileName1
=
String
.
format
(
"/templates/massage-msg-card-rob-end.json"
);
return
getInteractiveCardStr
(
fileName1
,
"【"
+
old
Pain
.
getName
()
+
"】放弃的资格"
+
"已经被【"
+
pain
.
getName
()
+
"】抢啦,啦啦~"
);
return
getInteractiveCardStr
(
fileName1
,
"【"
+
old
Employee
.
getName
()
+
"】放弃的资格"
+
"已经被【"
+
pain
.
getName
()
+
"】抢啦,啦啦~"
);
}
}
...
...
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