Commit 699fa05a authored by liucx's avatar liucx

修改时间

parent b48c7b47
...@@ -619,10 +619,12 @@ public class DateUtil { ...@@ -619,10 +619,12 @@ public class DateUtil {
return false; return false;
if(StockMatchStaticInfo.tradeDay.get(year + ":" + month + ":" + day) != null) if(StockMatchStaticInfo.tradeDay.get(year + ":" + month + ":" + day) != null)
return false; return false;
if(hour < 9 || hour >= 21 || hour == 12) if(hour < 9 || hour > 16 || hour == 12)
return false; return false;
if(hour == 9 && minute < 25) if(hour == 9 && minute < 25)
return false; return false;
if(hour == 15 && minute >= 25)
return false;
if(hour == 11 && minute >= 50) if(hour == 11 && minute >= 50)
return false; return false;
return true; return true;
......
...@@ -104,14 +104,14 @@ public class AssetStockPriceTask implements ApplicationRunner { ...@@ -104,14 +104,14 @@ public class AssetStockPriceTask implements ApplicationRunner {
e.printStackTrace(); e.printStackTrace();
} }
try { try {
Thread.sleep(20000); Thread.sleep(100000);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
} else { } else {
try { try {
Thread.sleep(8000); Thread.sleep(20000);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
......
...@@ -111,7 +111,7 @@ public class SmartStockPriceTask implements ApplicationRunner { ...@@ -111,7 +111,7 @@ public class SmartStockPriceTask implements ApplicationRunner {
e.printStackTrace(); e.printStackTrace();
} }
try { try {
Thread.sleep(20000); Thread.sleep(10000);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
......
...@@ -115,7 +115,7 @@ public class StockPriceTask implements ApplicationRunner { ...@@ -115,7 +115,7 @@ public class StockPriceTask implements ApplicationRunner {
} else { } else {
try { try {
Thread.sleep(8000); Thread.sleep(80000);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment