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

人员绩效控制

parent 71c012ef
...@@ -7,4 +7,29 @@ public class StaffCheckAuthorizePdu { ...@@ -7,4 +7,29 @@ public class StaffCheckAuthorizePdu {
private Long staffId; private Long staffId;
/** 核查类型枚举CheckTypeEnum(1.考勤绩效,2.评价绩效,3.办件绩效,4.效能绩效,5.其它绩效,6.投诉绩效) */ /** 核查类型枚举CheckTypeEnum(1.考勤绩效,2.评价绩效,3.办件绩效,4.效能绩效,5.其它绩效,6.投诉绩效) */
private Integer type; private Integer type;
/**
* 考勤授权(0.不启用,1.启用)
*/
private Integer attendCheck;
/**
* 评价授权(0.不启用,1.启用)
*/
private Integer complainCheck;
/**
* 投诉授权(0.不启用,1.启用)
*/
private Integer reviewCheck;
/**
* 办件授权(0.不启用,1.启用)
*/
private Integer goworkCheck;
/**
* 效能授权(0.不启用,1.启用)
*/
private Integer effectCheck;
/**
* 其他授权(0.不启用,1.启用)
*/
private Integer otherCheck;
} }
...@@ -18,6 +18,7 @@ import com.mortals.xhx.base.system.upload.service.UploadService; ...@@ -18,6 +18,7 @@ import com.mortals.xhx.base.system.upload.service.UploadService;
import com.mortals.xhx.base.system.user.model.UserEntity; import com.mortals.xhx.base.system.user.model.UserEntity;
import com.mortals.xhx.base.system.user.service.UserService; import com.mortals.xhx.base.system.user.service.UserService;
import com.mortals.xhx.common.code.*; import com.mortals.xhx.common.code.*;
import com.mortals.xhx.common.utils.BeanUtil;
import com.mortals.xhx.module.attendance.model.*; import com.mortals.xhx.module.attendance.model.*;
import com.mortals.xhx.module.attendance.service.AttendanceGroupStaffService; import com.mortals.xhx.module.attendance.service.AttendanceGroupStaffService;
import com.mortals.xhx.module.attendance.service.AttendanceStatService; import com.mortals.xhx.module.attendance.service.AttendanceStatService;
...@@ -51,6 +52,7 @@ import com.mortals.xhx.module.staff.service.StaffPerformSummaryService; ...@@ -51,6 +52,7 @@ import com.mortals.xhx.module.staff.service.StaffPerformSummaryService;
import com.mortals.xhx.module.staff.service.StaffService; import com.mortals.xhx.module.staff.service.StaffService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
...@@ -445,54 +447,55 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta ...@@ -445,54 +447,55 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
StaffEntity update = new StaffEntity(); StaffEntity update = new StaffEntity();
update.setId(pdu.getStaffId()); update.setId(pdu.getStaffId());
//1.考勤绩效,2.评价绩效,3.办件绩效,4.效能绩效,5.其它绩效,6.投诉绩效 //1.考勤绩效,2.评价绩效,3.办件绩效,4.效能绩效,5.其它绩效,6.投诉绩效
switch (checkTypeEnum) { // switch (checkTypeEnum) {
case 考勤绩效: // case 考勤绩效:
if (temp.getAttendCheck() == 1) { // if (temp.getAttendCheck() == 1) {
update.setAttendCheck(0); // update.setAttendCheck(0);
} else { // } else {
update.setAttendCheck(1); // update.setAttendCheck(1);
} // }
break; // break;
case 评价绩效: // case 评价绩效:
if (temp.getComplainCheck() == 1) { // if (temp.getComplainCheck() == 1) {
update.setComplainCheck(0); // update.setComplainCheck(0);
} else { // } else {
update.setComplainCheck(1); // update.setComplainCheck(1);
} // }
if (temp.getReviewCheck() == 1) { // if (temp.getReviewCheck() == 1) {
update.setReviewCheck(0); // update.setReviewCheck(0);
} else { // } else {
update.setReviewCheck(1); // update.setReviewCheck(1);
} // }
break; // break;
case 办件绩效: // case 办件绩效:
if (temp.getGoworkCheck() == 1) { // if (temp.getGoworkCheck() == 1) {
update.setGoworkCheck(0); // update.setGoworkCheck(0);
} else { // } else {
update.setGoworkCheck(1); // update.setGoworkCheck(1);
} // }
break; // break;
case 效能绩效: // case 效能绩效:
if (temp.getEffectCheck() == 1) { // if (temp.getEffectCheck() == 1) {
update.setEffectCheck(0); // update.setEffectCheck(0);
} else { // } else {
update.setEffectCheck(1); // update.setEffectCheck(1);
} // }
break; // break;
case 其它绩效: // case 其它绩效:
if (temp.getOtherCheck() == 1) { // if (temp.getOtherCheck() == 1) {
update.setOtherCheck(0); // update.setOtherCheck(0);
} else { // } else {
update.setOtherCheck(1); // update.setOtherCheck(1);
} // }
break; // break;
default: // default:
if (temp.getOtherCheck() == 1) { // if (temp.getOtherCheck() == 1) {
update.setOtherCheck(0); // update.setOtherCheck(0);
} else { // } else {
update.setOtherCheck(1); // update.setOtherCheck(1);
} // }
} // }
BeanUtils.copyProperties(pdu,update, BeanUtil.getNullPropertyNames(pdu));
update.setUpdateTime(new Date()); update.setUpdateTime(new Date());
if (context.getUser() != null) { if (context.getUser() != null) {
update.setUpdateUserId(context.getUser().getId()); update.setUpdateUserId(context.getUser().getId());
......
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