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
4b4df225
Commit
4b4df225
authored
Sep 02, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
若尔盖考勤汇总导表需求
parent
b258a9f2
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
261 additions
and
81 deletions
+261
-81
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceStatEntity.java
...als/xhx/module/attendance/model/AttendanceStatEntity.java
+27
-10
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/vo/AttendanceStatVo.java
...tals/xhx/module/attendance/model/vo/AttendanceStatVo.java
+6
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceStatServiceImpl.java
...le/attendance/service/impl/AttendanceStatServiceImpl.java
+4
-0
attendance-performance-manager/src/main/resources/sqlmap/module/attendance/AttendanceStatMapper.xml
...sources/sqlmap/module/attendance/AttendanceStatMapper.xml
+204
-66
attendance-performance-manager/src/main/resources/sqlmap/module/attendance/AttendanceStatMapperExt.xml
...rces/sqlmap/module/attendance/AttendanceStatMapperExt.xml
+12
-4
db/add.sql
db/add.sql
+8
-1
doc/考勤绩效管理系统.docx
doc/考勤绩效管理系统.docx
+0
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceStatEntity.java
View file @
4b4df225
...
...
@@ -32,7 +32,7 @@ public class AttendanceStatEntity extends AttendanceStatVo {
/**
* 员工姓名
*/
@Excel
(
name
=
"员工姓名"
)
@Excel
(
name
=
"员工姓名"
,
sort
=
1
)
private
String
staffName
;
/**
* 所属大厅
...
...
@@ -41,7 +41,7 @@ public class AttendanceStatEntity extends AttendanceStatVo {
/**
* 所属大厅名称
*/
@Excel
(
name
=
"所属大厅"
)
@Excel
(
name
=
"所属大厅"
,
sort
=
2
)
private
String
salaName
;
/**
* 所属部门
...
...
@@ -50,24 +50,25 @@ public class AttendanceStatEntity extends AttendanceStatVo {
/**
* 所属部门名称
*/
@Excel
(
name
=
"部门名称"
)
@Excel
(
name
=
"部门名称"
,
sort
=
3
)
private
String
deptName
;
/**
* 手机号码
*/
private
String
phoneNumer
;
@Excel
(
name
=
"
出勤天数"
)
@Excel
(
name
=
"
应出勤天数(天)"
,
sort
=
4
)
private
Integer
workDays
;
/**
*
出勤
天数
*
实际正常
天数
*/
@Excel
(
name
=
"实际
出勤天数"
)
@Excel
(
name
=
"实际
正常天数(天)"
,
sort
=
6
)
private
Integer
goTimes
;
/**
* 考勤汇总-出勤率(%)
*/
@Excel
(
name
=
"考勤汇总-出勤率"
,
percentEnabled
=
true
,
suffix
=
"%"
,
scale
=
2
)
@Excel
(
name
=
"考勤汇总-出勤率"
,
percentEnabled
=
true
,
suffix
=
"%"
,
scale
=
2
,
sort
=
7
)
private
BigDecimal
attendanceRate
;
/**
* 上午缺卡次数
...
...
@@ -172,12 +173,12 @@ public class AttendanceStatEntity extends AttendanceStatVo {
/**
* 考勤汇总-未按规定打卡(含忘记打卡)
*/
@Excel
(
name
=
"考勤汇总-未按规定打卡
"
)
@Excel
(
name
=
"考勤汇总-未按规定打卡
(缺卡次数(次))"
,
sort
=
9
)
private
BigDecimal
nonCompliancePunch
;
/**
* 考勤汇总-迟到(次)
*/
@Excel
(
name
=
"考勤汇总-迟到
"
)
@Excel
(
name
=
"考勤汇总-迟到
(次)"
,
sort
=
10
)
private
Integer
lateTimes
;
/**
* 考勤汇总-上网耍手机(次)
...
...
@@ -187,7 +188,7 @@ public class AttendanceStatEntity extends AttendanceStatVo {
/**
* 考勤汇总-溜班(次)
*/
@Excel
(
name
=
"考勤汇总-溜班
"
)
@Excel
(
name
=
"考勤汇总-溜班
(次)"
,
sort
=
11
)
private
Integer
overtimeTimes
;
/**
* 考勤汇总-空岗
...
...
@@ -251,6 +252,18 @@ public class AttendanceStatEntity extends AttendanceStatVo {
@Excel
(
name
=
"陪产假"
)
private
BigDecimal
paternityLeaveDays
;
/**
* 实际出勤
*/
@Excel
(
name
=
"实际出勤(天)"
,
sort
=
5
)
private
Integer
goWorks
;
/**
* 请假总数(天)
*/
@Excel
(
name
=
"请假总数(天)"
,
sort
=
12
)
private
BigDecimal
leaveTime
;
@Override
public
int
hashCode
()
{
...
...
@@ -363,6 +376,10 @@ public class AttendanceStatEntity extends AttendanceStatVo {
this
.
salaId
=
null
;
this
.
salaName
=
""
;
this
.
goWorks
=
0
;
this
.
leaveTime
=
BigDecimal
.
valueOf
(
0.0
);
}
public
static
void
main
(
String
[]
args
)
{
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/vo/AttendanceStatVo.java
View file @
4b4df225
...
...
@@ -23,4 +23,10 @@ public class AttendanceStatVo extends BaseEntityLong {
private
String
endTime
;
private
List
<
Long
>
idList
;
/**
* 正常打卡次数
*/
@Excel
(
name
=
"正常次数(次)"
,
sort
=
8
)
private
Integer
sumCheck
;
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/service/impl/AttendanceStatServiceImpl.java
View file @
4b4df225
...
...
@@ -400,6 +400,9 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
temp
.
setGoTimes
(
0
);
//默认只要有异常考勤,当天就不算全勤
if
(
item
.
getMorningTimes
()
>
0
)
{
temp
.
setNonCompliancePunch
(
new
BigDecimal
(
item
.
getMorningTimes
()));
if
(
item
.
getMorningTimes
()>=
4
){
temp
.
setGoWorks
(
0
);
//缺卡4次以上不算全勤
}
}
//this.dao.update(temp);
temp
.
setStaffName
(
staffName
);
...
...
@@ -526,6 +529,7 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
leaveTime
=
oneDay
;
}
}
temp
.
setLeaveTime
(
leaveTime
);
//temp.setGoTimes(0); //默认只要有请假,当天就不算全勤
//temp.setMorningTimes(0); //有请假则清空当天缺卡次数
//temp.setLateTimes(0);
...
...
attendance-performance-manager/src/main/resources/sqlmap/module/attendance/AttendanceStatMapper.xml
View file @
4b4df225
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/main/resources/sqlmap/module/attendance/AttendanceStatMapperExt.xml
View file @
4b4df225
...
...
@@ -14,7 +14,9 @@
s.salaId,
s.salaName,
count(1) as workDays,
ROUND(IFNULL(sum(s.goTimes),0)/count(1),4) as attendanceRate,
sum(s.goWorks) AS goWorks,
ROUND(IFNULL(sum(s.goWorks),0)/count(1),4) as attendanceRate,
count(1)*4 as sumCheck,
sum(s.goTimes) AS goTimes,
sum(s.morningTimes) AS morningTimes,
sum(s.afternoonTimes) AS afternoonTimes,
...
...
@@ -48,7 +50,8 @@
sum(s.nonStandardDressTimes) AS nonStandardDressTimes,
sum(s.unexcusedMeetingAbsence) AS unexcusedMeetingAbsence,
sum(s.earlyLeaveMeeting) AS earlyLeaveMeeting,
sum(s.lateTimes) AS lateTimes
sum(s.lateTimes) AS lateTimes,
sum(s.leaveTime) AS leaveTime
FROM
mortals_xhx_attendance_stat s
WHERE
...
...
@@ -85,7 +88,10 @@
MAX(s.phoneNumer) as phoneNumer,
s.salaId,
s.salaName,
ROUND(IFNULL(sum(s.goTimes),0)/count(1),4) as attendanceRate,
count(1) as workDays,
sum(s.goWorks) AS goWorks,
ROUND(IFNULL(sum(s.goWorks),0)/count(1),4) as attendanceRate,
count(1)*4 as sumCheck,
sum(s.goTimes) AS goTimes,
sum(s.morningTimes) AS morningTimes,
sum(s.afternoonTimes) AS afternoonTimes,
...
...
@@ -118,7 +124,9 @@
sum(s.vacancy) AS vacancy,
sum(s.nonStandardDressTimes) AS nonStandardDressTimes,
sum(s.unexcusedMeetingAbsence) AS unexcusedMeetingAbsence,
sum(s.earlyLeaveMeeting) AS earlyLeaveMeeting
sum(s.earlyLeaveMeeting) AS earlyLeaveMeeting,
sum(s.lateTimes) AS lateTimes,
sum(s.leaveTime) AS leaveTime
FROM
mortals_xhx_attendance_stat s
WHERE
...
...
db/add.sql
View file @
4b4df225
...
...
@@ -1344,3 +1344,10 @@ ALTER TABLE `mortals_xhx_staff_perform_summary`
ADD
COLUMN
`sumScore`
DECIMAL
(
10
,
2
)
DEFAULT
NULL
COMMENT
'合计得分'
AFTER
`addTotalScore`
;
UPDATE
`mortals_xhx_staff_perform_summary`
SET
sumScore
=
totalScore
,
addTotalScore
=
0
;
-- ----------------------------
2024
-
09
-
02
-- ----------------------------
ALTER
TABLE
`mortals_xhx_attendance_stat`
ADD
COLUMN
`goWorks`
int
(
9
)
DEFAULT
'0'
COMMENT
'实际出勤天数'
,
ADD
COLUMN
`leaveTime`
double
(
4
,
1
)
DEFAULT
'0.0'
COMMENT
'请假天数'
;
\ No newline at end of file
doc/考勤绩效管理系统.docx
View file @
4b4df225
No preview for this file type
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