|
|
@@ -1062,19 +1062,19 @@ public class SalaryItemServiceImpl extends ServiceImpl<SalaryItemMapper, SalaryI
|
|
|
//获取日常考核工资
|
|
|
if (zhaPingExcel.getGrading().equals("高中部")){
|
|
|
//日常考核工资标准
|
|
|
- R<SchoolConfigItem> config = schoolTeacherClient.getConfig(item.getTenantId(), zhaPingExcel.getGrading(), null, "日常考核工资标准", zhaPingExcel.getAbsenteeism(), null, item.getDiscipline());
|
|
|
+ R<SchoolConfigItem> config = schoolTeacherClient.getConfig(SecureUtil.getTenantId(), zhaPingExcel.getGrading(), null, "日常考核工资标准", salaryItem.getDailyGrade(), null, salaryItem.getDiscipline());
|
|
|
if (config.isSuccess() && config.getData() != null){
|
|
|
- salaryItem.setDailyAssessmentCriteria(config.getData().getSalary());
|
|
|
+ salaryItem.setDailyAssessmentSalary(config.getData().getSalary());
|
|
|
}else {
|
|
|
- salaryItem.setDailyAssessmentCriteria(new BigDecimal(BigInteger.ZERO));
|
|
|
+ salaryItem.setDailyAssessmentSalary(new BigDecimal(BigInteger.ZERO));
|
|
|
}
|
|
|
}else {
|
|
|
//日常考核工资标准
|
|
|
- R<SchoolConfigItem> config = schoolTeacherClient.getConfig(item.getTenantId(), zhaPingExcel.getGrading(), null, "日常考核工资标准", zhaPingExcel.getAbsenteeism(), null,null);
|
|
|
+ R<SchoolConfigItem> config = schoolTeacherClient.getConfig(SecureUtil.getTenantId(), zhaPingExcel.getGrading(), null, "日常考核工资标准", salaryItem.getDailyGrade(), null,null);
|
|
|
if (config.isSuccess() && config.getData() != null){
|
|
|
- salaryItem.setDailyAssessmentCriteria(config.getData().getSalary());
|
|
|
+ salaryItem.setDailyAssessmentSalary(config.getData().getSalary());
|
|
|
}else {
|
|
|
- salaryItem.setDailyAssessmentCriteria(new BigDecimal(BigInteger.ZERO));
|
|
|
+ salaryItem.setDailyAssessmentSalary(new BigDecimal(BigInteger.ZERO));
|
|
|
}
|
|
|
}
|
|
|
if (item != null){
|
|
|
@@ -1366,7 +1366,7 @@ public class SalaryItemServiceImpl extends ServiceImpl<SalaryItemMapper, SalaryI
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
- * 年下学期绩效
|
|
|
+ * 学期绩效
|
|
|
* @param data
|
|
|
* @param isCovered
|
|
|
* @return
|
|
|
@@ -1395,6 +1395,24 @@ public class SalaryItemServiceImpl extends ServiceImpl<SalaryItemMapper, SalaryI
|
|
|
//根据身份证号查询教职工信息是否存在存在更新不存在新增
|
|
|
SalaryItem item = baseMapper.selectOne(new QueryWrapper<SalaryItem>().eq("id_number", salaryItem.getIdNumber()).eq("tenant_id", SecureUtil.getTenantId())
|
|
|
.eq("is_deleted", 0).eq("pid",id));
|
|
|
+ //获取学期绩效工资
|
|
|
+ if (insuranceExcel.getGrading().equals("高中部")){
|
|
|
+ //学期绩效工资
|
|
|
+ R<SchoolConfigItem> config = schoolTeacherClient.getConfig(SecureUtil.getTenantId(),insuranceExcel.getGrading(), null, "学期绩效工资标准", salaryItem.getPerformanceGrade(), null,salaryItem.getDiscipline());
|
|
|
+ if (config != null){
|
|
|
+ salaryItem.setTermPerformanceSalary(config.getData().getSalary());
|
|
|
+ }else {
|
|
|
+ salaryItem.setTermPerformanceSalary(new BigDecimal(BigInteger.ZERO));
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ //学期绩效工资
|
|
|
+ R<SchoolConfigItem> config = schoolTeacherClient.getConfig(SecureUtil.getTenantId(),insuranceExcel.getGrading(), null, "学期绩效工资标准", salaryItem.getPerformanceGrade(), null,salaryItem.getDiscipline());
|
|
|
+ if (config != null){
|
|
|
+ salaryItem.setTermPerformanceSalary(config.getData().getSalary());
|
|
|
+ }else {
|
|
|
+ salaryItem.setTermPerformanceSalary(new BigDecimal(BigInteger.ZERO));
|
|
|
+ }
|
|
|
+ }
|
|
|
if (item != null){
|
|
|
salaryItem.setPid(id);
|
|
|
salaryItem.setId(item.getId());
|