Commit 612570c0 by zhangkb

修改算组内平均数时修改计算类型为1,表示0.000的值也不剔除,跟着做为平均数计算

parent 73844982
...@@ -185,7 +185,9 @@ public class DriveIndDefService { ...@@ -185,7 +185,9 @@ public class DriveIndDefService {
if(indIdSize==1) { if(indIdSize==1) {
List<String> indDateList = baseIndDataService.getIndData(indIdList.get(0), List<String> indDateList = baseIndDataService.getIndData(indIdList.get(0),
date, compareObjs, code); date, compareObjs, code);
result = CalculateUtils.averageValue(indDateList,0); //author:zhangkb time:2020-9-15 desc:修改type为1,表示0.000的值也不剔除,跟着做为平均数计算
//result = CalculateUtils.averageValue(indDateList,0);
result = CalculateUtils.averageValue(indDateList,1);
}else { }else {
Map<String, Object> env = Maps.newHashMap(); Map<String, Object> env = Maps.newHashMap();
for(String indId : indIdList) { for(String indId : indIdList) {
......
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