|
@@ -3275,7 +3275,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
|
|
|
}
|
|
|
int percentRes = 0;
|
|
|
if(planHourSum.compareTo(new BigDecimal(0)) > 0){
|
|
|
- percentRes = realHourSum.divide(planHourSum,RoundingMode.HALF_UP).multiply(new BigDecimal(100)).intValue();
|
|
|
+ percentRes = realHourSum.multiply(new BigDecimal(100)).divide(planHourSum,RoundingMode.HALF_UP).intValue();
|
|
|
}
|
|
|
project.setProgress(percentRes);
|
|
|
}
|