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 5e7fa5ba
authored
Oct 16, 2022
by
weiss
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
b27a6a91
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
src/main/java/com/pipihelper/project/feishu/dao/PainDao.java
src/main/java/com/pipihelper/project/feishu/service/PainService.java
src/main/java/com/pipihelper/project/feishu/service/massage/MassageService.java
src/main/resources/mybatis/PainMapper.xml
src/main/java/com/pipihelper/project/feishu/dao/PainDao.java
View file @
5e7fa5b
...
...
@@ -25,9 +25,9 @@ public interface PainDao {
List
<
Pain
>
findListAsc
(
int
limit
);
List
<
Pain
>
findBackIndex
(
@Param
(
value
=
"
index"
)
Integer
index
,
@Param
(
value
=
"limit"
)
int
limit
);
List
<
Pain
>
findBackIndex
(
@Param
(
value
=
"
pindex"
)
Integer
p
index
,
@Param
(
value
=
"limit"
)
int
limit
);
void
deleteAllByFloor
(
int
floor
);
List
<
Pain
>
findAllByFloor
(
int
floor
);
List
<
Pain
>
findAllByFloor
(
@Param
(
value
=
"floor"
)
int
floor
);
}
src/main/java/com/pipihelper/project/feishu/service/PainService.java
View file @
5e7fa5b
...
...
@@ -61,8 +61,8 @@ public class PainService {
return
painDao
.
findListAsc
(
limit
);
}
public
List
<
Pain
>
findBackIndex
(
Integer
index
,
int
limit
)
{
return
painDao
.
findBackIndex
(
index
,
limit
);
public
List
<
Pain
>
findBackIndex
(
Integer
p
index
,
int
limit
)
{
return
painDao
.
findBackIndex
(
p
index
,
limit
);
}
public
void
deleteAllByFloor
(
int
floor
)
{
...
...
src/main/java/com/pipihelper/project/feishu/service/massage/MassageService.java
View file @
5e7fa5b
...
...
@@ -98,7 +98,8 @@ public class MassageService {
//更新群消息
@Async
public
void
updateMassageMsgCardToPiPiChat
(
String
chatId
){
List
<
Pain
>
pains
=
painService
.
findAll
();
List
<
Pain
>
pains
=
painService
.
findAllReorderByFloor
(
14
);
System
.
out
.
println
(
pains
);
String
messageId
=
chatMessageService
.
findListChatAndType
(
chatId
,
1
).
get
(
0
).
getMessageId
();
List
<
List
<
String
>>
pushUser
=
new
ArrayList
<>();
for
(
Pain
pain:
pains
){
...
...
src/main/resources/mybatis/PainMapper.xml
View file @
5e7fa5b
...
...
@@ -33,6 +33,15 @@
</where>
</select>
<select
id=
"findAllByFloor"
parameterType=
"java.lang.Integer"
resultMap=
"PainResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from t_pain
<where>
floor = #{floor}
</where>
</select>
<select
id=
"findBackIndex"
resultMap=
"PainResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
...
...
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