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
cf1bd616
Commit
cf1bd616
authored
Aug 03, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改固定班次考勤
parent
1a06d676
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
28 deletions
+23
-28
attendance-performance-manager-ui/admin/src/views/attendance/record/error/list.vue
...nager-ui/admin/src/views/attendance/record/error/list.vue
+4
-4
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
...nce-manager-ui/admin/src/views/attendance/record/list.vue
+4
-5
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceRecordErrorServiceImpl.java
...ndance/service/impl/AttendanceRecordErrorServiceImpl.java
+15
-19
No files found.
attendance-performance-manager-ui/admin/src/views/attendance/record/error/list.vue
View file @
cf1bd616
...
...
@@ -54,7 +54,7 @@
}
})
this
.
$nextTick
(()
=>
{
this
.
selection
=
arr
.
map
(
item
=>
item
.
id
)
this
.
selection
=
arr
.
map
(
item
=>
item
.
id
)
})
if
(
arr
.
length
<
1
){
this
.
$message
.
error
(
'
请至少选择一条处理
'
)
...
...
@@ -149,7 +149,7 @@
{
label
:
"
员工姓名
"
,
prop
:
"
staffName
"
,
fixed
:
'
left
'
,
width
:
100
},
{
label
:
"
工号
"
,
prop
:
"
workNum
"
},
{
label
:
"
部门
"
,
prop
:
"
deptName
"
},
{
label
:
"
考勤组
"
,
prop
:
"
dept
Name
"
},
{
label
:
"
考勤组
"
,
prop
:
"
attendanceGroup
Name
"
},
{
label
:
"
班次
"
,
prop
:
"
shiftsName
"
},
{
label
:
"
异常状态
"
,
prop
:
"
errorStatus
"
,
formatter
:
this
.
formattereErrorStatus
},
{
label
:
"
异常时间
"
,
prop
:
"
errorDateTime
"
,
formatter
:
this
.
formatterDate
},
...
...
@@ -175,7 +175,7 @@
}
else
{
return
(
<
span
>
<
el
-
button
type
=
"
text
"
size
=
'
mini
'
onClick
=
{()
=>
{
this
.
reCancle
(
row
)
}}
>
撤销
<
/el-button
>
...
...
@@ -192,4 +192,4 @@
}
}
}
</
script
>
\ No newline at end of file
</
script
>
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
View file @
cf1bd616
...
...
@@ -498,12 +498,11 @@ export default {
{
label
:
"
员工工号
"
,
prop
:
"
workNum
"
},
{
label
:
"
考勤组
"
,
prop
:
"
attendanceGroupName
"
,
formatter
:
this
.
formatters
,
prop
:
"
attendanceGroupName
"
},
{
label
:
"
部门
"
,
prop
:
"
deptName
"
,
formatter
:
this
.
formatters
},
{
label
:
"
职位
"
,
prop
:
"
positionName
"
,
formatter
:
this
.
formatters
},
{
label
:
"
班次
"
,
prop
:
"
shiftsName
"
,
formatter
:
this
.
formatters
},
{
label
:
"
部门
"
,
prop
:
"
deptName
"
},
{
label
:
"
职位
"
,
prop
:
"
positionName
"
},
{
label
:
"
班次
"
,
prop
:
"
classId
"
,
formatter
:
this
.
formatter
},
{
label
:
"
签到结果
"
,
prop
:
"
signInResult
"
,
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceRecordErrorServiceImpl.java
View file @
cf1bd616
...
...
@@ -39,28 +39,24 @@ public class AttendanceRecordErrorServiceImpl extends AbstractCRUDServiceImpl<At
protected
void
findAfter
(
AttendanceRecordErrorEntity
params
,
PageInfo
pageInfo
,
Context
context
,
List
<
AttendanceRecordErrorEntity
>
list
)
throws
AppException
{
list
.
forEach
(
item
->
{
AttendanceClass
Entity
attendanceClassEntity
=
attendanceClass
Service
.
get
(
item
.
getShiftsId
(),
context
);
AttendanceClass
DetailEntity
attendanceClassDetailEntity
=
classDetail
Service
.
get
(
item
.
getShiftsId
(),
context
);
if
(!
ObjectUtils
.
isEmpty
(
attendanceClassEntity
)&&!
ObjectUtils
.
isEmpty
(
attendanceClassEntity
.
getAttendanceClassDetailList
())){
for
(
AttendanceClassDetailEntity
attendanceClassDetailEntity
:
attendanceClassEntity
.
getAttendanceClassDetailList
())
{
if
(!
ObjectUtils
.
isEmpty
(
attendanceClassDetailEntity
))
{
String
str
=
DateUtil
.
formatTime
(
item
.
getGoOffDateTime
());
String
goStr
=
DateUtil
.
formatTime
(
attendanceClassDetailEntity
.
getGoWorkDate
());
String
offStr
=
DateUtil
.
formatTime
(
attendanceClassDetailEntity
.
getOffWorkDate
());
if
(!
ObjectUtils
.
isEmpty
(
attendanceClassDetailEntity
))
{
String
str
=
DateUtil
.
formatTime
(
item
.
getGoOffDateTime
());
String
goStr
=
DateUtil
.
formatTime
(
attendanceClassDetailEntity
.
getGoWorkDate
());
String
offStr
=
DateUtil
.
formatTime
(
attendanceClassDetailEntity
.
getOffWorkDate
());
if
(!
ObjectUtils
.
isEmpty
(
str
)&&
str
.
equals
(
goStr
))
{
item
.
setGoOrOff
(
"上班"
);
}
if
(!
ObjectUtils
.
isEmpty
(
str
)&&
str
.
equals
(
offStr
))
{
item
.
setGoOrOff
(
"下班"
);
}
if
(
ObjectUtils
.
isEmpty
(
item
.
getGoOrOff
()))
{
item
.
setGoOrOff
(
"上班"
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
str
)
&&
str
.
equals
(
goStr
))
{
item
.
setGoOrOff
(
"上班"
);
}
}
else
{
item
.
setGoOrOff
(
"上班"
);
if
(!
ObjectUtils
.
isEmpty
(
str
)
&&
str
.
equals
(
offStr
))
{
item
.
setGoOrOff
(
"下班"
);
}
if
(
ObjectUtils
.
isEmpty
(
item
.
getGoOrOff
()))
{
item
.
setGoOrOff
(
""
);
}
}
else
{
item
.
setGoOrOff
(
""
);
}
});
}
...
...
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