Commit fc8fa2b5 authored by liucx's avatar liucx

删除日志

parent 70a2230a
......@@ -144,21 +144,18 @@ public class AssetStockPriceTask implements ApplicationRunner {
Date startTime = new Date();
try {
String type = SIMULATED.getCode();
OptionalUtil.checkNull(accountProductRelation, "当前用户产品关系不存在");
//查询客户信息
Long marketId = accountProductRelation.getSimulatedMarketId();
//查询持仓信息
BigDecimal funding = accountProductRelation.getSimulatedFunding();
//获取可用资金
log.info("耗时1" + DateUtil.calculateTimeGapSecond(startTime, new Date()) + "秒");
//获取所有买入过的股票
List<AssetStockPosition> stockPositions = stockPositionService.queryStockPositions(marketId);
log.info("耗时2" + DateUtil.calculateTimeGapSecond(startTime, new Date()) + "秒");
//汇总数据
AssetMarketDetailsVO marketDetailsVO = stockPositionService.createMarketDetailsVOTask(stockPositions, funding, accountProductRelation);
log.info("耗时3" + DateUtil.calculateTimeGapSecond(startTime, new Date()) + "秒");
AssetAccountProductRelation productRelation = new AssetAccountProductRelation();
productRelation.setId(accountProductRelation.getId());
......
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