Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
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
manager
Commits
d949d1a9
Commit
d949d1a9
authored
Jan 10, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
location
parent
e5cdfb8f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
workspace.xml
.idea/workspace.xml
+0
-0
AccountTask.java
src/main/java/tkio/task/AccountTask.java
+13
-0
applicationContext-schedule.xml
src/main/resources/spring/applicationContext-schedule.xml
+3
-3
No files found.
.idea/workspace.xml
View file @
d949d1a9
This diff is collapsed.
Click to expand it.
src/main/java/tkio/task/AccountTask.java
View file @
d949d1a9
...
@@ -67,6 +67,19 @@ public class AccountTask {
...
@@ -67,6 +67,19 @@ public class AccountTask {
account4Web
.
setTrackLimit
(
restrict4Web
.
getTrackLimit
());
account4Web
.
setTrackLimit
(
restrict4Web
.
getTrackLimit
());
account4Web
.
setIoStatus
(
restrict4Web
.
getAllowBehavior
());
account4Web
.
setIoStatus
(
restrict4Web
.
getAllowBehavior
());
account4Web
.
setTrackStatus
(
restrict4Web
.
getTrackFlowNotified
());
account4Web
.
setTrackStatus
(
restrict4Web
.
getTrackFlowNotified
());
double
f
=
1.0
;
if
((
account4Web
.
getIo
().
doubleValue
()
!=
0
)
&&
(
null
!=
account4Web
.
getIoLimit
())){
if
((
account4Web
.
getIo
().
doubleValue
()
/
account4Web
.
getIoLimit
().
doubleValue
())
>
f
){
account4Web
.
setIoStatus
(
false
);
account4Web
.
setStatus
(
"流量用尽"
);
}
}
if
((
account4Web
.
getTrack
().
doubleValue
()
!=
0
)
&&
(
null
!=
account4Web
.
getTrackLimit
())){
if
((
account4Web
.
getTrack
().
doubleValue
()
/
account4Web
.
getTrackLimit
().
doubleValue
())
>
f
){
account4Web
.
setTrackStatus
(
false
);
account4Web
.
setStatus
(
"流量用尽"
);
}
}
}
}
account4Web
.
setUser
(
ac
.
getName
());
account4Web
.
setUser
(
ac
.
getName
());
account4Web
.
setTell
(
ac
.
getPhone
());
account4Web
.
setTell
(
ac
.
getPhone
());
...
...
src/main/resources/spring/applicationContext-schedule.xml
View file @
d949d1a9
...
@@ -12,17 +12,17 @@
...
@@ -12,17 +12,17 @@
<bean
id=
"tkioAccountTask"
class=
"tkio.task.AccountTask"
></bean>
<bean
id=
"tkioAccountTask"
class=
"tkio.task.AccountTask"
></bean>
<task:scheduled-tasks>
<task:scheduled-tasks>
<!--//定时同步短链数据(每5分钟执行一次)-->
<!--//定时同步短链数据(每5分钟执行一次)-->
<task:scheduled
ref=
"tkioAccountTask"
method=
"task"
cron=
"0
21 18
* * ?"
/>
<task:scheduled
ref=
"tkioAccountTask"
method=
"task"
cron=
"0
0 20
* * ?"
/>
</task:scheduled-tasks>
</task:scheduled-tasks>
<bean
id=
"tkioNoticeTask"
class=
"tkio.task.NoticeTask"
></bean>
<bean
id=
"tkioNoticeTask"
class=
"tkio.task.NoticeTask"
></bean>
<task:scheduled-tasks>
<task:scheduled-tasks>
<task:scheduled
ref=
"tkioNoticeTask"
method=
"task"
cron=
"0 33
3
* * ?"
/>
<task:scheduled
ref=
"tkioNoticeTask"
method=
"task"
cron=
"0 33
8
* * ?"
/>
</task:scheduled-tasks>
</task:scheduled-tasks>
<bean
id=
"emailTask"
class=
"tkio.task.SendEmailTask"
></bean>
<bean
id=
"emailTask"
class=
"tkio.task.SendEmailTask"
></bean>
<task:scheduled-tasks>
<task:scheduled-tasks>
<task:scheduled
ref=
"emailTask"
method=
"task"
cron=
"0 20
17
* * ?"
/>
<task:scheduled
ref=
"emailTask"
method=
"task"
cron=
"0 20
8
* * ?"
/>
</task:scheduled-tasks>
</task:scheduled-tasks>
<bean
id=
"trackAccountTask"
class=
"track.task.AccountTask"
></bean>
<bean
id=
"trackAccountTask"
class=
"track.task.AccountTask"
></bean>
...
...
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