Commit e9703698 authored by alex yao's avatar alex yao

fix:趋势图积分列保留两位小数

parent 28546124
......@@ -11,6 +11,8 @@ import cn.com.yict.framemax.core.i18n.I18nMessageException;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.List;
......@@ -94,7 +96,7 @@ public class AgentDataAnalyzeRestImpl implements AgentDataAnalyzeRest {
agentDataAnalyzeTrendDto.setDate(entity.getDate());
agentDataAnalyzeTrendDto.setUsersCount(entity.getUsersCount());
agentDataAnalyzeTrendDto.setUsageCount(entity.getUsageCount());
agentDataAnalyzeTrendDto.setTotalPoints(entity.getTotalPoints());
agentDataAnalyzeTrendDto.setTotalPoints(BigDecimal.valueOf(entity.getTotalPoints()).setScale(2, RoundingMode.HALF_UP).doubleValue());
result.add(agentDataAnalyzeTrendDto);
}
return result;
......
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