Commit 7ec1dfd9 by manxiaoqiang

2

parent 93c36341
package tkio.task; package tkio.task;
import common.controller.ContractController;
import common.model.Contract; import common.model.Contract;
import common.repository.ContractRepository; import common.repository.ContractRepository;
import dic.ContractTypeEnum; import dic.ContractTypeEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import tkio.model.Account; import tkio.model.Account;
import tkio.repository.AccountRepository; import tkio.repository.AccountRepository;
...@@ -16,6 +19,7 @@ import java.util.List; ...@@ -16,6 +19,7 @@ import java.util.List;
* Created by mxq on 2018/4/23. * Created by mxq on 2018/4/23.
*/ */
public class AccountCheck { public class AccountCheck {
private static final Logger logger = LoggerFactory.getLogger(AccountCheck.class);
@Autowired @Autowired
AccountRepository accountRepository; AccountRepository accountRepository;
@Autowired @Autowired
...@@ -23,6 +27,7 @@ public class AccountCheck { ...@@ -23,6 +27,7 @@ public class AccountCheck {
public void task(){ public void task(){
List<Account> accountList = accountRepository.findRootParentsByPubDate(DateUtil.getBeforeDays(30)); List<Account> accountList = accountRepository.findRootParentsByPubDate(DateUtil.getBeforeDays(30));
logger.error("startDate :" + DateUtil.getBeforeDays(30));
if(ValidateUtil.isValid(accountList)){ if(ValidateUtil.isValid(accountList)){
List<Account> list = new ArrayList<>(); List<Account> list = new ArrayList<>();
for(Account a: accountList){ for(Account a: accountList){
......
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