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
09e7bc71
Commit
09e7bc71
authored
Jan 08, 2025
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug:请假重复审批通过导致冗余绩效异常信息
parent
c825da52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceLeaveRecordServiceImpl.java
...ndance/service/impl/AttendanceLeaveRecordServiceImpl.java
+24
-1
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceLeaveRecordServiceImpl.java
View file @
09e7bc71
...
...
@@ -90,6 +90,29 @@ public class AttendanceLeaveRecordServiceImpl extends AbstractCRUDServiceImpl<At
*/
private
static
String
LEAVE_REIDS_KEY
=
"attendance:leave:"
;
@Override
public
AttendanceLeaveRecordEntity
update
(
AttendanceLeaveRecordEntity
entity
,
Context
context
)
throws
AppException
{
this
.
updateBefore
(
entity
,
context
);
boolean
doPerformAttend
=
true
;
AttendanceLeaveRecordEntity
temp
=
this
.
get
(
entity
.
getId
());
if
(
temp
!=
null
){
if
(
AppealResultEnum
.
通过
.
getValue
()
==
entity
.
getAuditResult
()
&&
LeaveTypeEnum
.
事假
.
getValue
()
==
entity
.
getLeaveType
()){
doPerformAttend
=
false
;
}
}
int
iRet
=
this
.
dao
.
update
(
entity
);
if
(
iRet
==
0
)
{
throw
new
AppException
(-
1002
,
"更新失败!"
);
}
else
{
super
.
updateAfter
(
entity
,
context
);
if
(
doPerformAttend
)
{
creatPerformAttend
(
entity
,
context
);
}
doUpdateRecordAndSummary
(
entity
,
context
);
return
entity
;
}
}
@Override
protected
void
updateAfter
(
AttendanceLeaveRecordEntity
entity
,
Context
context
)
throws
AppException
{
super
.
updateAfter
(
entity
,
context
);
...
...
@@ -101,7 +124,7 @@ public class AttendanceLeaveRecordServiceImpl extends AbstractCRUDServiceImpl<At
query.setSummaryTimeEnd(DateUtils.getStrDate(entity.getEndTime()));
cacheService.lpush(KEY_ATTENDANCE_STAT_CACHE, query);
}*/
creatPerformAttend
(
entity
,
context
);
creatPerformAttend
(
entity
,
context
);
doUpdateRecordAndSummary
(
entity
,
context
);
}
...
...
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