Commit 894c114a authored by shiyu's avatar shiyu

平均价格取整

parent 01e27774
......@@ -94,7 +94,7 @@ public class QueryPriceServiceImpl implements QueryPriceService {
chart.setXData(xData);
chart.setValues(valueList);
map.put("chart", chart);
map.put("averagePrice", averagePrice);
map.put("averagePrice", Math.round(averagePrice));
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