From a762b18a2904bd4212de73d9a14221ef3d3915eb Mon Sep 17 00:00:00 2001
From: 钟日健 <5689795+arsn@user.noreply.gitee.com>
Date: Fri, 18 Mar 2022 20:38:24 +0800
Subject: [PATCH] 人员,车辆定位任务修改

---
 src/main/java/org/springblade/modules/equipage/controller/fixed.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/springblade/modules/equipage/controller/fixed.java b/src/main/java/org/springblade/modules/equipage/controller/fixed.java
index 2638189..fc41a99 100644
--- a/src/main/java/org/springblade/modules/equipage/controller/fixed.java
+++ b/src/main/java/org/springblade/modules/equipage/controller/fixed.java
@@ -24,7 +24,7 @@
 import java.text.SimpleDateFormat;
 import java.util.*;
 
-@Component
+@Component("fixed")
 public class fixed {
 	private static final DateFormat JSON = null;
 	@Autowired
@@ -44,7 +44,7 @@
 	 * @return
 	 * @throws Exception
 	 */
-	@Scheduled(cron = "0 */5 * * * ?")
+//	@Scheduled(cron = "0 */5 * * * ?")
 	public void Peo() throws Exception {
 		String url = "http://47.104.104.46/api/client/getgis.php";
 		//查询有押运人员的数据
@@ -140,7 +140,7 @@
 	 * @return
 	 * @throws Exception
 	 */
-	@Scheduled(cron = "0 0 * * * ?")
+//	@Scheduled(cron = "0 0 * * * ?")
 	public void Peog() throws Exception {
 		System.out.println("押运人员");
 		String url = "http://47.104.104.46/api/client/getgistrack.php";
@@ -210,7 +210,7 @@
 	/**
 	 * 车辆实时位置
 	 */
-	@Scheduled(cron = "0 */5 * * * ?")
+//	@Scheduled(cron = "0 */5 * * * ?")
 	public void locationcar() {
 		String url = "http://dvopenapi.aimap.net.cn/openapi/device/location";
 		String res = null;
@@ -309,7 +309,7 @@
 	/**
 	 * 查询车辆轨迹
 	 */
-	@Scheduled(cron = "0 0 * * * ?")
+//	@Scheduled(cron = "0 0 * * * ?")
 	public void locationhistoryTrack() {
 		Calendar calendar = Calendar.getInstance();
 		/* HOUR_OF_DAY 指示一天中的小时 */

--
Gitblit v1.9.3