|
@@ -101,17 +101,17 @@ public class UserSalaryManageServiceImpl extends ServiceImpl<UserSalaryManageMap
|
|
|
//计算工资
|
|
|
BigDecimal ratio;
|
|
|
if (ObjectUtil.equals(dto.getEmployeeType(), 10)) {
|
|
|
- Integer internshipRatio = dto.getInternshipRatio();
|
|
|
+ BigDecimal internshipRatio = dto.getInternshipRatio();
|
|
|
if (ObjectUtil.isEmpty(internshipRatio)) {
|
|
|
internshipRatio = oldUserSalary.getInternshipRatio();
|
|
|
}
|
|
|
- ratio = BigDecimal.valueOf(internshipRatio / 100);
|
|
|
+ ratio = internshipRatio.divide(BigDecimal.valueOf(100));
|
|
|
} else if (ObjectUtil.equals(dto.getEmployeeType(), 20)) {
|
|
|
- Integer probationRatio = dto.getProbationRatio();
|
|
|
+ BigDecimal probationRatio = dto.getProbationRatio();
|
|
|
if (ObjectUtil.isEmpty(probationRatio)) {
|
|
|
probationRatio = oldUserSalary.getProbationRatio();
|
|
|
}
|
|
|
- ratio = BigDecimal.valueOf(probationRatio / 100);
|
|
|
+ ratio = probationRatio.divide(BigDecimal.valueOf(100));
|
|
|
} else if (ObjectUtil.equals(dto.getEmployeeType(), 30)) {
|
|
|
ratio = BigDecimal.valueOf(1);
|
|
|
} else {
|