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
d1d20b07
Commit
d1d20b07
authored
Jan 04, 2018
by
manxiaoqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pom
parent
0cb3072d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
+13
-2
pom.xml
pom.xml
+1
-1
Account4Web.java
src/main/java/common/model/Account4Web.java
+9
-0
AccountTask.java
src/main/java/tkio/task/AccountTask.java
+2
-0
applicationContext-schedule.xml
src/main/resources/spring/applicationContext-schedule.xml
+1
-1
No files found.
pom.xml
View file @
d1d20b07
...
...
@@ -65,7 +65,7 @@
<!-- 单位是分钟-->
<mail.valid_time>
3
</mail.valid_time>
<report.url>
http://172.31.
23.181:8003
</report.url>
<report.url>
http://172.31.
1.122:9010
</report.url>
<!--Redis setting-->
<redis.key.validtime>
120
</redis.key.validtime>
...
...
src/main/java/common/model/Account4Web.java
View file @
d1d20b07
...
...
@@ -12,6 +12,7 @@ public class Account4Web {
private
String
email
;
private
String
company
;
private
Date
createDate
;
private
String
createDs
;
private
String
status
;
private
String
packageType
;
private
String
pastDate
;
...
...
@@ -189,6 +190,14 @@ public class Account4Web {
this
.
bussinessMan
=
bussinessMan
;
}
public
String
getCreateDs
()
{
return
createDs
;
}
public
void
setCreateDs
(
String
createDs
)
{
this
.
createDs
=
createDs
;
}
@Override
public
String
toString
()
{
return
"Account4Web{"
+
...
...
src/main/java/tkio/task/AccountTask.java
View file @
d1d20b07
...
...
@@ -47,12 +47,14 @@ public class AccountTask {
List
<
Account
>
accountValidList
=
accountRepository
.
findRootParentsUnPast
(
DateUtil
.
getBeforeDays
(
1
));
if
(
ValidateUtil
.
isValid
(
accountValidList
)){
for
(
Account
ac
:
accountValidList
){
System
.
out
.
println
(
ac
.
getId
());
AccountRestrict4Web
restrict4Web
=
accountFlowRestrictService
.
findRestrictByAccount
(
ac
.
getId
());
Account4Web
account4Web
=
new
Account4Web
();
account4Web
.
setAccountId
(
ac
.
getId
());
account4Web
.
setEmail
(
ac
.
getEmail
());
account4Web
.
setCompany
(
ac
.
getCompany
());
account4Web
.
setCreateDate
(
ac
.
getPubDate
());
account4Web
.
setCreateDs
(
DateUtil
.
getFormatDate
(
ac
.
getPubDate
()));
account4Web
.
setStatus
(
null
==
restrict4Web
.
getIOFlowNotified
()
?
"已激活"
:
(
restrict4Web
.
getIOFlowNotified
()
?
"已激活"
:
"流量用尽"
));
account4Web
.
setPackageType
(
restrict4Web
.
getPackageName
());
account4Web
.
setPastDate
(
ac
.
getPastDate
());
...
...
src/main/resources/spring/applicationContext-schedule.xml
View file @
d1d20b07
...
...
@@ -12,7 +12,7 @@
<bean
id=
"tkioAccountTask"
class=
"tkio.task.AccountTask"
></bean>
<task:scheduled-tasks>
<!--//定时同步短链数据(每5分钟执行一次)-->
<task:scheduled
ref=
"tkioAccountTask"
method=
"task"
cron=
"0
11 2
* * ?"
/>
<task:scheduled
ref=
"tkioAccountTask"
method=
"task"
cron=
"0
21 18
* * ?"
/>
</task:scheduled-tasks>
<bean
id=
"tkioNoticeTask"
class=
"tkio.task.NoticeTask"
></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