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
7707afeb
Commit
7707afeb
authored
Sep 09, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
若尔盖考勤汇总导表需求
parent
335dbb19
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceStatServiceImpl.java
...le/attendance/service/impl/AttendanceStatServiceImpl.java
+10
-1
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceStatServiceImpl.java
View file @
7707afeb
...
@@ -411,24 +411,33 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
...
@@ -411,24 +411,33 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
updateList
.
add
(
temp
);
updateList
.
add
(
temp
);
}
}
String
attendanceSummary
=
""
;
String
attendanceSummary
=
""
;
int
normal
=
4
;
//正常次数
if
(
item
.
getMorningTimes
()
>
0
)
{
if
(
item
.
getMorningTimes
()
>
0
)
{
attendanceSummary
+=
"缺卡*"
+
item
.
getMorningTimes
()
+
"次;"
;
attendanceSummary
+=
"缺卡*"
+
item
.
getMorningTimes
()
+
"次;"
;
normal
--;
}
}
if
(
item
.
getLateTimes
()
>
0
)
{
if
(
item
.
getLateTimes
()
>
0
)
{
attendanceSummary
+=
"迟到*"
+
item
.
getLateTimes
()
+
"次;"
;
attendanceSummary
+=
"迟到*"
+
item
.
getLateTimes
()
+
"次;"
;
normal
--;
}
}
if
(
item
.
getOvertimeTimes
()
>
0
)
{
if
(
item
.
getOvertimeTimes
()
>
0
)
{
attendanceSummary
+=
"早退*"
+
item
.
getOvertimeTimes
()
+
"次;"
;
attendanceSummary
+=
"早退*"
+
item
.
getOvertimeTimes
()
+
"次;"
;
normal
--;
}
}
if
(
item
.
getLeaveHalfDay
()
>
0
)
{
if
(
item
.
getLeaveHalfDay
()
>
0
)
{
attendanceSummary
+=
"事假半天*"
+
item
.
getLeaveHalfDay
()
+
"次;"
;
attendanceSummary
+=
"事假半天*"
+
item
.
getLeaveHalfDay
()
+
"次;"
;
normal
=
normal
-
2
;
}
}
if
(
item
.
getLeaveDay
()
>
0
)
{
if
(
item
.
getLeaveDay
()
>
0
)
{
attendanceSummary
+=
"事假全天*"
+
item
.
getLeaveDay
()
+
"次;"
;
attendanceSummary
+=
"事假全天*"
+
item
.
getLeaveDay
()
+
"次;"
;
normal
=
0
;
}
}
AttendanceStaffStatEntity
staffStat
=
new
AttendanceStaffStatEntity
();
AttendanceStaffStatEntity
staffStat
=
new
AttendanceStaffStatEntity
();
staffStat
.
initAttrValue
();
staffStat
.
initAttrValue
();
BeanUtils
.
copyProperties
(
item
,
staffStat
,
BeanUtil
.
getNullPropertyNames
(
item
));
BeanUtils
.
copyProperties
(
item
,
staffStat
,
BeanUtil
.
getNullPropertyNames
(
item
));
if
(
normal
>
0
){
attendanceSummary
=
"正常*"
+
normal
+
"次;"
+
attendanceSummary
;
}
staffStat
.
setAttendanceSummary
(
attendanceSummary
);
staffStat
.
setAttendanceSummary
(
attendanceSummary
);
if
(!
ObjectUtils
.
isEmpty
(
attendanceSummary
))
{
if
(!
ObjectUtils
.
isEmpty
(
attendanceSummary
))
{
...
@@ -540,7 +549,7 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
...
@@ -540,7 +549,7 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
if
(
leaveTypeEnum
==
null
)
{
if
(
leaveTypeEnum
==
null
)
{
leaveTypeEnum
=
LeaveTypeEnum
.
事假
;
//默认为事假
leaveTypeEnum
=
LeaveTypeEnum
.
事假
;
//默认为事假
}
}
attendanceSummary
=
leaveTypeEnum
.
getDesc
()
+
"*1"
;
attendanceSummary
=
leaveTypeEnum
.
getDesc
()
+
"*1
次
"
;
switch
(
leaveTypeEnum
)
{
switch
(
leaveTypeEnum
)
{
case
事假:
case
事假:
temp
.
setPersonalLeave
(
leaveTime
);
temp
.
setPersonalLeave
(
leaveTime
);
...
...
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