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
eada306d
Commit
eada306d
authored
Nov 28, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绩效核查确实时将核查时间改为绩效扣分发生时间
parent
76c4154f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
105 additions
and
98 deletions
+105
-98
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckAttendRecordServiceImpl.java
...dule/check/service/impl/CheckAttendRecordServiceImpl.java
+18
-17
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckComplainRecordServiceImpl.java
...le/check/service/impl/CheckComplainRecordServiceImpl.java
+17
-16
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckEffectRecordServiceImpl.java
...dule/check/service/impl/CheckEffectRecordServiceImpl.java
+18
-17
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckGoworkRecordServiceImpl.java
...dule/check/service/impl/CheckGoworkRecordServiceImpl.java
+17
-16
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckOtherRecordServiceImpl.java
...odule/check/service/impl/CheckOtherRecordServiceImpl.java
+18
-16
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckReviewRecordServiceImpl.java
...dule/check/service/impl/CheckReviewRecordServiceImpl.java
+17
-16
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckAttendRecordServiceImpl.java
View file @
eada306d
...
...
@@ -152,6 +152,10 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
if
(
entity
.
getId
()
==
null
)
{
throw
new
AppException
(
"核查记录ID不能为空"
);
}
CheckAttendRecordEntity
temp
=
this
.
get
(
entity
.
getId
());
if
(
temp
==
null
)
{
throw
new
AppException
(
"核查记录ID不正确"
);
}
if
(
context
!=
null
&&
context
.
getUser
()
!=
null
)
{
IUser
user
=
context
.
getUser
();
entity
.
setUpdateUserId
(
user
.
getId
());
...
...
@@ -162,29 +166,26 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
AuditUtil
.
audit
(
entity
);
}
entity
.
setCheckTime
(
new
Dat
e
());
entity
.
setUpdateTime
(
entity
.
getCheckTim
e
());
entity
.
setCheckTime
(
temp
.
getErrorTim
e
());
entity
.
setUpdateTime
(
new
Dat
e
());
entity
.
setCheckStatus
(
CheckStatusEnum
.
已处理
.
getValue
());
//处理状态(1.未处理,2.已处理)
dao
.
update
(
entity
);
try
{
CheckAttendRecordEntity
temp
=
this
.
get
(
entity
.
getId
());
if
(
temp
!=
null
)
{
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getRecordId
()))
{
PerformAttendRecordEntity
performAttendRecordEntity
=
attendRecordService
.
get
(
entity
.
getRecordId
());
if
(!
ObjectUtils
.
isEmpty
(
performAttendRecordEntity
))
{
performAttendRecordEntity
.
setProcessStatus
(
ProcessStatusEnum
.
已处理
.
getValue
());
performAttendRecordEntity
.
setUpdateTime
(
new
Date
());
performAttendRecordEntity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
attendRecordService
.
update
(
performAttendRecordEntity
);
}
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getRecordId
()))
{
PerformAttendRecordEntity
performAttendRecordEntity
=
attendRecordService
.
get
(
entity
.
getRecordId
());
if
(!
ObjectUtils
.
isEmpty
(
performAttendRecordEntity
))
{
performAttendRecordEntity
.
setProcessStatus
(
ProcessStatusEnum
.
已处理
.
getValue
());
performAttendRecordEntity
.
setUpdateTime
(
new
Date
());
performAttendRecordEntity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
attendRecordService
.
update
(
performAttendRecordEntity
);
}
}
/* AttendPostServiceThread attendPostServiceThread = new AttendPostServiceThread(entity);
ThreadPool.getInstance().execute(attendPostServiceThread);*/
sendCheckDingTalk
(
temp
);
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
temp
.
getStaffId
());
summaryCheck
(
query
);
}
sendCheckDingTalk
(
temp
);
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
temp
.
getStaffId
());
summaryCheck
(
query
);
}
catch
(
Exception
e
)
{
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckComplainRecordServiceImpl.java
View file @
eada306d
...
...
@@ -150,6 +150,10 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
if
(
entity
.
getId
()
==
null
)
{
throw
new
AppException
(
"核查记录ID不能为空"
);
}
CheckComplainRecordEntity
temp
=
this
.
get
(
entity
.
getId
());
if
(
temp
==
null
)
{
throw
new
AppException
(
"核查记录ID不正确"
);
}
if
(
context
!=
null
&&
context
.
getUser
()
!=
null
)
{
IUser
user
=
context
.
getUser
();
entity
.
setUpdateUserId
(
user
.
getId
());
...
...
@@ -158,27 +162,24 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getSubAddType
())&&!
ObjectUtils
.
isEmpty
(
entity
.
getCheckResult
())){
AuditUtil
.
audit
(
entity
);
}
entity
.
setCheckTime
(
new
Dat
e
());
entity
.
setUpdateTime
(
entity
.
getCheckTim
e
());
entity
.
setCheckTime
(
temp
.
getComplainTim
e
());
entity
.
setUpdateTime
(
new
Dat
e
());
entity
.
setCheckStatus
(
CheckStatusEnum
.
已处理
.
getValue
());
//处理状态(1.未处理,2.已处理)
dao
.
update
(
entity
);
try
{
CheckComplainRecordEntity
temp
=
this
.
get
(
entity
.
getId
());
if
(
temp
!=
null
)
{
if
(!
ObjectUtils
.
isEmpty
(
temp
.
getRecordId
())){
PerformComplainRecordEntity
recordEntity
=
recordService
.
get
(
temp
.
getRecordId
());
if
(!
ObjectUtils
.
isEmpty
(
recordEntity
)){
recordEntity
.
setProcessStatus
(
ProcessStatusEnum
.
已处理
.
getValue
());
recordEntity
.
setUpdateTime
(
new
Date
());
recordEntity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
recordService
.
update
(
recordEntity
);
}
if
(!
ObjectUtils
.
isEmpty
(
temp
.
getRecordId
())){
PerformComplainRecordEntity
recordEntity
=
recordService
.
get
(
temp
.
getRecordId
());
if
(!
ObjectUtils
.
isEmpty
(
recordEntity
)){
recordEntity
.
setProcessStatus
(
ProcessStatusEnum
.
已处理
.
getValue
());
recordEntity
.
setUpdateTime
(
new
Date
());
recordEntity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
recordService
.
update
(
recordEntity
);
}
sendCheckDingTalk
(
entity
);
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
temp
.
getStaffId
());
summaryCheck
(
query
);
}
sendCheckDingTalk
(
entity
);
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
temp
.
getStaffId
());
summaryCheck
(
query
);
}
catch
(
Exception
e
)
{
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckEffectRecordServiceImpl.java
View file @
eada306d
...
...
@@ -150,6 +150,10 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
if
(
entity
.
getId
()==
null
){
throw
new
AppException
(
"核查记录ID不能为空"
);
}
CheckEffectRecordEntity
temp
=
this
.
get
(
entity
.
getId
());
if
(
temp
==
null
)
{
throw
new
AppException
(
"核查记录ID不正确"
);
}
if
(
context
!=
null
&&
context
.
getUser
()!=
null
)
{
IUser
user
=
context
.
getUser
();
entity
.
setUpdateUserId
(
user
.
getId
());
...
...
@@ -158,28 +162,25 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getSubAddType
())&&!
ObjectUtils
.
isEmpty
(
entity
.
getCheckResult
())){
AuditUtil
.
audit
(
entity
);
}
entity
.
setCheckTime
(
new
Dat
e
());
entity
.
setUpdateTime
(
entity
.
getCheckTim
e
());
entity
.
setCheckTime
(
temp
.
getHappenTim
e
());
entity
.
setUpdateTime
(
new
Dat
e
());
entity
.
setCheckStatus
(
CheckStatusEnum
.
已处理
.
getValue
());
//处理状态(1.未处理,2.已处理)
dao
.
update
(
entity
);
try
{
CheckEffectRecordEntity
temp
=
this
.
get
(
entity
.
getId
());
if
(
temp
!=
null
)
{
if
(!
ObjectUtils
.
isEmpty
(
temp
.
getRecordId
())){
PerformEffectRecordEntity
recordEntity
=
recordService
.
get
(
temp
.
getRecordId
());
if
(!
ObjectUtils
.
isEmpty
(
recordEntity
)){
recordEntity
.
setProcessStatus
(
ProcessStatusEnum
.
已处理
.
getValue
());
recordEntity
.
setUpdateTime
(
new
Date
());
recordEntity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
recordService
.
update
(
recordEntity
);
}
if
(!
ObjectUtils
.
isEmpty
(
temp
.
getRecordId
())){
PerformEffectRecordEntity
recordEntity
=
recordService
.
get
(
temp
.
getRecordId
());
if
(!
ObjectUtils
.
isEmpty
(
recordEntity
)){
recordEntity
.
setProcessStatus
(
ProcessStatusEnum
.
已处理
.
getValue
());
recordEntity
.
setUpdateTime
(
new
Date
());
recordEntity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
recordService
.
update
(
recordEntity
);
}
sendCheckDingTalk
(
temp
);
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
temp
.
getStaffId
());
summaryCheck
(
query
);
}
sendCheckDingTalk
(
temp
);
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
temp
.
getStaffId
());
summaryCheck
(
query
);
}
catch
(
Exception
e
){
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckGoworkRecordServiceImpl.java
View file @
eada306d
...
...
@@ -147,6 +147,10 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
if
(
entity
.
getId
()==
null
){
throw
new
AppException
(
"核查记录ID不能为空"
);
}
CheckGoworkRecordEntity
temp
=
this
.
get
(
entity
.
getId
());
if
(
temp
==
null
)
{
throw
new
AppException
(
"核查记录ID不正确"
);
}
if
(
context
!=
null
&&
context
.
getUser
()!=
null
)
{
IUser
user
=
context
.
getUser
();
entity
.
setUpdateUserId
(
user
.
getId
());
...
...
@@ -155,28 +159,25 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getSubAddType
())&&!
ObjectUtils
.
isEmpty
(
entity
.
getCheckResult
())){
AuditUtil
.
audit
(
entity
);
}
entity
.
setCheckTime
(
new
Dat
e
());
entity
.
setUpdateTime
(
entity
.
getCheckTim
e
());
entity
.
setCheckTime
(
temp
.
getGoworkTim
e
());
entity
.
setUpdateTime
(
new
Dat
e
());
entity
.
setCheckStatus
(
CheckStatusEnum
.
已处理
.
getValue
());
//处理状态(1.未处理,2.已处理)
dao
.
update
(
entity
);
//发送钉钉通知信息
try
{
CheckGoworkRecordEntity
temp
=
this
.
get
(
entity
.
getId
());
if
(
temp
!=
null
)
{
if
(!
ObjectUtils
.
isEmpty
(
temp
.
getRecordId
())){
PerformGoworkRecordEntity
recordEntity
=
recordService
.
get
(
temp
.
getRecordId
());
if
(!
ObjectUtils
.
isEmpty
(
recordEntity
)){
recordEntity
.
setProcessStatus
(
ProcessStatusEnum
.
已处理
.
getValue
());
recordEntity
.
setUpdateTime
(
new
Date
());
recordEntity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
recordService
.
update
(
recordEntity
);
}
if
(!
ObjectUtils
.
isEmpty
(
temp
.
getRecordId
())){
PerformGoworkRecordEntity
recordEntity
=
recordService
.
get
(
temp
.
getRecordId
());
if
(!
ObjectUtils
.
isEmpty
(
recordEntity
)){
recordEntity
.
setProcessStatus
(
ProcessStatusEnum
.
已处理
.
getValue
());
recordEntity
.
setUpdateTime
(
new
Date
());
recordEntity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
recordService
.
update
(
recordEntity
);
}
sendCheckDingTalk
(
temp
);
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
temp
.
getStaffId
());
summaryCheck
(
query
);
}
sendCheckDingTalk
(
temp
);
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
temp
.
getStaffId
());
summaryCheck
(
query
);
}
catch
(
Exception
e
){
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckOtherRecordServiceImpl.java
View file @
eada306d
...
...
@@ -152,6 +152,10 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
if
(
entity
.
getId
()
==
null
)
{
throw
new
AppException
(
"核查记录ID不能为空"
);
}
CheckOtherRecordEntity
temp
=
this
.
get
(
entity
.
getId
());
if
(
temp
==
null
)
{
throw
new
AppException
(
"核查记录ID不正确"
);
}
if
(
context
!=
null
&&
context
.
getUser
()
!=
null
)
{
IUser
user
=
context
.
getUser
();
entity
.
setUpdateUserId
(
user
.
getId
());
...
...
@@ -160,28 +164,26 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getSubAddType
())
&&
!
ObjectUtils
.
isEmpty
(
entity
.
getCheckResult
()))
{
AuditUtil
.
audit
(
entity
);
}
entity
.
setCheckTime
(
new
Date
());
entity
.
setUpdateTime
(
entity
.
getCheckTime
());
entity
.
setCheckTime
(
temp
.
getHappenTime
());
entity
.
setUpdateTime
(
new
Date
());
entity
.
setCheckStatus
(
CheckStatusEnum
.
已处理
.
getValue
());
//处理状态(1.未处理,2.已处理)
dao
.
update
(
entity
);
//发送钉钉通知信息
try
{
CheckOtherRecordEntity
temp
=
this
.
get
(
entity
.
getId
());
if
(
temp
!=
null
)
{
if
(!
ObjectUtils
.
isEmpty
(
temp
.
getRecordId
()))
{
PerformOtherRecordEntity
recordEntity
=
recordService
.
get
(
temp
.
getRecordId
());
if
(!
ObjectUtils
.
isEmpty
(
recordEntity
))
{
recordEntity
.
setProcessStatus
(
ProcessStatusEnum
.
已处理
.
getValue
());
recordEntity
.
setUpdateTime
(
new
Date
());
recordEntity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
recordService
.
update
(
recordEntity
);
}
if
(!
ObjectUtils
.
isEmpty
(
temp
.
getRecordId
()))
{
PerformOtherRecordEntity
recordEntity
=
recordService
.
get
(
temp
.
getRecordId
());
if
(!
ObjectUtils
.
isEmpty
(
recordEntity
))
{
recordEntity
.
setProcessStatus
(
ProcessStatusEnum
.
已处理
.
getValue
());
recordEntity
.
setUpdateTime
(
new
Date
());
recordEntity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
recordService
.
update
(
recordEntity
);
}
sendCheckDingTalk
(
temp
);
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
temp
.
getStaffId
());
summaryCheck
(
query
);
}
sendCheckDingTalk
(
temp
);
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
temp
.
getStaffId
());
summaryCheck
(
query
);
}
catch
(
Exception
e
)
{
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckReviewRecordServiceImpl.java
View file @
eada306d
...
...
@@ -152,6 +152,10 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
if
(
entity
.
getId
()
==
null
)
{
throw
new
AppException
(
"核查记录ID不能为空"
);
}
CheckReviewRecordEntity
temp
=
this
.
get
(
entity
.
getId
());
if
(
temp
==
null
)
{
throw
new
AppException
(
"核查记录ID不正确"
);
}
if
(
context
!=
null
&&
context
.
getUser
()
!=
null
)
{
IUser
user
=
context
.
getUser
();
entity
.
setUpdateUserId
(
user
.
getId
());
...
...
@@ -160,28 +164,25 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getSubAddType
())&&!
ObjectUtils
.
isEmpty
(
entity
.
getCheckResult
())){
AuditUtil
.
audit
(
entity
);
}
entity
.
setCheckTime
(
new
Dat
e
());
entity
.
setUpdateTime
(
entity
.
getCheckTim
e
());
entity
.
setCheckTime
(
temp
.
getReviewTim
e
());
entity
.
setUpdateTime
(
new
Dat
e
());
entity
.
setCheckStatus
(
CheckStatusEnum
.
已处理
.
getValue
());
//处理状态(1.未处理,2.已处理)
dao
.
update
(
entity
);
//发送钉钉通知信息
try
{
CheckReviewRecordEntity
temp
=
this
.
get
(
entity
.
getId
());
if
(
temp
!=
null
)
{
if
(!
ObjectUtils
.
isEmpty
(
temp
.
getRecordId
())){
PerformReviewRecordEntity
recordEntity
=
recordService
.
get
(
temp
.
getRecordId
());
if
(!
ObjectUtils
.
isEmpty
(
recordEntity
)){
recordEntity
.
setProcessStatus
(
ProcessStatusEnum
.
已处理
.
getValue
());
recordEntity
.
setUpdateTime
(
new
Date
());
recordEntity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
recordService
.
update
(
recordEntity
);
}
if
(!
ObjectUtils
.
isEmpty
(
temp
.
getRecordId
())){
PerformReviewRecordEntity
recordEntity
=
recordService
.
get
(
temp
.
getRecordId
());
if
(!
ObjectUtils
.
isEmpty
(
recordEntity
)){
recordEntity
.
setProcessStatus
(
ProcessStatusEnum
.
已处理
.
getValue
());
recordEntity
.
setUpdateTime
(
new
Date
());
recordEntity
.
setUpdateUserId
(
this
.
getContextUserId
(
context
));
recordService
.
update
(
recordEntity
);
}
sendCheckDingTalk
(
temp
);
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
temp
.
getStaffId
());
summaryCheck
(
query
);
}
sendCheckDingTalk
(
temp
);
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
temp
.
getStaffId
());
summaryCheck
(
query
);
}
catch
(
Exception
e
)
{
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
}
...
...
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