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
766f39d1
Commit
766f39d1
authored
Nov 08, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改记录
parent
bfe873b7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
16 deletions
+20
-16
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/task/CalculateDayAttendTaskImpl.java
...m/mortals/xhx/daemon/task/CalculateDayAttendTaskImpl.java
+3
-3
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/work/FixWorkOtherAttendance.java
...odule/attendance/service/work/FixWorkOtherAttendance.java
+5
-10
attendance-performance-manager/src/test/java/com/mortals/httpclient/http-client.env.json
...src/test/java/com/mortals/httpclient/http-client.env.json
+9
-0
attendance-performance-manager/src/test/java/com/mortals/httpclient/system.http
...-manager/src/test/java/com/mortals/httpclient/system.http
+3
-3
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/task/CalculateDayAttendTaskImpl.java
View file @
766f39d1
...
@@ -6,6 +6,7 @@ import com.mortals.framework.model.Context;
...
@@ -6,6 +6,7 @@ import com.mortals.framework.model.Context;
import
com.mortals.framework.service.ITask
;
import
com.mortals.framework.service.ITask
;
import
com.mortals.framework.service.ITaskExcuteService
;
import
com.mortals.framework.service.ITaskExcuteService
;
import
com.mortals.xhx.base.system.user.model.UserEntity
;
import
com.mortals.xhx.base.system.user.model.UserEntity
;
import
com.mortals.xhx.common.code.StaffSatusEnum
;
import
com.mortals.xhx.common.code.YesNoEnum
;
import
com.mortals.xhx.common.code.YesNoEnum
;
import
com.mortals.xhx.module.attendance.model.*
;
import
com.mortals.xhx.module.attendance.model.*
;
import
com.mortals.xhx.module.attendance.service.AttendanceGroupFixedworkService
;
import
com.mortals.xhx.module.attendance.service.AttendanceGroupFixedworkService
;
...
@@ -84,12 +85,11 @@ public class CalculateDayAttendTaskImpl implements ITaskExcuteService {
...
@@ -84,12 +85,11 @@ public class CalculateDayAttendTaskImpl implements ITaskExcuteService {
//查看当前需要考勤但是没有记录的人
//查看当前需要考勤但是没有记录的人
List
<
Long
>
unAttendStaffIdList
=
groupStaffList
.
stream
().
filter
(
f
->
!
attendStaffSet
.
contains
(
f
.
getStaffId
())).
map
(
i
->
i
.
getStaffId
()).
collect
(
Collectors
.
toList
());
List
<
Long
>
unAttendStaffIdList
=
groupStaffList
.
stream
().
filter
(
f
->
!
attendStaffSet
.
contains
(
f
.
getStaffId
())).
map
(
i
->
i
.
getStaffId
()).
collect
(
Collectors
.
toList
());
if
(!
ObjectUtils
.
isEmpty
(
unAttendStaffIdList
))
{
if
(!
ObjectUtils
.
isEmpty
(
unAttendStaffIdList
))
{
for
(
Long
staffId
:
unAttendStaffIdList
)
{
for
(
Long
staffId
:
unAttendStaffIdList
)
{
StaffEntity
staffCache
=
staffService
.
getCache
(
staffId
.
toString
());
StaffEntity
staffCache
=
staffService
.
getCache
(
staffId
.
toString
());
if
(!
ObjectUtils
.
isEmpty
(
staffCache
))
{
if
(!
ObjectUtils
.
isEmpty
(
staffCache
)
&&
StaffSatusEnum
.
离职
.
getValue
()
!=
staffCache
.
getStatus
())
{
//构建考勤记录 判断当前人是否离职,如果非离职 构建记录
//构建考勤记录
AttendanceRecordHikEntity
recordHikEntity
=
new
AttendanceRecordHikEntity
();
AttendanceRecordHikEntity
recordHikEntity
=
new
AttendanceRecordHikEntity
();
recordHikEntity
.
initAttrValue
();
recordHikEntity
.
initAttrValue
();
recordHikEntity
.
setStaffId
(
staffCache
.
getId
());
recordHikEntity
.
setStaffId
(
staffCache
.
getId
());
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/work/FixWorkOtherAttendance.java
View file @
766f39d1
...
@@ -337,6 +337,11 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
...
@@ -337,6 +337,11 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
for
(
AttendanceRecordDetailEntity
recordDetailEntity
:
detailEntityList
)
{
for
(
AttendanceRecordDetailEntity
recordDetailEntity
:
detailEntityList
)
{
Integer
goWorkResult
=
recordDetailEntity
.
getGoWorkResult
();
Integer
goWorkResult
=
recordDetailEntity
.
getGoWorkResult
();
Integer
offWorkResult
=
recordDetailEntity
.
getOffWorkResult
();
Integer
offWorkResult
=
recordDetailEntity
.
getOffWorkResult
();
//判断是否是离职员工 如果是 则不添加
//判断上班
//判断上班
AttendanceClassDetailEntity
attendanceClassDetailEntity
=
attendanceClassDetailService
.
get
(
recordDetailEntity
.
getShiftsId
());
AttendanceClassDetailEntity
attendanceClassDetailEntity
=
attendanceClassDetailService
.
get
(
recordDetailEntity
.
getShiftsId
());
if
(
ObjectUtils
.
isEmpty
(
attendanceClassDetailEntity
))
continue
;
if
(
ObjectUtils
.
isEmpty
(
attendanceClassDetailEntity
))
continue
;
...
@@ -402,16 +407,6 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
...
@@ -402,16 +407,6 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
errorEntityList
.
add
(
errorEntity
);
errorEntityList
.
add
(
errorEntity
);
}
}
//
// if(GoWorkResultEnum.正常.getValue() == goWorkResult&&OffWorkResultEnum.正常.getValue() == offWorkResult){
////将异常的记录删除
// AttendanceRecordErrorEntity errorEntity = new AttendanceRecordErrorEntity();
// errorEntity.initAttrValue();
// BeanUtils.copyProperties(attendanceRecordEntity, errorEntity, new String[]{"id"});
//
// errorSwitchNormalList.add(errorEntity);
// }
}
}
//删除当前员工当日未处理的异常后,重新添加
//删除当前员工当日未处理的异常后,重新添加
...
...
attendance-performance-manager/src/test/java/com/mortals/httpclient/http-client.env.json
View file @
766f39d1
...
@@ -6,8 +6,17 @@
...
@@ -6,8 +6,17 @@
"baseUrl"
:
"http://192.168.0.98:11039/attendance"
,
"baseUrl"
:
"http://192.168.0.98:11039/attendance"
,
"baseLogin"
:
"http://192.168.0.98:11078/base"
"baseLogin"
:
"http://192.168.0.98:11078/base"
},
},
"yibin"
:
{
"baseUrl"
:
"http://112.19.80.237:11039/attendance"
,
"baseLogin"
:
"http://192.168.0.98:11078/base"
},
"portal"
:
{
"portal"
:
{
"baseUrl"
:
"http://192.168.0.98:11072/zwfw"
,
"baseUrl"
:
"http://192.168.0.98:11072/zwfw"
,
"baseLogin"
:
"http://192.168.0.98:11078/base"
"baseLogin"
:
"http://192.168.0.98:11078/base"
},
"portal-yibin"
:
{
"baseUrl"
:
"http://112.19.80.237:11078/zwfw"
}
}
}
}
\ No newline at end of file
attendance-performance-manager/src/test/java/com/mortals/httpclient/system.http
View file @
766f39d1
...
@@ -5,7 +5,7 @@ Content-Type: application/json
...
@@ -5,7 +5,7 @@ Content-Type: application/json
{
{
"loginName":"admin",
"loginName":"admin",
"password":"
admin
",
"password":"
xhxADMIN8@a
",
"securityCode":"admin"
"securityCode":"admin"
}
}
...
@@ -33,8 +33,8 @@ Authorization: {{authToken}}
...
@@ -33,8 +33,8 @@ Authorization: {{authToken}}
Content-Type: application/json
Content-Type: application/json
{
{
"attendanceDateStart":"2023-
10-05
",
"attendanceDateStart":"2023-
09-28
",
"attendanceDateEnd":"2023-10-0
5
"
"attendanceDateEnd":"2023-10-0
8
"
}
}
...
...
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