Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
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
周健威
rs-cloud-platform
Commits
0d53e26b
Commit
0d53e26b
authored
Jan 25, 2021
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
2a2634ac
48fd0e08
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
AppUserLoginBiz.java
...om/github/wxiaoqi/security/admin/biz/AppUserLoginBiz.java
+1
-1
NoticeInfoBiz.java
...ava/com/upyuns/platform/rs/website/biz/NoticeInfoBiz.java
+10
-0
NoticeInfoWebController.java
...rm/rs/website/controller/web/NoticeInfoWebController.java
+7
-0
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserLoginBiz.java
View file @
0d53e26b
...
...
@@ -176,7 +176,7 @@ public class AppUserLoginBiz extends BaseBiz<AppUserLoginMapper, AppUserLogin> {
public
AppUserLogin
checkeUserLogin
(
String
username
)
{
Example
example
=
new
Example
(
AppUserLogin
.
class
);
example
.
createCriteria
().
andEqualTo
(
"username"
,
username
).
andEqualTo
(
"isdel"
,
0
)
.
andEqualTo
(
"status"
,
0
)
;
example
.
createCriteria
().
andEqualTo
(
"username"
,
username
).
andEqualTo
(
"isdel"
,
0
);
List
<
AppUserLogin
>
userLoginList
=
mapper
.
selectByExample
(
example
);
if
(
userLoginList
!=
null
&&
userLoginList
.
size
()
!=
0
)
{
return
userLoginList
.
get
(
0
);
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/NoticeInfoBiz.java
View file @
0d53e26b
...
...
@@ -118,4 +118,14 @@ public class NoticeInfoBiz extends BaseBiz<NoticeInfoMapper,NoticeInfo> {
}
return
ObjectRestResponse
.
succ
();
}
public
ObjectRestResponse
countObj
(
NoticeInfoDto
noticeInfoDto
)
{
Example
example
=
new
Example
(
NoticeInfo
.
class
);
Example
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andEqualTo
(
"isRead"
,
1
);
criteria
.
andEqualTo
(
"userId"
,
noticeInfoDto
.
getUserId
());
criteria
.
andEqualTo
(
"isDel"
,
0
);
return
ObjectRestResponse
.
succ
(
mapper
.
selectCountByExample
(
example
));
}
}
\ No newline at end of file
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/controller/web/NoticeInfoWebController.java
View file @
0d53e26b
...
...
@@ -48,4 +48,11 @@ public class NoticeInfoWebController extends BaseController<NoticeInfoBiz,Notice
noticeInfoDto
.
setUserId
(
Integer
.
parseInt
(
getCurrentUserId
()));
return
baseBiz
.
updateAll
(
noticeInfoDto
);
}
@GetMapping
(
value
=
"countObj"
)
public
ObjectRestResponse
countObj
(
NoticeInfoDto
noticeInfoDto
)
{
noticeInfoDto
.
setUserId
(
Integer
.
parseInt
(
getCurrentUserId
()));
return
baseBiz
.
countObj
(
noticeInfoDto
);
}
}
\ No newline at end of file
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