Commit b3d46e7c authored by 廖旭伟's avatar 廖旭伟

部门窗口绩效汇总保留2位小数

parent fd7d2367
......@@ -4,6 +4,7 @@ import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.BeanUtils;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
......@@ -57,6 +58,6 @@ public class WindowPerformSummaryServiceImpl extends AbstractCRUDServiceImpl<Win
if(entity.getAddTotalScore()!=null){
sum = sum.add(entity.getAddTotalScore());
}
entity.setSumScore(sum);
entity.setSumScore(sum.setScale(2, RoundingMode.HALF_UP));
}
}
\ No newline at end of file
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