|
@@ -883,9 +883,9 @@ public class SysStatisticManager {
|
|
// 审核通过值
|
|
// 审核通过值
|
|
uMap.put("passedScore", passedScore);
|
|
uMap.put("passedScore", passedScore);
|
|
// 审核通过率
|
|
// 审核通过率
|
|
- uMap.put("passedCountRate", String.format("%.2f", 100.0 * (passedCount / taskPkgCount)));
|
|
|
|
|
|
+ uMap.put("passedCountRate", taskPkgCount == 0 ? "0.00" : String.format("%.2f", 100.0 * (passedCount / taskPkgCount)));
|
|
// 审核通过百分比
|
|
// 审核通过百分比
|
|
- uMap.put("passedRate", String.format("%.2f", 100.0 * (passedScore / taskScoreTotal)));
|
|
|
|
|
|
+ uMap.put("passedRate", taskScoreTotal == 0 ? "0.00" : String.format("%.2f", 100.0 * (passedScore / taskScoreTotal)));
|
|
|
|
|
|
// 任务数
|
|
// 任务数
|
|
uMap.put("userTaskCount", taskPkgCount);
|
|
uMap.put("userTaskCount", taskPkgCount);
|