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
66a27b62
Commit
66a27b62
authored
7 years ago
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reged
parent
5baa703d
master
…
20180326_events4track
30921_bugfix
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
227 additions
and
5 deletions
+227
-5
IONotice.java
src/main/java/com/reyun/model/IONotice.java
+223
-0
NoticeRepository.java
src/main/java/com/reyun/repository/NoticeRepository.java
+4
-5
No files found.
src/main/java/com/reyun/model/IONotice.java
0 → 100644
View file @
66a27b62
package
com
.
reyun
.
model
;
import
javax.persistence.*
;
import
javax.validation.constraints.NotNull
;
import
java.util.Date
;
/**
* Created by admin on 2017/3/3.
*/
@Entity
public
class
IONotice
{
private
Long
id
;
@NotNull
private
String
title
;
@NotNull
private
String
content
;
private
Boolean
isdeploy
;
private
Date
deployDate
;
private
Date
createDate
;
private
Date
endDate
;
private
String
createUser
;
private
Date
modifyDate
;
private
String
modifyUser
;
private
Boolean
is_top
;
private
Long
deployAccountId
;
private
String
deployUserName
;
private
String
deployAccountEmail
;
private
Long
ioAccount
;
private
Long
trackAccount
;
private
String
trackAccountList
;
private
String
ioAccountList
;
private
Boolean
trackAll
;
private
Boolean
ioAll
;
private
String
accountType
;
private
Boolean
release
;
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getContent
()
{
return
content
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
public
Boolean
getIsdeploy
()
{
return
isdeploy
;
}
public
void
setIsdeploy
(
Boolean
isdeploy
)
{
this
.
isdeploy
=
isdeploy
;
}
public
Date
getDeployDate
()
{
return
deployDate
;
}
public
void
setDeployDate
(
Date
deployDate
)
{
this
.
deployDate
=
deployDate
;
}
public
Date
getCreateDate
()
{
return
createDate
;
}
public
void
setCreateDate
(
Date
createDate
)
{
this
.
createDate
=
createDate
;
}
public
Date
getEndDate
()
{
return
endDate
;
}
public
void
setEndDate
(
Date
endDate
)
{
this
.
endDate
=
endDate
;
}
public
String
getCreateUser
()
{
return
createUser
;
}
public
void
setCreateUser
(
String
createUser
)
{
this
.
createUser
=
createUser
;
}
public
Date
getModifyDate
()
{
return
modifyDate
;
}
public
void
setModifyDate
(
Date
modifyDate
)
{
this
.
modifyDate
=
modifyDate
;
}
public
String
getModifyUser
()
{
return
modifyUser
;
}
public
void
setModifyUser
(
String
modifyUser
)
{
this
.
modifyUser
=
modifyUser
;
}
public
Boolean
getIs_top
()
{
return
is_top
;
}
public
void
setIs_top
(
Boolean
is_top
)
{
this
.
is_top
=
is_top
;
}
public
Long
getDeployAccountId
()
{
return
deployAccountId
;
}
public
void
setDeployAccountId
(
Long
deployAccountId
)
{
this
.
deployAccountId
=
deployAccountId
;
}
public
String
getDeployUserName
()
{
return
deployUserName
;
}
public
void
setDeployUserName
(
String
deployUserName
)
{
this
.
deployUserName
=
deployUserName
;
}
public
String
getDeployAccountEmail
()
{
return
deployAccountEmail
;
}
public
void
setDeployAccountEmail
(
String
deployAccountEmail
)
{
this
.
deployAccountEmail
=
deployAccountEmail
;
}
public
Long
getIoAccount
()
{
return
ioAccount
;
}
public
void
setIoAccount
(
Long
ioAccount
)
{
this
.
ioAccount
=
ioAccount
;
}
@Transient
public
Long
getTrackAccount
()
{
return
trackAccount
;
}
public
void
setTrackAccount
(
Long
trackAccount
)
{
this
.
trackAccount
=
trackAccount
;
}
public
String
getTrackAccountList
()
{
return
trackAccountList
;
}
public
void
setTrackAccountList
(
String
trackAccountList
)
{
this
.
trackAccountList
=
trackAccountList
;
}
public
String
getIoAccountList
()
{
return
ioAccountList
;
}
public
void
setIoAccountList
(
String
ioAccountList
)
{
this
.
ioAccountList
=
ioAccountList
;
}
public
String
getAccountType
()
{
return
accountType
;
}
public
void
setAccountType
(
String
accountType
)
{
this
.
accountType
=
accountType
;
}
public
Boolean
getTrackAll
()
{
return
trackAll
;
}
public
void
setTrackAll
(
Boolean
trackAll
)
{
this
.
trackAll
=
trackAll
;
}
public
Boolean
getIoAll
()
{
return
ioAll
;
}
public
void
setIoAll
(
Boolean
ioAll
)
{
this
.
ioAll
=
ioAll
;
}
@Transient
public
Boolean
getRelease
()
{
return
release
;
}
public
void
setRelease
(
Boolean
release
)
{
this
.
release
=
release
;
}
}
This diff is collapsed.
Click to expand it.
src/main/java/com/reyun/repository/NoticeRepository.java
View file @
66a27b62
package
com
.
reyun
.
repository
;
import
com.reyun.model.Notice
;
import
com.reyun.model.
IO
Notice
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Date
;
import
java.util.List
;
/**
* Created by sunhao on 17/3/1.
*/
@Transactional
public
interface
NoticeRepository
extends
JpaRepository
<
Notice
,
Long
>
{
public
interface
NoticeRepository
extends
JpaRepository
<
IO
Notice
,
Long
>
{
@Query
(
value
=
"select * from notice n where n.isdeploy is true and (io_account = ?1 or io_account = -1)"
,
nativeQuery
=
true
)
List
<
Notice
>
listRecentDeployNotice
(
Long
account
);
@Query
(
value
=
"select * from notice n where n.isdeploy is true and (io_account = ?1 or io_account = -1)
order by id desc
"
,
nativeQuery
=
true
)
List
<
IO
Notice
>
listRecentDeployNotice
(
Long
account
);
}
This diff is collapsed.
Click to expand it.
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