Commit 67f48572 authored by wujiang's avatar wujiang

修改权重保存

parent 1915088b
......@@ -317,7 +317,7 @@ public class IdxBizFanWeightController extends BaseController {
}
//剩余权重值
float formattedNum = num != 0 ? Float.parseFloat(new DecimalFormat("0.0000000000").format((1 - valued) / num)) : 0;
float formattedNum = num != 0 ? Float.parseFloat(new DecimalFormat("0.000").format((1 - valued) / num)) : 0;
for (IdxBizFanWeight listdatum : listdata) {
for (IdxBizFanWeight idxBizPvWeight : list) {
......
......@@ -326,7 +326,7 @@ public class IdxBizPvWeightController extends BaseController {
}
//剩余权重值
float formattedNum = num != 0 ? Float.parseFloat(new DecimalFormat("0.0000000000").format((1 - valued) / num)) : 0;
float formattedNum = num != 0 ? Float.parseFloat(new DecimalFormat("0.000").format((1 - valued) / num)) : 0;
for (IdxBizPvWeight listdatum : listdata) {
for (IdxBizPvWeight idxBizPvWeight : list) {
......
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