Commit 26d699b1 authored by shiyu's avatar shiyu

折线图更新时间

parent d9bfc736
......@@ -86,6 +86,10 @@ public class QueryPriceServiceImpl implements QueryPriceService {
map.put("details", CategoryVo.of(category));
map.put("chart", chart);
map.put("averagePrice", averagePrice);
Instant instant = Instant.ofEpochSecond(bidRecordList.get(bidRecordList.size() - 1).getBidTime());
LocalDateTime date = LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy年MM月dd日");
map.put("priceUpdateTime", date.format(formatter));
return Result.success(map);
} catch (Exception e) {
logger.error("查询类目价格详情失败:{}", e);
......
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