Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
lei
fzm-joying
Commits
292f86a2
Commit
292f86a2
authored
Mar 18, 2022
by
33
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
09032228
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
NotifyServiceImpl.java
...n/java/com/fzm/common/service/impl/NotifyServiceImpl.java
+8
-1
NotifyController.java
...main/java/com/fzm/portal/controller/NotifyController.java
+2
-2
No files found.
joying-common/src/main/java/com/fzm/common/service/impl/NotifyServiceImpl.java
View file @
292f86a2
...
@@ -43,7 +43,14 @@ public class NotifyServiceImpl implements NotifyService {
...
@@ -43,7 +43,14 @@ public class NotifyServiceImpl implements NotifyService {
@Override
@Override
public
NotifyState
selectByUid
(
Integer
uid
)
{
public
NotifyState
selectByUid
(
Integer
uid
)
{
return
notifyStateMapper
.
selectByUid
(
uid
);
NotifyState
notifyState
=
notifyStateMapper
.
selectByUid
(
uid
);
if
(
notifyState
==
null
)
{
notifyState
=
new
NotifyState
();
notifyState
.
setUid
(
uid
);
notifyState
.
setNumber
(
0
);
notifyState
.
setNids
(
"[]"
);
}
return
notifyState
;
}
}
@Override
@Override
...
...
joying-portal/src/main/java/com/fzm/portal/controller/NotifyController.java
View file @
292f86a2
...
@@ -63,7 +63,7 @@ public class NotifyController {
...
@@ -63,7 +63,7 @@ public class NotifyController {
if
(
vo
!=
null
)
{
if
(
vo
!=
null
)
{
Integer
userId
=
LoginUserInfo
.
getLoginUser
().
getUserId
();
Integer
userId
=
LoginUserInfo
.
getLoginUser
().
getUserId
();
NotifyState
notifyState
=
notifyService
.
selectByUid
(
userId
);
NotifyState
notifyState
=
notifyService
.
selectByUid
(
userId
);
if
(
notifyState
!=
null
)
{
if
(
notifyState
.
getNumber
()
!=
0
)
{
val
nids
=
notifyState
.
getNids
();
val
nids
=
notifyState
.
getNids
();
val
nidArray
=
JSON
.
parseArray
(
nids
,
Integer
.
class
);
val
nidArray
=
JSON
.
parseArray
(
nids
,
Integer
.
class
);
if
(
nidArray
.
contains
(
id
))
{
if
(
nidArray
.
contains
(
id
))
{
...
@@ -83,7 +83,7 @@ public class NotifyController {
...
@@ -83,7 +83,7 @@ public class NotifyController {
public
ResponseModel
<
Boolean
>
allRead
()
{
public
ResponseModel
<
Boolean
>
allRead
()
{
Integer
userId
=
LoginUserInfo
.
getLoginUser
().
getUserId
();
Integer
userId
=
LoginUserInfo
.
getLoginUser
().
getUserId
();
NotifyState
notifyState
=
notifyService
.
selectByUid
(
userId
);
NotifyState
notifyState
=
notifyService
.
selectByUid
(
userId
);
if
(
notifyState
!=
null
)
{
if
(
notifyState
.
getNumber
()
!=
0
)
{
notifyState
.
setNumber
(
0
);
notifyState
.
setNumber
(
0
);
notifyState
.
setNids
(
"[]"
);
notifyState
.
setNids
(
"[]"
);
notifyService
.
updateState
(
notifyState
);
notifyService
.
updateState
(
notifyState
);
...
...
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