doum
2025-09-08 55ba702c1df240929e68df3b42fa9cb0607378b8
server/web/src/main/java/com/doumee/task/ScheduleTool.java
@@ -10,6 +10,7 @@
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;
@@ -30,10 +31,13 @@
 * @date 2021-10-10 14:40:35
 * https://www.bejson.com/othertools/cron/  cron 表达式生成地址
 */
//@Component
//@EnableScheduling
@Component
@EnableScheduling
@Slf4j
public class ScheduleTool {
    @Autowired
    private Jtt808Service jtt808Service;
    /**
     * 站点车辆满架率预警
@@ -47,5 +51,12 @@
    }
    @Scheduled(fixedDelay = 1000L * 100L )
    public void autoBackBike() throws Exception {
        log.info("=====================临时停车超时 自动还车===========start============");
        jtt808Service.autoBackBike();
        log.info("=====================临时停车超时 自动还车===========end============");
    }
}