Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
d5fffae2
Commit
d5fffae2
authored
Jul 09, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员绩效控制
parent
71c012ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
48 deletions
+76
-48
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/vo/StaffCheckAuthorizePdu.java
...als/xhx/module/staff/model/vo/StaffCheckAuthorizePdu.java
+25
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
...rtals/xhx/module/staff/service/impl/StaffServiceImpl.java
+51
-48
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/vo/StaffCheckAuthorizePdu.java
View file @
d5fffae2
...
@@ -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
;
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
View file @
d5fffae2
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment