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
680172fc
Commit
680172fc
authored
Mar 14, 2018
by
carrieyzzhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.minrow.com:reyun/saasio
parents
e7cb3069
058ccb56
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
12 deletions
+20
-12
AccountFlowRestrictServiceImpl.java
...om/reyun/service/impl/AccountFlowRestrictServiceImpl.java
+0
-0
AutoCalculateFlow.java
src/main/java/com/reyun/task/AutoCalculateFlow.java
+12
-3
directive.js
src/main/websrc/js/app/directive.js
+2
-2
judge.js
src/main/websrc/js/common/judge.js
+6
-7
No files found.
src/main/java/com/reyun/service/impl/AccountFlowRestrictServiceImpl.java
View file @
680172fc
This diff is collapsed.
Click to expand it.
src/main/java/com/reyun/task/AutoCalculateFlow.java
View file @
680172fc
...
...
@@ -3,11 +3,13 @@ package com.reyun.task;
import
com.reyun.model.Account
;
import
com.reyun.repository.AccountRepository
;
import
com.reyun.service.AccountFlowRestrictService
;
import
com.reyun.util.DateUtil
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -27,9 +29,16 @@ public class AutoCalculateFlow {
try
{
List
<
Account
>
superAccount
=
accountRepository
.
findSuperAccount
();
for
(
Account
account:
superAccount
){
//System.out.println("**********************************************\n\n");
accountFlowRestrictService
.
RestrictFlowByAccountTask
(
account
.
getId
());
//System.out.println("**********************************************\n\n");
String
pastDate1
=
account
.
getPastDate
();
String
pastDate5
=
DateUtil
.
getBeforeDays
(
pastDate1
,
-
5
);
Date
pastDate
=
DateUtil
.
parseDate
(
pastDate5
);
if
(
DateUtil
.
compareDate
(
pastDate
,
new
Date
())!=-
1
){
try
{
accountFlowRestrictService
.
RestrictFlowByAccountTask
(
account
.
getId
());
}
catch
(
Exception
e
){
logger
.
info
(
e
.
getMessage
());
}
}
}
}
catch
(
Exception
e
){
e
.
printStackTrace
();
...
...
src/main/websrc/js/app/directive.js
View file @
680172fc
...
...
@@ -2049,7 +2049,7 @@
$scope
.
list
=
data
;
$scope
.
noreadList
=
$scope
.
list
.
filter
(
function
(
item
){
return
item
.
isRead
===
fals
e
;
return
item
.
isRead
!=
tru
e
;
})
});
...
...
@@ -2072,7 +2072,7 @@
$scope
.
isDetail
=
true
;
$scope
.
noreadList
=
$scope
.
list
.
filter
(
function
(
item
){
return
item
.
isRead
===
fals
e
;
return
item
.
isRead
!=
tru
e
;
})
}
...
...
src/main/websrc/js/common/judge.js
View file @
680172fc
...
...
@@ -32,7 +32,7 @@
return
"succ"
}
},
obj
=
{
obj
=
{
isNull
:
function
(
option
){
var
options
=
{
val
:
option
.
val
,
...
...
@@ -128,7 +128,7 @@
var
options
=
{
val
:
option
.
val
,
max
:
option
.
max
||
96
,
reg
:
/^
[
a-zA-Z0-9_
\
-\u
4E00-
\u
9FA5
]
+$/
,
reg
:
/^
[
a-zA-Z0-9_
\
s\-\u
4E00-
\u
9FA5
\(\)\(\)
]
+$/
,
regFlag
:
false
,
regTxt
:
option
.
txt
||
optionTxt
.
errorCompany
}
...
...
@@ -237,7 +237,7 @@
}
return
fn
(
options
);
},
pwd
:
function
(
option
){
pwd
:
function
(
option
){
var
options
=
{
val
:
option
.
val
,
// min:6,
...
...
@@ -290,12 +290,12 @@
if
(
infoObj
[
i
].
txt
!=
"succ"
){
infoObj
[
i
].
status
=
true
;
}
if
(
infoObj
[
i
].
status
==
"true"
){
document
.
getElementById
(
i
).
focus
();
var
top
=
document
.
getElementById
(
i
).
offsetTop
document
.
documentElement
.
scrollTop
=
top
-
70
;
break
break
}
}
}
else
{
...
...
@@ -305,4 +305,4 @@
}
return
infoObj
}
})();
\ 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