|  |  | 
 |  |  | import com.doumee.core.wx.WxPayProperties; | 
 |  |  | import com.doumee.dao.business.model.Sites; | 
 |  |  | import com.doumee.dao.system.model.SystemDictData; | 
 |  |  | import com.doumee.jtt808.web.service.Jtt808Service; | 
 |  |  | import com.doumee.service.business.*; | 
 |  |  | import com.doumee.service.system.SystemDictDataService; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | 
 |  |  | @Slf4j | 
 |  |  | public class ScheduleTool { | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private Jtt808Service jtt808Service; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 站点车辆满架率预警 | 
 |  |  |      * @throws Exception | 
 |  |  |      */ | 
 |  |  |     @Scheduled(fixedDelay = 1000L *20L ) | 
 |  |  |     public void reSubMqtt() throws Exception { | 
 |  |  |         log.info("=====================检查是否需要重新订阅===========start============"); | 
 |  |  |         MqttClientInit.isSubClientValid(); | 
 |  |  |         log.info("=====================检查是否需要重新订阅===========end============"); | 
 |  |  |     } | 
 |  |  | //    @Scheduled(fixedDelay = 1000L *20L ) | 
 |  |  | //    public void reSubMqtt() throws Exception { | 
 |  |  | //        log.info("=====================检查是否需要重新订阅===========start============"); | 
 |  |  | //        MqttClientInit.isSubClientValid(); | 
 |  |  | //        log.info("=====================检查是否需要重新订阅===========end============"); | 
 |  |  | //    } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @Scheduled(fixedDelay = 1000L * 100L ) | 
 |  |  |     public void autoBackBike() throws Exception { | 
 |  |  |         log.info("=====================临时停车超时 自动还车===========start============"); | 
 |  |  |         jtt808Service.autoBackBike(); | 
 |  |  |         log.info("=====================临时停车超时 自动还车===========end============"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } |