Commit 537ce757 authored by 廖旭伟's avatar 廖旭伟

绩效申诉通过后处理逻辑修改

parent b1d7947c
......@@ -139,30 +139,52 @@ public class PerformAttendAppealServiceImpl extends AbstractCRUDServiceImpl<Perf
if (PerformTypeEnum.考勤绩效.getValue().equals(appealEntity.getPerformType())) {
CheckAttendRecordEntity checkEntity = checkAttendRecordService.get(appealEntity.getCheckRecordId(), context);
if(checkEntity!=null) {
if(checkEntity.getCheckStatus()!= CheckStatusEnum.已处理.getValue()){
checkEntity.setCheckResult(CheckResultSubEnum.核查扣分.getValue());
checkAttendRecordService.examine(checkEntity,context);
}
CheckAttendRecordEntity checkAttendRecordEntity = new CheckAttendRecordEntity();
checkAttendRecordEntity.initAttrValue();
BeanUtils.copyProperties(checkEntity, checkAttendRecordEntity, new String[]{"id", "recordId"});
checkAttendRecordEntity.setSubAddType(SubAddTypeEnum.增加.getValue());
checkAttendRecordEntity.setSubMethod(SubMethodEnum.申诉冲销.getValue());
checkAttendRecordEntity.setRemark(appealMsg);
checkAttendRecordEntity.setCheckResult(CheckResultAddEnum.核查加分.getValue());
checkAttendRecordEntity.setCheckTime(checkAttendRecordEntity.getErrorTime());
checkAttendRecordEntity.setUpdateTime(new Date());
checkAttendRecordEntity.setCheckStatus(CheckStatusEnum.已处理.getValue()); //处理状态(1.未处理,2.已处理)
checkAttendRecordEntity.setAuditStatus(AuditStatusEnum.通过.getValue());
checkAttendRecordService.save(checkAttendRecordEntity, context);
}
} else if (PerformTypeEnum.评价差评绩效.getValue().equals(appealEntity.getPerformType())) {
CheckReviewRecordEntity checkEntity = checkReviewRecordService.get(appealEntity.getCheckRecordId(), context);
CheckReviewRecordEntity checkRecordEntity = new CheckReviewRecordEntity();
checkRecordEntity.initAttrValue();
if(checkEntity!=null) {
if(checkEntity.getCheckStatus()!= CheckStatusEnum.已处理.getValue()){
checkEntity.setCheckResult(CheckResultSubEnum.核查扣分.getValue());
checkReviewRecordService.examine(checkEntity,context);
}
CheckReviewRecordEntity checkRecordEntity = new CheckReviewRecordEntity();
checkRecordEntity.initAttrValue();
BeanUtils.copyProperties(checkEntity, checkRecordEntity, new String[]{"id", "recordId"});
checkRecordEntity.setSubAddType(SubAddTypeEnum.增加.getValue());
checkRecordEntity.setSubMethod(SubMethodEnum.申诉冲销.getValue());
checkRecordEntity.setRemark(appealMsg);
checkRecordEntity.setCreateTime(new Date());
checkRecordEntity.setCreateUserId(this.getContextUserId(context));
checkRecordEntity.setCheckResult(CheckResultAddEnum.核查加分.getValue());
checkRecordEntity.setCheckTime(checkRecordEntity.getReviewTime());
checkRecordEntity.setUpdateTime(new Date());
checkRecordEntity.setCheckStatus(CheckStatusEnum.已处理.getValue()); //处理状态(1.未处理,2.已处理)
checkRecordEntity.setAuditStatus(AuditStatusEnum.通过.getValue());
checkReviewRecordService.save(checkRecordEntity, context);
}
} else if (PerformTypeEnum.评价投诉绩效.getValue().equals(appealEntity.getPerformType())) {
CheckComplainRecordEntity checkEntity = checkComplainRecordService.get(appealEntity.getCheckRecordId(), context);
if(checkEntity!=null) {
if(checkEntity.getCheckStatus()!= CheckStatusEnum.已处理.getValue()){
checkEntity.setCheckResult(CheckResultSubEnum.核查扣分.getValue());
checkComplainRecordService.examine(checkEntity,context);
}
CheckComplainRecordEntity checkRecordEntity = new CheckComplainRecordEntity();
checkRecordEntity.initAttrValue();
BeanUtils.copyProperties(checkEntity, checkRecordEntity, new String[]{"id", "recordId"});
......@@ -171,12 +193,21 @@ public class PerformAttendAppealServiceImpl extends AbstractCRUDServiceImpl<Perf
checkRecordEntity.setRemark(appealMsg);
checkRecordEntity.setCreateTime(new Date());
checkRecordEntity.setCreateUserId(this.getContextUserId(context));
checkRecordEntity.setCheckResult(CheckResultAddEnum.核查加分.getValue());
checkRecordEntity.setCheckTime(checkRecordEntity.getComplainTime());
checkRecordEntity.setUpdateTime(new Date());
checkRecordEntity.setCheckStatus(CheckStatusEnum.已处理.getValue()); //处理状态(1.未处理,2.已处理)
checkRecordEntity.setAuditStatus(AuditStatusEnum.通过.getValue());
checkComplainRecordService.save(checkRecordEntity, context);
}
} else if (PerformTypeEnum.办件绩效.getValue().equals(appealEntity.getPerformType())) {
CheckGoworkRecordEntity checkEntity = checkGoworkRecordService.get(appealEntity.getCheckRecordId(), context);
if(checkEntity!=null) {
if(checkEntity.getCheckStatus()!= CheckStatusEnum.已处理.getValue()){
checkEntity.setCheckResult(CheckResultSubEnum.核查扣分.getValue());
checkGoworkRecordService.examine(checkEntity,context);
}
CheckGoworkRecordEntity checkRecordEntity = new CheckGoworkRecordEntity();
checkRecordEntity.initAttrValue();
BeanUtils.copyProperties(checkEntity, checkRecordEntity, new String[]{"id", "recordId"});
......@@ -185,12 +216,21 @@ public class PerformAttendAppealServiceImpl extends AbstractCRUDServiceImpl<Perf
checkRecordEntity.setRemark(appealMsg);
checkRecordEntity.setCreateTime(new Date());
checkRecordEntity.setCreateUserId(this.getContextUserId(context));
checkRecordEntity.setCheckResult(CheckResultAddEnum.核查加分.getValue());
checkRecordEntity.setCheckTime(checkRecordEntity.getGoworkTime());
checkRecordEntity.setUpdateTime(new Date());
checkRecordEntity.setCheckStatus(CheckStatusEnum.已处理.getValue()); //处理状态(1.未处理,2.已处理)
checkRecordEntity.setAuditStatus(AuditStatusEnum.通过.getValue());
checkGoworkRecordService.save(checkRecordEntity, context);
}
} else if (PerformTypeEnum.效能绩效.getValue().equals(appealEntity.getPerformType())) {
CheckEffectRecordEntity checkEntity = checkEffectRecordService.get(appealEntity.getCheckRecordId(), context);
if(checkEntity!=null) {
if(checkEntity.getCheckStatus()!= CheckStatusEnum.已处理.getValue()){
checkEntity.setCheckResult(CheckResultSubEnum.核查扣分.getValue());
checkEffectRecordService.examine(checkEntity,context);
}
CheckEffectRecordEntity checkRecordEntity = new CheckEffectRecordEntity();
checkRecordEntity.initAttrValue();
BeanUtils.copyProperties(checkEntity, checkRecordEntity, new String[]{"id", "recordId"});
......@@ -199,12 +239,21 @@ public class PerformAttendAppealServiceImpl extends AbstractCRUDServiceImpl<Perf
checkRecordEntity.setRemark(appealMsg);
checkRecordEntity.setCreateTime(new Date());
checkRecordEntity.setCreateUserId(this.getContextUserId(context));
checkRecordEntity.setCheckResult(CheckResultAddEnum.核查加分.getValue());
checkRecordEntity.setCheckTime(checkRecordEntity.getHappenTime());
checkRecordEntity.setUpdateTime(new Date());
checkRecordEntity.setCheckStatus(CheckStatusEnum.已处理.getValue()); //处理状态(1.未处理,2.已处理)
checkRecordEntity.setAuditStatus(AuditStatusEnum.通过.getValue());
checkEffectRecordService.save(checkRecordEntity, context);
}
} else if (PerformTypeEnum.其它绩效.getValue().equals(appealEntity.getPerformType())) {
CheckOtherRecordEntity checkEntity = checkOtherRecordService.get(appealEntity.getCheckRecordId(), context);
if(checkEntity!=null) {
if(checkEntity.getCheckStatus()!= CheckStatusEnum.已处理.getValue()){
checkEntity.setCheckResult(CheckResultSubEnum.核查扣分.getValue());
checkOtherRecordService.examine(checkEntity,context);
}
CheckOtherRecordEntity checkRecordEntity = new CheckOtherRecordEntity();
checkRecordEntity.initAttrValue();
BeanUtils.copyProperties(checkEntity, checkRecordEntity, new String[]{"id", "recordId"});
......@@ -213,6 +262,11 @@ public class PerformAttendAppealServiceImpl extends AbstractCRUDServiceImpl<Perf
checkRecordEntity.setRemark(appealMsg);
checkRecordEntity.setCreateTime(new Date());
checkRecordEntity.setCreateUserId(this.getContextUserId(context));
checkRecordEntity.setCheckResult(CheckResultAddEnum.核查加分.getValue());
checkRecordEntity.setCheckTime(checkRecordEntity.getHappenTime());
checkRecordEntity.setUpdateTime(new Date());
checkRecordEntity.setCheckStatus(CheckStatusEnum.已处理.getValue()); //处理状态(1.未处理,2.已处理)
checkRecordEntity.setAuditStatus(AuditStatusEnum.通过.getValue());
checkOtherRecordService.save(checkRecordEntity, context);
}
}
......
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