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
492cbe44
Commit
492cbe44
authored
May 27, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 请假记录 每人考勤显示
parent
e77f992e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
38 deletions
+21
-38
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/work/AttendanceWorkAbstract.java
...odule/attendance/service/work/AttendanceWorkAbstract.java
+14
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/work/FixWorkOtherAttendance.java
...odule/attendance/service/work/FixWorkOtherAttendance.java
+3
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceRecordController.java
...xhx/module/attendance/web/AttendanceRecordController.java
+0
-34
attendance-performance-manager/src/test/java/com/mortals/httpclient/system.http
...-manager/src/test/java/com/mortals/httpclient/system.http
+4
-4
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/work/AttendanceWorkAbstract.java
View file @
492cbe44
...
@@ -122,6 +122,20 @@ public abstract class AttendanceWorkAbstract {
...
@@ -122,6 +122,20 @@ public abstract class AttendanceWorkAbstract {
}
}
protected
Long
getWeekWorkDayClassId
(
AttendanceGroupFixedworkEntity
attendanceGroupFixedworkEntity
,
String
week
)
{
Long
weekClassId
=
-
1L
;
switch
(
week
)
{
case
"星期六"
:
weekClassId
=
attendanceGroupFixedworkEntity
.
getSaturdayClassId
();
break
;
case
"星期日"
:
weekClassId
=
attendanceGroupFixedworkEntity
.
getSundayClassId
();
break
;
}
return
weekClassId
;
}
public
AttendanceWorkAbstract
(
int
type
)
{
public
AttendanceWorkAbstract
(
int
type
)
{
this
.
type
=
type
;
this
.
type
=
type
;
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/work/FixWorkOtherAttendance.java
View file @
492cbe44
...
@@ -98,6 +98,9 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
...
@@ -98,6 +98,9 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
if
(!
checkWorkByHoliday
)
{
if
(!
checkWorkByHoliday
)
{
// log.info("当前日期不在考勤时间范围内,不做处理!");
// log.info("当前日期不在考勤时间范围内,不做处理!");
return
;
return
;
}
else
{
//工作日要上班 获取配置的周六 周日班次 默认周一
weekClassId
=
this
.
getWeekClassId
(
attendanceGroupFixedworkEntity
,
"星期一"
);
}
}
}
else
{
}
else
{
if
(
checkHolidayByWorkDay
)
{
if
(
checkHolidayByWorkDay
)
{
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceRecordController.java
View file @
492cbe44
...
@@ -66,8 +66,6 @@ import java.util.stream.Collectors;
...
@@ -66,8 +66,6 @@ import java.util.stream.Collectors;
@RequestMapping
(
"attendance/record"
)
@RequestMapping
(
"attendance/record"
)
public
class
AttendanceRecordController
extends
BaseCRUDJsonBodyMappingController
<
AttendanceRecordService
,
AttendanceRecordEntity
,
Long
>
{
public
class
AttendanceRecordController
extends
BaseCRUDJsonBodyMappingController
<
AttendanceRecordService
,
AttendanceRecordEntity
,
Long
>
{
@Autowired
private
ParamService
paramService
;
@Autowired
@Autowired
private
UploadService
uploadService
;
private
UploadService
uploadService
;
...
@@ -80,8 +78,6 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
...
@@ -80,8 +78,6 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
@Autowired
@Autowired
private
AttendanceClassService
attendanceClassService
;
private
AttendanceClassService
attendanceClassService
;
@Autowired
@Autowired
private
StaffService
staffService
;
@Autowired
private
AttendanceExportRecordService
attendanceExportRecordService
;
private
AttendanceExportRecordService
attendanceExportRecordService
;
@Autowired
@Autowired
private
AttendanceGroupService
groupService
;
private
AttendanceGroupService
groupService
;
...
@@ -371,37 +367,7 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
...
@@ -371,37 +367,7 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
.
filter
(
distinctByKey
(
f
->
f
.
getOrderNum
()))
.
filter
(
distinctByKey
(
f
->
f
.
getOrderNum
()))
.
sorted
(
Comparator
.
comparingInt
(
AttendanceRecordDetailEntity:
:
getOrderNum
))
.
sorted
(
Comparator
.
comparingInt
(
AttendanceRecordDetailEntity:
:
getOrderNum
))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
//list.parallelStream().collect(Collectors.groupingBy())
List
<
AttDsyncColumn
>
dsyncColumns
=
new
ArrayList
<>();
List
<
AttDsyncColumn
>
dsyncColumns
=
new
ArrayList
<>();
/* for (int i = 1; i <= collect.size(); i++) {
AttDsyncColumn attDsyncColumn = new AttDsyncColumn();
attDsyncColumn.setName(String.format("上班%s打卡时间", i));
attDsyncColumn.setProperty("goWorkDate");
attDsyncColumn.setOrderNum(i);
dsyncColumns.add(attDsyncColumn);
attDsyncColumn = new AttDsyncColumn();
attDsyncColumn.setName(String.format("上班%s打卡结果", i));
attDsyncColumn.setProperty("goWorkResult");
attDsyncColumn.setOrderNum(i);
dsyncColumns.add(attDsyncColumn);
attDsyncColumn = new AttDsyncColumn();
attDsyncColumn.setName(String.format("下班%s打卡时间", i));
attDsyncColumn.setProperty("offWorkDate");
attDsyncColumn.setOrderNum(i);
dsyncColumns.add(attDsyncColumn);
attDsyncColumn = new AttDsyncColumn();
attDsyncColumn.setName(String.format("下班%s打卡结果",i));
attDsyncColumn.setProperty("offWorkResult");
attDsyncColumn.setOrderNum(i);
dsyncColumns.add(attDsyncColumn);
}*/
collect
.
forEach
(
item
->
{
collect
.
forEach
(
item
->
{
AttDsyncColumn
attDsyncColumn
=
new
AttDsyncColumn
();
AttDsyncColumn
attDsyncColumn
=
new
AttDsyncColumn
();
attDsyncColumn
.
setName
(
String
.
format
(
"上班%s打卡时间"
,
item
.
getOrderNum
()));
attDsyncColumn
.
setName
(
String
.
format
(
"上班%s打卡时间"
,
item
.
getOrderNum
()));
...
...
attendance-performance-manager/src/test/java/com/mortals/httpclient/system.http
View file @
492cbe44
...
@@ -37,8 +37,8 @@ POST {{baseUrl}}/attendance/record/hik/addAttendanceRecord
...
@@ -37,8 +37,8 @@ POST {{baseUrl}}/attendance/record/hik/addAttendanceRecord
Content-Type: application/json
Content-Type: application/json
{
{
"attendanceDateStart": "2024-0
3-0
1",
"attendanceDateStart": "2024-0
5-1
1",
"attendanceDateEnd": "2024-0
3-3
1"
"attendanceDateEnd": "2024-0
5-1
1"
}
}
###海康考勤打卡记录计算1
###海康考勤打卡记录计算1
...
@@ -46,8 +46,8 @@ POST {{baseUrl}}/attendance/record/hik/addAttendanceRecord
...
@@ -46,8 +46,8 @@ POST {{baseUrl}}/attendance/record/hik/addAttendanceRecord
Content-Type: application/json
Content-Type: application/json
{
{
"attendanceDateStart": "202
3-12-04
",
"attendanceDateStart": "202
4-05-11
",
"attendanceDateEnd": "202
3-12-08
",
"attendanceDateEnd": "202
4-05-11
",
"staffId": 322
"staffId": 322
}
}
...
...
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