Commit b7944677 authored by 廖旭伟's avatar 廖旭伟

绩效申诉成功添加的核查信息不再生成绩效异常信息

parent a907fa2a
...@@ -129,14 +129,16 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA ...@@ -129,14 +129,16 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
} }
//添加绩效异常信息 //添加绩效异常信息
try { try {
if(!entity.getErrorTime().after(new Date())){ if(entity.getRemark().indexOf("申诉成功") < 0){
PerformErrorMessageEntity errorMessageEntity = new PerformErrorMessageEntity(); if(!entity.getErrorTime().after(new Date())){
errorMessageEntity.initAttrValue(); PerformErrorMessageEntity errorMessageEntity = new PerformErrorMessageEntity();
BeanUtils.copyProperties(entity, errorMessageEntity, BeanUtil.getNullPropertyNames(entity)); errorMessageEntity.initAttrValue();
errorMessageEntity.setCheckRecordId(entity.getId()); BeanUtils.copyProperties(entity, errorMessageEntity, BeanUtil.getNullPropertyNames(entity));
errorMessageEntity.setErrorTime(entity.getErrorTime()); errorMessageEntity.setCheckRecordId(entity.getId());
errorMessageEntity.setPerformType(PerformTypeEnum.考勤绩效.getValue()); errorMessageEntity.setErrorTime(entity.getErrorTime());
performErrorMessageService.save(errorMessageEntity); errorMessageEntity.setPerformType(PerformTypeEnum.考勤绩效.getValue());
performErrorMessageService.save(errorMessageEntity);
}
} }
}catch (Exception e) { }catch (Exception e) {
log.error("新增绩效异常信息核查状态出错", e); log.error("新增绩效异常信息核查状态出错", e);
......
...@@ -124,13 +124,15 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec ...@@ -124,13 +124,15 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
protected void saveAfter(CheckComplainRecordEntity entity, Context context) throws AppException { protected void saveAfter(CheckComplainRecordEntity entity, Context context) throws AppException {
//添加绩效异常信息 //添加绩效异常信息
try { try {
PerformErrorMessageEntity errorMessageEntity = new PerformErrorMessageEntity(); if(entity.getRemark().indexOf("申诉成功") < 0) {
errorMessageEntity.initAttrValue(); PerformErrorMessageEntity errorMessageEntity = new PerformErrorMessageEntity();
BeanUtils.copyProperties(entity, errorMessageEntity, BeanUtil.getNullPropertyNames(entity)); errorMessageEntity.initAttrValue();
errorMessageEntity.setCheckRecordId(entity.getId()); BeanUtils.copyProperties(entity, errorMessageEntity, BeanUtil.getNullPropertyNames(entity));
errorMessageEntity.setErrorTime(entity.getComplainTime()); errorMessageEntity.setCheckRecordId(entity.getId());
errorMessageEntity.setPerformType(PerformTypeEnum.评价投诉绩效.getValue()); errorMessageEntity.setErrorTime(entity.getComplainTime());
performErrorMessageService.save(errorMessageEntity); errorMessageEntity.setPerformType(PerformTypeEnum.评价投诉绩效.getValue());
performErrorMessageService.save(errorMessageEntity);
}
}catch (Exception e) { }catch (Exception e) {
log.error("新增绩效异常信息核查状态出错", e); log.error("新增绩效异常信息核查状态出错", e);
} }
......
...@@ -121,13 +121,15 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG ...@@ -121,13 +121,15 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
protected void saveAfter(CheckGoworkRecordEntity entity, Context context) throws AppException { protected void saveAfter(CheckGoworkRecordEntity entity, Context context) throws AppException {
//添加绩效异常信息 //添加绩效异常信息
try { try {
PerformErrorMessageEntity errorMessageEntity = new PerformErrorMessageEntity(); if(entity.getRemark().indexOf("申诉成功") < 0) {
errorMessageEntity.initAttrValue(); PerformErrorMessageEntity errorMessageEntity = new PerformErrorMessageEntity();
BeanUtils.copyProperties(entity, errorMessageEntity, BeanUtil.getNullPropertyNames(entity)); errorMessageEntity.initAttrValue();
errorMessageEntity.setCheckRecordId(entity.getId()); BeanUtils.copyProperties(entity, errorMessageEntity, BeanUtil.getNullPropertyNames(entity));
errorMessageEntity.setErrorTime(entity.getGoworkTime()); errorMessageEntity.setCheckRecordId(entity.getId());
errorMessageEntity.setPerformType(PerformTypeEnum.办件绩效.getValue()); errorMessageEntity.setErrorTime(entity.getGoworkTime());
performErrorMessageService.save(errorMessageEntity); errorMessageEntity.setPerformType(PerformTypeEnum.办件绩效.getValue());
performErrorMessageService.save(errorMessageEntity);
}
}catch (Exception e) { }catch (Exception e) {
log.error("新增绩效异常信息核查状态出错", e); log.error("新增绩效异常信息核查状态出错", e);
} }
......
...@@ -122,13 +122,15 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt ...@@ -122,13 +122,15 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
protected void saveAfter(CheckOtherRecordEntity entity, Context context) throws AppException { protected void saveAfter(CheckOtherRecordEntity entity, Context context) throws AppException {
//添加绩效异常信息 //添加绩效异常信息
try { try {
PerformErrorMessageEntity errorMessageEntity = new PerformErrorMessageEntity(); if(entity.getRemark().indexOf("申诉成功") < 0) {
errorMessageEntity.initAttrValue(); PerformErrorMessageEntity errorMessageEntity = new PerformErrorMessageEntity();
BeanUtils.copyProperties(entity, errorMessageEntity, BeanUtil.getNullPropertyNames(entity)); errorMessageEntity.initAttrValue();
errorMessageEntity.setCheckRecordId(entity.getId()); BeanUtils.copyProperties(entity, errorMessageEntity, BeanUtil.getNullPropertyNames(entity));
errorMessageEntity.setErrorTime(entity.getHappenTime()); errorMessageEntity.setCheckRecordId(entity.getId());
errorMessageEntity.setPerformType(PerformTypeEnum.其它绩效.getValue()); errorMessageEntity.setErrorTime(entity.getHappenTime());
performErrorMessageService.save(errorMessageEntity); errorMessageEntity.setPerformType(PerformTypeEnum.其它绩效.getValue());
performErrorMessageService.save(errorMessageEntity);
}
}catch (Exception e) { }catch (Exception e) {
log.error("新增绩效异常信息核查状态出错", e); log.error("新增绩效异常信息核查状态出错", e);
} }
......
...@@ -124,13 +124,15 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR ...@@ -124,13 +124,15 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
protected void saveAfter(CheckReviewRecordEntity entity, Context context) throws AppException { protected void saveAfter(CheckReviewRecordEntity entity, Context context) throws AppException {
//添加绩效异常信息 //添加绩效异常信息
try { try {
PerformErrorMessageEntity errorMessageEntity = new PerformErrorMessageEntity(); if(entity.getRemark().indexOf("申诉成功") < 0) {
errorMessageEntity.initAttrValue(); PerformErrorMessageEntity errorMessageEntity = new PerformErrorMessageEntity();
BeanUtils.copyProperties(entity, errorMessageEntity, BeanUtil.getNullPropertyNames(entity)); errorMessageEntity.initAttrValue();
errorMessageEntity.setCheckRecordId(entity.getId()); BeanUtils.copyProperties(entity, errorMessageEntity, BeanUtil.getNullPropertyNames(entity));
errorMessageEntity.setErrorTime(entity.getReviewTime()); errorMessageEntity.setCheckRecordId(entity.getId());
errorMessageEntity.setPerformType(PerformTypeEnum.评价差评绩效.getValue()); errorMessageEntity.setErrorTime(entity.getReviewTime());
performErrorMessageService.save(errorMessageEntity); errorMessageEntity.setPerformType(PerformTypeEnum.评价差评绩效.getValue());
performErrorMessageService.save(errorMessageEntity);
}
}catch (Exception e) { }catch (Exception e) {
log.error("新增绩效异常信息核查状态出错", e); log.error("新增绩效异常信息核查状态出错", e);
} }
......
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