Commit d482c293 authored by 刘长帅's avatar 刘长帅

1458-更改盈亏比计算时间

parent 472ce4e6
...@@ -105,7 +105,7 @@ public class AssetStockPriceTask implements ApplicationRunner { ...@@ -105,7 +105,7 @@ public class AssetStockPriceTask implements ApplicationRunner {
e.printStackTrace(); e.printStackTrace();
} }
try { try {
Thread.sleep(600000); Thread.sleep(5000);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
...@@ -168,6 +168,7 @@ public class AssetStockPriceTask implements ApplicationRunner { ...@@ -168,6 +168,7 @@ public class AssetStockPriceTask implements ApplicationRunner {
productRelation.setSimulatedTotalPrice(new BigDecimal(marketDetailsVO.getTotalPrice())); productRelation.setSimulatedTotalPrice(new BigDecimal(marketDetailsVO.getTotalPrice()));
} }
if (!ObjectUtils.isEmpty(marketDetailsVO.getPosition())) { if (!ObjectUtils.isEmpty(marketDetailsVO.getPosition())) {
//TODO 优化
//示范持仓比 //示范持仓比
productRelation.setSimulatedProportion(new BigDecimal(marketDetailsVO.getPosition())); productRelation.setSimulatedProportion(new BigDecimal(marketDetailsVO.getPosition()));
} }
......
...@@ -112,7 +112,7 @@ public class SmartStockPriceTask implements ApplicationRunner { ...@@ -112,7 +112,7 @@ public class SmartStockPriceTask implements ApplicationRunner {
e.printStackTrace(); e.printStackTrace();
} }
try { try {
Thread.sleep(600000); Thread.sleep(5000);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
......
...@@ -113,7 +113,7 @@ public class StockPriceTask implements ApplicationRunner { ...@@ -113,7 +113,7 @@ public class StockPriceTask implements ApplicationRunner {
e.printStackTrace(); e.printStackTrace();
} }
try { try {
Thread.sleep(600000); Thread.sleep(5000);
} 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