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

1458-更改盈亏比计算时间

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