Commit d1d20b07 by manxiaoqiang

pom

......@@ -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>
......
......@@ -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{" +
......
......@@ -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());
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment