Commit a6c30462 by yao.xiao

修改-完成率乘100

parent 64c796d4
......@@ -2168,21 +2168,24 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
//年完成率
if (!CommonUtil.isNullOrZero(performanceForecast.get("totalFYCYear"))){
Double achievementRateYear = performanceForecast.get("totalFYCYear")
.divide(BigDecimal.valueOf(yearGoal),4,BigDecimal.ROUND_HALF_UP)
.multiply(BigDecimal.valueOf(100))
.divide(BigDecimal.valueOf(yearGoal),2,BigDecimal.ROUND_HALF_UP)
.doubleValue();
achievementRateMap.put("achievementRateYear",achievementRateYear);
}
//季完成率
if (!CommonUtil.isNullOrZero(performanceForecast.get("totalFYCQuarter"))){
Double achievementRateQuarter = performanceForecast.get("totalFYCQuarter")
.divide(BigDecimal.valueOf(quarterGoal),4,BigDecimal.ROUND_HALF_UP)
.multiply(BigDecimal.valueOf(100))
.divide(BigDecimal.valueOf(yearGoal),2,BigDecimal.ROUND_HALF_UP)
.doubleValue();
achievementRateMap.put("achievementRateQuarter",achievementRateQuarter);
}
//月完成率
if (!CommonUtil.isNullOrZero(performanceForecast.get("totalFYCMonth"))){
Double achievementRateMonth = performanceForecast.get("totalFYCMonth")
.divide(BigDecimal.valueOf(monthGoal),4,BigDecimal.ROUND_HALF_UP)
.multiply(BigDecimal.valueOf(100))
.divide(BigDecimal.valueOf(yearGoal),2,BigDecimal.ROUND_HALF_UP)
.doubleValue();
achievementRateMap.put("achievementRateMonth",achievementRateMonth);
}
......
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