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
159549da
Commit
159549da
authored
Mar 02, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reged
parent
66a27b62
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
59 additions
and
46 deletions
+59
-46
IONotice.java
src/main/java/com/reyun/model/IONotice.java
+11
-0
NoticeRepository.java
src/main/java/com/reyun/repository/NoticeRepository.java
+1
-1
NoticeService.java
src/main/java/com/reyun/service/NoticeService.java
+2
-1
NoticeServiceImpl.java
src/main/java/com/reyun/service/impl/NoticeServiceImpl.java
+6
-5
activation.html
src/main/webapp/activation.html
+4
-4
demo.html
src/main/webapp/demo.html
+2
-2
failure.html
src/main/webapp/failure.html
+4
-4
forget.html
src/main/webapp/forget.html
+4
-4
home1.html
src/main/webapp/home1.html
+4
-4
index.html
src/main/webapp/index.html
+5
-5
login.html
src/main/webapp/login.html
+4
-4
olduser.html
src/main/webapp/olduser.html
+4
-4
resetpwd.html
src/main/webapp/resetpwd.html
+4
-4
lgcom4.js
src/main/webapp/scripts/lgcom4.js
+0
-0
lgui.js
src/main/webapp/scripts/lgui.js
+0
-0
success.html
src/main/webapp/success.html
+4
-4
No files found.
src/main/java/com/reyun/model/IONotice.java
View file @
159549da
...
...
@@ -40,6 +40,8 @@ public class IONotice {
private
Boolean
release
;
private
boolean
isRead
;
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
public
Long
getId
()
{
...
...
@@ -220,4 +222,13 @@ public class IONotice {
public
void
setRelease
(
Boolean
release
)
{
this
.
release
=
release
;
}
@Transient
public
boolean
getIsRead
()
{
return
isRead
;
}
public
void
setIsRead
(
boolean
isRead
)
{
this
.
isRead
=
isRead
;
}
}
src/main/java/com/reyun/repository/NoticeRepository.java
View file @
159549da
...
...
@@ -13,7 +13,7 @@ import java.util.List;
@Transactional
public
interface
NoticeRepository
extends
JpaRepository
<
IONotice
,
Long
>
{
@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
)
@Query
(
value
=
"select * from
io
notice 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
);
...
...
src/main/java/com/reyun/service/NoticeService.java
View file @
159549da
package
com
.
reyun
.
service
;
import
com.reyun.model.IONotice
;
import
com.reyun.model.Notice
;
import
com.reyun.model.UserNoticeLog
;
...
...
@@ -15,7 +16,7 @@ public interface NoticeService {
* @param accountId
* @return
*/
List
<
Notice
>
listRecentDeployNotice
(
Long
accountId
);
List
<
IO
Notice
>
listRecentDeployNotice
(
Long
accountId
);
/**
* 存储用户已读公告数据
...
...
src/main/java/com/reyun/service/impl/NoticeServiceImpl.java
View file @
159549da
...
...
@@ -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.IONotice
;
import
com.reyun.model.Notice
;
import
com.reyun.model.UserNoticeLog
;
import
com.reyun.repository.NoticeRepository
;
...
...
@@ -27,15 +28,15 @@ public class NoticeServiceImpl implements NoticeService {
private
UserNoticeLogRepository
userNoticeLogRepository
;
@Override
public
List
<
Notice
>
listRecentDeployNotice
(
Long
accountId
)
{
public
List
<
IO
Notice
>
listRecentDeployNotice
(
Long
accountId
)
{
List
<
Notice
>
recentDeployNoticeList
=
noticeRepository
.
listRecentDeployNotice
(
accountId
);
List
<
IO
Notice
>
recentDeployNoticeList
=
noticeRepository
.
listRecentDeployNotice
(
accountId
);
if
(!
CollectionUtils
.
isEmpty
(
recentDeployNoticeList
))
{
List
<
Long
>
noticeIdList
=
Lists
.
transform
(
recentDeployNoticeList
,
new
Function
<
Notice
,
Long
>()
{
List
<
Long
>
noticeIdList
=
Lists
.
transform
(
recentDeployNoticeList
,
new
Function
<
IO
Notice
,
Long
>()
{
@Override
public
Long
apply
(
Notice
notice
)
{
public
Long
apply
(
IO
Notice
notice
)
{
return
notice
.
getId
();
}
});
...
...
@@ -43,7 +44,7 @@ public class NoticeServiceImpl implements NoticeService {
for
(
UserNoticeLog
userNoticeLog
:
userNoticeLogList
)
{
for
(
Notice
notice
:
recentDeployNoticeList
)
{
for
(
IO
Notice
notice
:
recentDeployNoticeList
)
{
if
(
notice
.
getId
().
equals
(
userNoticeLog
.
getNoticeid
()))
{
notice
.
setIsRead
(
true
);
...
...
src/main/webapp/activation.html
View file @
159549da
...
...
@@ -7,10 +7,10 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"
name=
"viewport"
>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
type=
"image/x-icon"
>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.1
149984700605273
2"
>
<script
src=
"scripts/change.js?r=0.
5983042535372078
"
></script>
<script
src=
"scripts/regcom1.js?r=0.
30919134919531643
"
></script>
<script
src=
"scripts/regui.js?r=0.
5395845742896199
"
></script>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.1
737791448831558
2"
>
<script
src=
"scripts/change.js?r=0.
038060850696638227
"
></script>
<script
src=
"scripts/regcom1.js?r=0.
22607403295114636
"
></script>
<script
src=
"scripts/regui.js?r=0.
01922464300878346
"
></script>
</head>
<body
ng-app=
"app"
ng-controller=
"acvitationCtrl"
>
...
...
src/main/webapp/demo.html
View file @
159549da
...
...
@@ -7,8 +7,8 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"
name=
"viewport"
>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
type=
"image/x-icon"
>
<script
src=
"scripts/change.js?r=0.
309689408866688
6"
></script>
<script
src=
"scripts/demo.js?r=0.
4911098645534366
4"
></script>
<script
src=
"scripts/change.js?r=0.
172010500216856
6"
></script>
<script
src=
"scripts/demo.js?r=0.
1410575499758124
4"
></script>
<script
type=
"text/javascript"
>
$
.
get
(
"/api/demo"
,
function
(
data
)
{
...
...
src/main/webapp/failure.html
View file @
159549da
...
...
@@ -7,10 +7,10 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"
name=
"viewport"
>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
type=
"image/x-icon"
>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.
7820607058238238
"
>
<script
src=
"scripts/change.js?r=0.
457934606820344
9"
></script>
<script
src=
"scripts/regcom2.js?r=0.
05364771769382059
6"
></script>
<script
src=
"scripts/failure.js?r=0.
984398903790861
4"
></script>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.
5653473353013396
"
>
<script
src=
"scripts/change.js?r=0.
0327852861955761
9"
></script>
<script
src=
"scripts/regcom2.js?r=0.
862185413949191
6"
></script>
<script
src=
"scripts/failure.js?r=0.
2947881179861724
4"
></script>
</head>
<body
ng-app=
"app"
ng-controller=
"failureCtrl"
>
...
...
src/main/webapp/forget.html
View file @
159549da
...
...
@@ -7,10 +7,10 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"
name=
"viewport"
>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
type=
"image/x-icon"
>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.
16757301287725568
"
>
<script
src=
"scripts/change.js?r=0.
8997952970676124
"
></script>
<script
src=
"scripts/regcom3.js?r=0.
05138346133753657
"
></script>
<script
src=
"scripts/forget.js?r=0.
5629009127151221
"
></script>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.
6822654716670513
"
>
<script
src=
"scripts/change.js?r=0.
657221358967945
"
></script>
<script
src=
"scripts/regcom3.js?r=0.
84271992999129
"
></script>
<script
src=
"scripts/forget.js?r=0.
2713923347182572
"
></script>
</head>
<body
ng-app=
"app"
ng-controller=
"forgetCtrl"
>
...
...
src/main/webapp/home1.html
View file @
159549da
...
...
@@ -7,11 +7,11 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"
name=
"viewport"
>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
type=
"image/x-icon"
>
<link
rel=
"stylesheet"
href=
"styles/home.css?r=0.
4897955828346312
"
>
<link
rel=
"stylesheet"
href=
"styles/home.css?r=0.
7975225732661784
"
>
<script
src=
"scripts/change.js?r=0.3
161861866246909
"
></script>
<script
src=
"scripts/home.js?r=0.
4197241072542965
4"
></script>
<script
src=
"scripts/homectrl.js?r=0.
3761741151101887
"
></script>
<script
src=
"scripts/change.js?r=0.3
572810667101294
"
></script>
<script
src=
"scripts/home.js?r=0.
00555816804990172
4"
></script>
<script
src=
"scripts/homectrl.js?r=0.
6156439066398889
"
></script>
<script>
var
_hmt
=
_hmt
||
[];
...
...
src/main/webapp/index.html
View file @
159549da
...
...
@@ -8,12 +8,12 @@
<meta
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"
name=
"viewport"
>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
type=
"image/x-icon"
>
<link
rel=
"stylesheet"
href=
"styles/index.css?r=0.
1538209819700569
"
>
<script
src=
"scripts/change.js?r=0.7
190487270709127
"
></script>
<script
src=
"scripts/com.js?r=0.
1410635078791529
"
></script>
<script
src=
"scripts/app.js?r=0.
5087753545958549
"
></script>
<link
rel=
"stylesheet"
href=
"styles/index.css?r=0.
5801727620419115
"
>
<script
src=
"scripts/change.js?r=0.7
636903643142432
"
></script>
<script
src=
"scripts/com.js?r=0.
22119453037157655
"
></script>
<script
src=
"scripts/app.js?r=0.
4161588044371456
"
></script>
<script
src=
"scripts/ui.js?r=0.
08424989180639386
"
></script>
<script
src=
"scripts/ui.js?r=0.
7564062932506204
"
></script>
</head>
<body
ng-app=
"app"
ng-controller=
"indexCtrl"
ng-class=
"{'noreport':backReport}"
>
...
...
src/main/webapp/login.html
View file @
159549da
...
...
@@ -7,11 +7,11 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"
name=
"viewport"
>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
type=
"image/x-icon"
>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.
9707226229365915
"
>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.
24616998224519193
"
>
<script
src=
"scripts/change.js?r=0.
7923258431255817
"
></script>
<script
src=
"scripts/lgcom4.js?r=0.
473345436854288
"
></script>
<script
src=
"scripts/lgui.js?r=0.
598888747626915
6"
></script>
<script
src=
"scripts/change.js?r=0.
12761787860654294
"
></script>
<script
src=
"scripts/lgcom4.js?r=0.
1754848170094192
"
></script>
<script
src=
"scripts/lgui.js?r=0.
0916606662794947
6"
></script>
<script>
var
_hmt
=
_hmt
||
[];
...
...
src/main/webapp/olduser.html
View file @
159549da
...
...
@@ -7,10 +7,10 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"
name=
"viewport"
>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
type=
"image/x-icon"
>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.
6317339739762247
"
>
<script
src=
"scripts/change.js?r=0.
765358435688540
3"
></script>
<script
src=
"scripts/regcom5.js?r=0.
603286042576655
7"
></script>
<script
src=
"scripts/olduser.js?r=0.
24770011520013213
"
></script>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.
5256118897814304
"
>
<script
src=
"scripts/change.js?r=0.
1949496595188975
3"
></script>
<script
src=
"scripts/regcom5.js?r=0.
703047844115644
7"
></script>
<script
src=
"scripts/olduser.js?r=0.
805714696412906
"
></script>
</head>
<body
ng-app=
"app"
ng-controller=
"olduserCtrl"
>
...
...
src/main/webapp/resetpwd.html
View file @
159549da
...
...
@@ -7,10 +7,10 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"
name=
"viewport"
>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
type=
"image/x-icon"
>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.
7661028518341482
"
>
<script
src=
"scripts/change.js?r=0.
2717249090783298
"
></script>
<script
src=
"scripts/regcom7.js?r=0.
21323158033192158
"
></script>
<script
src=
"scripts/resetpwd.js?r=0.
5238363628741354
"
></script>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.
16613134928047657
"
>
<script
src=
"scripts/change.js?r=0.
36895587225444615
"
></script>
<script
src=
"scripts/regcom7.js?r=0.
7115389341488481
"
></script>
<script
src=
"scripts/resetpwd.js?r=0.
39234541240148246
"
></script>
</head>
<body
ng-app=
"app"
ng-controller=
"resetpwdCtrl"
>
...
...
src/main/webapp/scripts/lgcom4.js
View file @
159549da
This diff is collapsed.
Click to expand it.
src/main/webapp/scripts/lgui.js
View file @
159549da
This diff is collapsed.
Click to expand it.
src/main/webapp/success.html
View file @
159549da
...
...
@@ -7,10 +7,10 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"
name=
"viewport"
>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
type=
"image/x-icon"
>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.
8155621050391346
"
>
<script
src=
"scripts/change.js?r=0.
48537470446899533
"
></script>
<script
src=
"scripts/regcom8.js?r=0.
015657729003578424
"
></script>
<script
src=
"scripts/success.js?r=0.
23272478976286948
"
></script>
<link
rel=
"stylesheet"
href=
"styles/login.css?r=0.
9278655003290623
"
>
<script
src=
"scripts/change.js?r=0.
08022567885927856
"
></script>
<script
src=
"scripts/regcom8.js?r=0.
8265951636712998
"
></script>
<script
src=
"scripts/success.js?r=0.
4393018090631813
"
></script>
</head>
<body
ng-app=
"app"
ng-controller=
"successCtrl"
>
...
...
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