Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saasio
Project
Overview
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
reyun
saasio
Commits
e8707ea2
Commit
e8707ea2
authored
Mar 02, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reged
parent
a5cb65f3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
NoticeRepository.java
src/main/java/com/reyun/repository/NoticeRepository.java
+2
-2
NoticeServiceImpl.java
src/main/java/com/reyun/service/impl/NoticeServiceImpl.java
+2
-1
No files found.
src/main/java/com/reyun/repository/NoticeRepository.java
View file @
e8707ea2
...
...
@@ -13,8 +13,8 @@ import java.util.List;
@Transactional
public
interface
NoticeRepository
extends
JpaRepository
<
IONotice
,
Long
>
{
@Query
(
value
=
"select * from ionotice n where n.isdeploy is true and (io_account
= ?1 or io_account = -1) order by id
desc"
,
nativeQuery
=
true
)
List
<
IONotice
>
listRecentDeployNotice
(
Long
account
);
@Query
(
value
=
"select * from ionotice n where n.isdeploy is true and (io_account
like %?1% or io_account = -1) order by deploy_date
desc"
,
nativeQuery
=
true
)
List
<
IONotice
>
listRecentDeployNotice
(
String
email
);
}
src/main/java/com/reyun/service/impl/NoticeServiceImpl.java
View file @
e8707ea2
...
...
@@ -2,6 +2,7 @@ package com.reyun.service.impl;
import
com.google.common.base.Function
;
import
com.google.common.collect.Lists
;
import
com.reyun.model.Account
;
import
com.reyun.model.IONotice
;
import
com.reyun.model.Notice
;
import
com.reyun.model.UserNoticeLog
;
...
...
@@ -30,7 +31,7 @@ public class NoticeServiceImpl implements NoticeService {
@Override
public
List
<
IONotice
>
listRecentDeployNotice
(
Long
accountId
)
{
List
<
IONotice
>
recentDeployNoticeList
=
noticeRepository
.
listRecentDeployNotice
(
accountId
);
List
<
IONotice
>
recentDeployNoticeList
=
noticeRepository
.
listRecentDeployNotice
(
"<"
+
accountId
+
">"
);
if
(!
CollectionUtils
.
isEmpty
(
recentDeployNoticeList
))
{
...
...
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