|
@@ -593,7 +593,11 @@ public class BscEnterpriseAutonomyServiceImpl extends AbstractCrudService<BscEnt
|
|
|
if (undoneCount == 0 && completedCount == 0) {
|
|
|
map1.put("value", 0);
|
|
|
} else {
|
|
|
- map1.put("value", completedCount / (undoneCount + completedCount) * 100);
|
|
|
+// completedCount = 1;
|
|
|
+// undoneCount = 3;
|
|
|
+ double Ratio = Arith.div(completedCount, undoneCount + completedCount, 2) * 100;
|
|
|
+ map1.put("value", Ratio);
|
|
|
+// map1.put("value", completedCount / (undoneCount + completedCount) * 100);
|
|
|
}
|
|
|
|
|
|
map1.put("mark", "%");
|