Compare commits
No commits in common. "8053f41066b821df8ccadbce8d16cd64dbccb54f" and "cdd7731d98c86831c4c41f09e0b8a7e0fff6f49f" have entirely different histories.
8053f41066
...
cdd7731d98
|
|
@ -9,6 +9,7 @@ import com.kimgo.wepush.request.SendQyWeChatMsgRequest;
|
|||
import com.kimgo.wepush.response.QyWeChatSendMessageApiResponse;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
|
@ -19,18 +20,15 @@ import java.util.List;
|
|||
|
||||
@Service
|
||||
public class MonitorService {
|
||||
private final ApiSettingService apiSettingService;
|
||||
private final QyWeChatURLService qyWeChatURLService;
|
||||
private final TokenService tokenService;
|
||||
@Autowired
|
||||
private ApiSettingService apiSettingService;
|
||||
@Autowired
|
||||
private QyWeChatURLService qyWeChatURLService;
|
||||
@Autowired
|
||||
private TokenService tokenService;
|
||||
private final Logger logger = LoggerFactory.getLogger(MonitorService.class);
|
||||
private final DeviceInfoDAOMapper deviceInfoDAOMapper;
|
||||
|
||||
public MonitorService(ApiSettingService apiSettingService, QyWeChatURLService qyWeChatURLService, TokenService tokenService, DeviceInfoDAOMapper deviceInfoDAOMapper) {
|
||||
this.apiSettingService = apiSettingService;
|
||||
this.qyWeChatURLService = qyWeChatURLService;
|
||||
this.tokenService = tokenService;
|
||||
this.deviceInfoDAOMapper = deviceInfoDAOMapper;
|
||||
}
|
||||
@Autowired
|
||||
private DeviceInfoDAOMapper deviceInfoDAOMapper;
|
||||
|
||||
@Scheduled(fixedDelay = 480000)
|
||||
public void monitorOnlineDevices() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue