Commit 700afd3b authored by 温志超's avatar 温志超

月、周产能报表导出

parent 11c43d59
......@@ -169,7 +169,12 @@ public class DailyProductionReportServiceImp implements DailyProductionReportSer
}
}
}
processHashMap.put(key + "统计合格率",(new BigDecimal((Double) processHashMap.get(key + "统计合格数量")).multiply(new BigDecimal(100))).divide(new BigDecimal((Double)processHashMap.get(key + "统计报工数量")),2, RoundingMode.HALF_UP));
if(((Double)processHashMap.get(key + "统计报工数量")) > 0){
processHashMap.put(key + "统计合格率",(new BigDecimal((Double) processHashMap.get(key + "统计合格数量")).multiply(new BigDecimal(100))).divide(new BigDecimal((Double)processHashMap.get(key + "统计报工数量")),2, RoundingMode.HALF_UP));
}else{
processHashMap.put(key + "统计合格率",BigDecimal.ZERO);
}
}
......
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