Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
328c40d5
Commit
328c40d5
authored
Dec 06, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息提醒状态显示修改
parent
8cd9a3be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
12 deletions
+18
-12
RectifyMsgController.java
.../boot/module/ugp/biz/controller/RectifyMsgController.java
+4
-12
RectifyMsgServiceImpl.java
...ot/module/ugp/biz/service/impl/RectifyMsgServiceImpl.java
+14
-0
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/RectifyMsgController.java
View file @
328c40d5
...
...
@@ -129,15 +129,6 @@ public class RectifyMsgController extends BaseController {
Page
page
=
new
Page
(
current
,
size
);
List
<
MsgNoticeDto
>
msgNoticeDtoList
=
new
ArrayList
<>();
msgNoticeDtoList
.
addAll
(
rectifyMsgServiceImpl
.
msgNotice
(
isRead
));
if
(
isRead
){
for
(
MsgNoticeDto
msgNoticeDto:
msgNoticeDtoList
){
msgNoticeDto
.
setStatus
(
"已读"
);
}
}
else
{
for
(
MsgNoticeDto
msgNoticeDto:
msgNoticeDtoList
){
msgNoticeDto
.
setStatus
(
"未读"
);
}
}
page
.
setRecords
(
msgNoticeDtoList
);
page
.
setTotal
(
msgNoticeDtoList
.
size
());
return
ResponseHelper
.
buildResponse
(
page
);
...
...
@@ -153,9 +144,10 @@ public class RectifyMsgController extends BaseController {
if
(!
ValidationUtil
.
isEmpty
(
msgNoticeDtoList
))
{
for
(
MsgNoticeDto
msgNoticeDto:
msgNoticeDtoList
){
msgNoticeDto
.
setStatus
(
"已读"
);
}
if
(!
isRead
)
{
isRead
=
true
;
}
if
(!
ValidationUtil
.
isEmpty
(
isRead
))
{
if
(!
isRead
)
{
isRead
=
true
;
}
}
}
page
.
setRecords
(
msgNoticeDtoList
);
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/RectifyMsgServiceImpl.java
View file @
328c40d5
...
...
@@ -92,6 +92,13 @@ public class RectifyMsgServiceImpl extends BaseService<RectifyMsgDto,RectifyMsg,
msgNoticeDto
.
setType
(
form
);
msgNoticeDto
.
setContent
(
context
);
}
if
(!
ValidationUtil
.
isEmpty
(
installNoticeMsg
.
getIsRead
())){
if
(
installNoticeMsg
.
getIsRead
()){
msgNoticeDto
.
setStatus
(
"已读"
);
}
else
{
msgNoticeDto
.
setStatus
(
"未读"
);
}
}
msgNoticeDto
.
setCreateDate
(
installNoticeMsg
.
getSendTime
());
msgNoticeDto
.
setSequenceNbr
(
installNoticeMsg
.
getSequenceNbr
());
msgNoticeDtoList
.
add
(
msgNoticeDto
);
...
...
@@ -105,6 +112,13 @@ public class RectifyMsgServiceImpl extends BaseService<RectifyMsgDto,RectifyMsg,
msgNoticeDto
.
setType
(
contents
.
substring
(
contents
.
indexOf
(
'【'
)
+
1
,
contents
.
indexOf
(
"】"
)));
msgNoticeDto
.
setContent
(
contents
.
substring
(
contents
.
indexOf
(
"】"
)
+
1
));
}
if
(!
ValidationUtil
.
isEmpty
(
rectifyMsg
.
getIsRead
())){
if
(
rectifyMsg
.
getIsRead
()){
msgNoticeDto
.
setStatus
(
"已读"
);
}
else
{
msgNoticeDto
.
setStatus
(
"未读"
);
}
}
msgNoticeDto
.
setCreateDate
(
rectifyMsg
.
getSendTime
());
msgNoticeDto
.
setSequenceNbr
(
rectifyMsg
.
getSequenceNbr
());
msgNoticeDtoList
.
add
(
msgNoticeDto
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment