Commit 94dcb91b authored by 廖旭伟's avatar 廖旭伟

绩效考核授权4个维度不启用时不再生成绩效信息

parent a232eb3a
...@@ -81,6 +81,10 @@ public class StaffPerformInitDataTaskImpl implements ITaskExcuteService { ...@@ -81,6 +81,10 @@ public class StaffPerformInitDataTaskImpl implements ITaskExcuteService {
} }
} }
} }
//绩效考核授权4个维度不启用时不再生成绩效信息
if(item.getAttendCheck()==0 && item.getEffectCheck()==0 && item.getGoworkCheck()==0 && item.getComplainCheck()==0){
flag = false;
}
if(flag){ if(flag){
StaffPerformStatEntity statEntity = new StaffPerformStatEntity(); StaffPerformStatEntity statEntity = new StaffPerformStatEntity();
statEntity.initAttrValue(); statEntity.initAttrValue();
...@@ -126,6 +130,10 @@ public class StaffPerformInitDataTaskImpl implements ITaskExcuteService { ...@@ -126,6 +130,10 @@ public class StaffPerformInitDataTaskImpl implements ITaskExcuteService {
} }
} }
} }
//绩效考核授权4个维度不启用时不再生成绩效信息
if(item.getAttendCheck()==0 && item.getEffectCheck()==0 && item.getGoworkCheck()==0 && item.getComplainCheck()==0){
flag = false;
}
if(flag) { if(flag) {
StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity(); StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity();
staffPerformSummaryEntity.initAttrValue(); staffPerformSummaryEntity.initAttrValue();
......
...@@ -105,6 +105,9 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp ...@@ -105,6 +105,9 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
} }
for (StaffCheckSummaryVo vo : summaryVoList) { for (StaffCheckSummaryVo vo : summaryVoList) {
StaffEntity staffEntity = staffService.get(vo.getStaffId()); StaffEntity staffEntity = staffService.get(vo.getStaffId());
if(staffEntity.getAttendCheck()==0 && staffEntity.getEffectCheck()==0 && staffEntity.getGoworkCheck()==0 && staffEntity.getComplainCheck()==0){
continue;
}
StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity(); StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity();
staffPerformSummaryEntity.initAttrValue(); staffPerformSummaryEntity.initAttrValue();
BeanUtils.copyProperties(vo, staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo)); BeanUtils.copyProperties(vo, staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo));
......
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