|
@@ -7,6 +7,7 @@ import com.fdkankan.manage.common.ResultCode;
|
|
|
import com.fdkankan.manage.entity.RtkAccount;
|
|
|
import com.fdkankan.manage.exception.BusinessException;
|
|
|
import com.fdkankan.manage.service.IRtkAccountService;
|
|
|
+import com.fdkankan.manage.service.IRtkUseLogService;
|
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -30,6 +31,8 @@ public class TaskService {
|
|
|
IRtkAccountService rtkAccountService;
|
|
|
@Autowired
|
|
|
DingdingService dingdingService;
|
|
|
+ @Autowired
|
|
|
+ IRtkUseLogService rtkUseLogService;
|
|
|
|
|
|
@Scheduled(cron = "0 */1 * * * ?")
|
|
|
public void task() {
|
|
@@ -72,6 +75,7 @@ public class TaskService {
|
|
|
continue;
|
|
|
}
|
|
|
rtkAccountService.updateAccountStatus(rtkAccount.getId(),1);
|
|
|
+ rtkUseLogService.saveLog(rtkAccount);
|
|
|
}
|
|
|
|
|
|
}
|