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
b293602b
Commit
b293602b
authored
Jul 18, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改考勤汇总
parent
a1d81668
Changes
15
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
3868 additions
and
2880 deletions
+3868
-2880
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/drawershow.vue
...ui/admin/src/views/attendance/leave/record/drawershow.vue
+3
-2
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
...nce-manager-ui/admin/src/views/attendance/record/list.vue
+5
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/h5/web/PerformApiController.java
...va/com/mortals/xhx/busiz/h5/web/PerformApiController.java
+9
-22
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceLeaveRecordEntity.java
.../module/attendance/model/AttendanceLeaveRecordEntity.java
+5
-5
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceRecordEntity.java
...s/xhx/module/attendance/model/AttendanceRecordEntity.java
+68
-264
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceRecordHikEntity.java
...hx/module/attendance/model/AttendanceRecordHikEntity.java
+77
-291
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceRecordHikQuery.java
...xhx/module/attendance/model/AttendanceRecordHikQuery.java
+1269
-763
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceRecordQuery.java
...ls/xhx/module/attendance/model/AttendanceRecordQuery.java
+1227
-722
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceStatEntity.java
...als/xhx/module/attendance/model/AttendanceStatEntity.java
+3
-3
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/vo/AttendanceRecordVo.java
...ls/xhx/module/attendance/model/vo/AttendanceRecordVo.java
+6
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceRecordController.java
...xhx/module/attendance/web/AttendanceRecordController.java
+5
-0
attendance-performance-manager/src/main/resources/sqlmap/module/attendance/AttendanceRecordHikMapper.xml
...es/sqlmap/module/attendance/AttendanceRecordHikMapper.xml
+940
-738
attendance-performance-manager/src/main/resources/sqlmap/module/attendance/AttendanceRecordMapper.xml
...urces/sqlmap/module/attendance/AttendanceRecordMapper.xml
+238
-69
db/add.sql
db/add.sql
+13
-1
doc/考勤绩效管理系统.docx
doc/考勤绩效管理系统.docx
+0
-0
No files found.
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/drawershow.vue
View file @
b293602b
...
@@ -150,10 +150,11 @@ export default {
...
@@ -150,10 +150,11 @@ export default {
],
],
approverId
:
[
approverId
:
[
{
required
:
true
,
message
:
"
请选择审批人
"
,
trigger
:
"
change
"
},
{
required
:
true
,
message
:
"
请选择审批人
"
,
trigger
:
"
change
"
},
],
]
/* ,
attachmentPath: [
attachmentPath: [
{ required: true, message: "请上传附件文件", trigger: "change" },
{ required: true, message: "请上传附件文件", trigger: "change" },
],
],
*/
},
},
attachmentPath
:
""
,
attachmentPath
:
""
,
};
};
...
...
attendance-performance-manager-ui/admin/src/views/attendance/record/list.vue
View file @
b293602b
...
@@ -458,6 +458,7 @@ export default {
...
@@ -458,6 +458,7 @@ export default {
label
:
"
考勤结束时间
"
,
label
:
"
考勤结束时间
"
,
fuzzy
:
false
,
fuzzy
:
false
,
},
},
],
],
columns
:
[
columns
:
[
{
type
:
"
selection
"
,
width
:
60
},
{
type
:
"
selection
"
,
width
:
60
},
...
@@ -476,6 +477,10 @@ export default {
...
@@ -476,6 +477,10 @@ export default {
{
label
:
"
部门
"
,
prop
:
"
deptName
"
,
formatter
:
this
.
formatters
},
{
label
:
"
部门
"
,
prop
:
"
deptName
"
,
formatter
:
this
.
formatters
},
{
label
:
"
职位
"
,
prop
:
"
positionName
"
,
formatter
:
this
.
formatters
},
{
label
:
"
职位
"
,
prop
:
"
positionName
"
,
formatter
:
this
.
formatters
},
{
label
:
"
班次
"
,
prop
:
"
shiftsName
"
,
formatter
:
this
.
formatters
},
{
label
:
"
班次
"
,
prop
:
"
shiftsName
"
,
formatter
:
this
.
formatters
},
{
label
:
"
签到结果
"
,
prop
:
"
signInResult
"
,
formatter
:
this
.
formatters
},
{
label
:
"
签退结果
"
,
prop
:
"
signOutResult
"
,
formatter
:
this
.
formatters
},
{
label
:
"
打卡结果
"
,
prop
:
"
punchResult
"
,
formatter
:
this
.
formatters
},
// {label: "考勤打卡记录详细信息",
// {label: "考勤打卡记录详细信息",
// width: 120,
// width: 120,
// prop: "subColumns",
// prop: "subColumns",
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/h5/web/PerformApiController.java
View file @
b293602b
...
@@ -336,6 +336,9 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -336,6 +336,9 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
if
(
bool
)
{
if
(
bool
)
{
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
未申诉
.
getValue
());
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
未申诉
.
getValue
());
}
else
{
}
else
{
if
(
ObjectUtils
.
isEmpty
(
entity
.
getAppealResult
())){
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
申诉中
.
getValue
());
}
else
{
if
(
AppealResultEnum
.
通过
.
getValue
()
==
entity
.
getAppealResult
())
{
if
(
AppealResultEnum
.
通过
.
getValue
()
==
entity
.
getAppealResult
())
{
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
申诉通过
.
getValue
());
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
申诉通过
.
getValue
());
}
else
if
(
AppealResultEnum
.
不通过
.
getValue
()
==
entity
.
getAppealResult
())
{
}
else
if
(
AppealResultEnum
.
不通过
.
getValue
()
==
entity
.
getAppealResult
())
{
...
@@ -344,28 +347,12 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -344,28 +347,12 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
申诉中
.
getValue
());
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
申诉中
.
getValue
());
}
}
}
}
}
else
{
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
未申诉
.
getValue
());
}
}
}
private
void
updateAppealStatus
(
PerformInfo
performInfo
,
Boolean
bool
,
Integer
processStatus
,
Integer
appealResult
)
{
if
(!
bool
)
{
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
未申诉
.
getValue
());
}
else
{
if
(
ProcessStatusEnum
.
未处理
.
getValue
()
==
processStatus
)
{
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
申诉中
.
getValue
());
}
else
{
}
else
{
if
(
AppealResultEnum
.
通过
.
getValue
()
==
appealResult
)
{
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
未申诉
.
getValue
());
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
申诉通过
.
getValue
());
}
else
if
(
AppealResultEnum
.
不通过
.
getValue
()
==
appealResult
)
{
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
申诉拒绝
.
getValue
());
}
}
}
}
}
}
/**
/**
* 详细
* 详细
*/
*/
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceLeaveRecordEntity.java
View file @
b293602b
...
@@ -116,27 +116,27 @@ public class AttendanceLeaveRecordEntity extends AttendanceLeaveRecordVo {
...
@@ -116,27 +116,27 @@ public class AttendanceLeaveRecordEntity extends AttendanceLeaveRecordVo {
public
void
initAttrValue
(){
public
void
initAttrValue
(){
this
.
leavePersonId
=
-
1L
;
this
.
leavePersonId
=
null
;
this
.
leavePerson
=
""
;
this
.
leavePerson
=
""
;
this
.
deptId
=
-
1L
;
this
.
deptId
=
null
;
this
.
deptName
=
""
;
this
.
deptName
=
""
;
this
.
phoneNumber
=
""
;
this
.
phoneNumber
=
""
;
this
.
leaveType
=
-
1
;
this
.
leaveType
=
null
;
this
.
startTime
=
null
;
this
.
startTime
=
null
;
this
.
endTime
=
null
;
this
.
endTime
=
null
;
this
.
duration
=
-
1
;
this
.
duration
=
0
;
this
.
reason
=
""
;
this
.
reason
=
""
;
this
.
approverId
=
-
1L
;
this
.
approverId
=
null
;
this
.
approver
=
""
;
this
.
approver
=
""
;
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceRecordEntity.java
View file @
b293602b
package
com.mortals.xhx.module.attendance.model
;
package
com.mortals.xhx.module.attendance.model
;
import
java.util.List
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -7,14 +6,14 @@ import com.fasterxml.jackson.annotation.JsonFormat;
...
@@ -7,14 +6,14 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.attendance.model.vo.AttendanceRecordVo
;
import
com.mortals.xhx.module.attendance.model.vo.AttendanceRecordVo
;
import
com.mortals.xhx.module.attendance.model.AttendanceRecordDetailEntity
;
import
lombok.Data
;
/**
/**
* 考勤打卡记录信息实体对象
* 考勤打卡记录信息实体对象
*
*
* @author zxfei
* @author zxfei
* @date 2023-04-07
* @date 2023-07-18
*/
*/
@Data
public
class
AttendanceRecordEntity
extends
AttendanceRecordVo
{
public
class
AttendanceRecordEntity
extends
AttendanceRecordVo
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -70,207 +69,22 @@ public class AttendanceRecordEntity extends AttendanceRecordVo {
...
@@ -70,207 +69,22 @@ public class AttendanceRecordEntity extends AttendanceRecordVo {
* 备注
* 备注
*/
*/
private
String
remark
;
private
String
remark
;
/**
* 考勤打卡记录详细信息信息
*/
private
List
<
AttendanceRecordDetailEntity
>
attendanceRecordDetailList
=
new
ArrayList
<>();;
public
AttendanceRecordEntity
(){}
/**
* 获取 员工ID
* @return Long
*/
public
Long
getStaffId
(){
return
staffId
;
}
/**
* 设置 员工ID
* @param staffId
*/
public
void
setStaffId
(
Long
staffId
){
this
.
staffId
=
staffId
;
}
/**
* 获取 员工姓名
* @return String
*/
public
String
getStaffName
(){
return
staffName
;
}
/**
* 设置 员工姓名
* @param staffName
*/
public
void
setStaffName
(
String
staffName
){
this
.
staffName
=
staffName
;
}
/**
* 获取 工号
* @return String
*/
public
String
getWorkNum
(){
return
workNum
;
}
/**
/**
* 设置 工号
* 签到结果(0.否,1.是)
* @param workNum
*/
*/
public
void
setWorkNum
(
String
workNum
){
private
Integer
signInResult
;
this
.
workNum
=
workNum
;
}
/**
* 获取 所属部门
* @return Long
*/
public
Long
getDeptId
(){
return
deptId
;
}
/**
* 设置 所属部门
* @param deptId
*/
public
void
setDeptId
(
Long
deptId
){
this
.
deptId
=
deptId
;
}
/**
* 获取 所属部门名称
* @return String
*/
public
String
getDeptName
(){
return
deptName
;
}
/**
/**
* 设置 所属部门名称
* 签退结果(0.否,1.是)
* @param deptName
*/
*/
public
void
setDeptName
(
String
deptName
){
private
Integer
signOutResult
;
this
.
deptName
=
deptName
;
}
/**
/**
* 获取 职位ID
* 考勤类型
* @return Long
*/
*/
public
Long
getPositionId
(){
private
String
attendType
;
return
positionId
;
}
/**
/**
* 设置 职位ID
* 打卡结果(0.否,1.是)
* @param positionId
*/
*/
public
void
setPositionId
(
Long
positionId
){
private
Integer
punchResult
;
this
.
positionId
=
positionId
;
}
/**
* 获取 职位名称
* @return String
*/
public
String
getPositionName
(){
return
positionName
;
}
/**
* 设置 职位名称
* @param positionName
*/
public
void
setPositionName
(
String
positionName
){
this
.
positionName
=
positionName
;
}
/**
* 获取 所属考勤组ID
* @return Long
*/
public
Long
getAttendanceGroupId
(){
return
attendanceGroupId
;
}
/**
* 设置 所属考勤组ID
* @param attendanceGroupId
*/
public
void
setAttendanceGroupId
(
Long
attendanceGroupId
){
this
.
attendanceGroupId
=
attendanceGroupId
;
}
/**
* 获取 所属考勤组名称
* @return String
*/
public
String
getAttendanceGroupName
(){
return
attendanceGroupName
;
}
/**
* 设置 所属考勤组名称
* @param attendanceGroupName
*/
public
void
setAttendanceGroupName
(
String
attendanceGroupName
){
this
.
attendanceGroupName
=
attendanceGroupName
;
}
/**
* 获取 班次ID
* @return Long
*/
public
Long
getShiftsId
(){
return
shiftsId
;
}
/**
* 设置 班次ID
* @param shiftsId
*/
public
void
setShiftsId
(
Long
shiftsId
){
this
.
shiftsId
=
shiftsId
;
}
/**
* 获取 班次名称
* @return String
*/
public
String
getShiftsName
(){
return
shiftsName
;
}
/**
* 设置 班次名称
* @param shiftsName
*/
public
void
setShiftsName
(
String
shiftsName
){
this
.
shiftsName
=
shiftsName
;
}
/**
* 获取 打卡日期
* @return Date
*/
public
Date
getAttendanceDate
(){
return
attendanceDate
;
}
/**
* 设置 打卡日期
* @param attendanceDate
*/
public
void
setAttendanceDate
(
Date
attendanceDate
){
this
.
attendanceDate
=
attendanceDate
;
}
/**
* 获取 备注
* @return String
*/
public
String
getRemark
(){
return
remark
;
}
/**
* 设置 备注
* @param remark
*/
public
void
setRemark
(
String
remark
){
this
.
remark
=
remark
;
}
public
List
<
AttendanceRecordDetailEntity
>
getAttendanceRecordDetailList
(){
return
attendanceRecordDetailList
;
}
public
void
setAttendanceRecordDetailList
(
List
<
AttendanceRecordDetailEntity
>
attendanceRecordDetailList
){
this
.
attendanceRecordDetailList
=
attendanceRecordDetailList
;
}
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
return
this
.
getId
().
hashCode
();
...
@@ -287,50 +101,40 @@ public class AttendanceRecordEntity extends AttendanceRecordVo {
...
@@ -287,50 +101,40 @@ public class AttendanceRecordEntity extends AttendanceRecordVo {
return
false
;
return
false
;
}
}
public
String
toString
(){
StringBuilder
sb
=
new
StringBuilder
(
""
);
sb
.
append
(
",staffId:"
).
append
(
getStaffId
());
sb
.
append
(
",staffName:"
).
append
(
getStaffName
());
sb
.
append
(
",workNum:"
).
append
(
getWorkNum
());
sb
.
append
(
",deptId:"
).
append
(
getDeptId
());
sb
.
append
(
",deptName:"
).
append
(
getDeptName
());
sb
.
append
(
",positionId:"
).
append
(
getPositionId
());
sb
.
append
(
",positionName:"
).
append
(
getPositionName
());
sb
.
append
(
",attendanceGroupId:"
).
append
(
getAttendanceGroupId
());
sb
.
append
(
",attendanceGroupName:"
).
append
(
getAttendanceGroupName
());
sb
.
append
(
",shiftsId:"
).
append
(
getShiftsId
());
sb
.
append
(
",shiftsName:"
).
append
(
getShiftsName
());
sb
.
append
(
",attendanceDate:"
).
append
(
getAttendanceDate
());
sb
.
append
(
",remark:"
).
append
(
getRemark
());
return
sb
.
toString
();
}
public
void
initAttrValue
(){
public
void
initAttrValue
(){
this
.
staffId
=
null
;
this
.
staffId
=
-
1L
;
this
.
staffName
=
""
;
this
.
staffName
=
""
;
this
.
workNum
=
""
;
this
.
workNum
=
""
;
this
.
deptId
=
null
;
this
.
deptId
=
-
1L
;
this
.
deptName
=
""
;
this
.
deptName
=
""
;
this
.
positionId
=
null
;
this
.
positionId
=
-
1L
;
this
.
positionName
=
""
;
this
.
positionName
=
""
;
this
.
attendanceGroupId
=
null
;
this
.
attendanceGroupId
=
-
1L
;
this
.
attendanceGroupName
=
""
;
this
.
attendanceGroupName
=
""
;
this
.
shiftsId
=
null
;
this
.
shiftsId
=
-
1L
;
this
.
shiftsName
=
""
;
this
.
shiftsName
=
""
;
this
.
attendanceDate
=
null
;
this
.
attendanceDate
=
null
;
this
.
remark
=
""
;
this
.
remark
=
""
;
this
.
signInResult
=
0
;
this
.
signOutResult
=
0
;
this
.
attendType
=
"0"
;
this
.
punchResult
=
0
;
}
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceRecordHikEntity.java
View file @
b293602b
package
com.mortals.xhx.module.attendance.model
;
package
com.mortals.xhx.module.attendance.model
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -7,13 +6,14 @@ import com.fasterxml.jackson.annotation.JsonFormat;
...
@@ -7,13 +6,14 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.attendance.model.vo.AttendanceRecordHikVo
;
import
com.mortals.xhx.module.attendance.model.vo.AttendanceRecordHikVo
;
import
lombok.Data
;
/**
/**
* 海康
考勤打卡记录汇总信息实体对象
* 基础
考勤打卡记录汇总信息实体对象
*
*
* @author zxfei
* @author zxfei
* @date 2023-04-0
8
* @date 2023-07-1
8
*/
*/
@Data
public
class
AttendanceRecordHikEntity
extends
AttendanceRecordHikVo
{
public
class
AttendanceRecordHikEntity
extends
AttendanceRecordHikVo
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -24,7 +24,7 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo {
...
@@ -24,7 +24,7 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo {
/**
/**
* 员工姓名
* 员工姓名
*/
*/
@Excel
(
name
=
"姓名"
)
@Excel
(
name
=
"
员工
姓名"
)
private
String
staffName
;
private
String
staffName
;
/**
/**
* 工号
* 工号
...
@@ -70,7 +70,7 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo {
...
@@ -70,7 +70,7 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo {
/**
/**
* 考勤日期
* 考勤日期
*/
*/
@Excel
(
name
=
"考勤
时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss
"
)
@Excel
(
name
=
"考勤
日期"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
"
)
private
Date
attendanceDate
;
private
Date
attendanceDate
;
/**
/**
* 考勤点名称
* 考勤点名称
...
@@ -86,224 +86,22 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo {
...
@@ -86,224 +86,22 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo {
* 备注
* 备注
*/
*/
private
String
remark
;
private
String
remark
;
public
AttendanceRecordHikEntity
(){}
/**
* 获取 员工ID
* @return Long
*/
public
Long
getStaffId
(){
return
staffId
;
}
/**
* 设置 员工ID
* @param staffId
*/
public
void
setStaffId
(
Long
staffId
){
this
.
staffId
=
staffId
;
}
/**
* 获取 员工姓名
* @return String
*/
public
String
getStaffName
(){
return
staffName
;
}
/**
* 设置 员工姓名
* @param staffName
*/
public
void
setStaffName
(
String
staffName
){
this
.
staffName
=
staffName
;
}
/**
* 获取 工号
* @return String
*/
public
String
getWorkNum
(){
return
workNum
;
}
/**
* 设置 工号
* @param workNum
*/
public
void
setWorkNum
(
String
workNum
){
this
.
workNum
=
workNum
;
}
/**
* 获取 所属部门
* @return Long
*/
public
Long
getDeptId
(){
return
deptId
;
}
/**
* 设置 所属部门
* @param deptId
*/
public
void
setDeptId
(
Long
deptId
){
this
.
deptId
=
deptId
;
}
/**
* 获取 所属部门名称
* @return String
*/
public
String
getDeptName
(){
return
deptName
;
}
/**
* 设置 所属部门名称
* @param deptName
*/
public
void
setDeptName
(
String
deptName
){
this
.
deptName
=
deptName
;
}
/**
* 获取 职位ID
* @return Long
*/
public
Long
getPositionId
(){
return
positionId
;
}
/**
* 设置 职位ID
* @param positionId
*/
public
void
setPositionId
(
Long
positionId
){
this
.
positionId
=
positionId
;
}
/**
* 获取 职位名称
* @return String
*/
public
String
getPositionName
(){
return
positionName
;
}
/**
* 设置 职位名称
* @param positionName
*/
public
void
setPositionName
(
String
positionName
){
this
.
positionName
=
positionName
;
}
/**
* 获取 所属考勤组ID
* @return Long
*/
public
Long
getAttendanceGroupId
(){
return
attendanceGroupId
;
}
/**
/**
* 设置 所属考勤组ID
* 签到结果(0.否,1.是)
* @param attendanceGroupId
*/
*/
public
void
setAttendanceGroupId
(
Long
attendanceGroupId
){
private
Integer
signInResult
;
this
.
attendanceGroupId
=
attendanceGroupId
;
}
/**
/**
* 获取 所属考勤组名称
* 签退结果(0.否,1.是)
* @return String
*/
*/
public
String
getAttendanceGroupName
(){
private
Integer
signOutResult
;
return
attendanceGroupName
;
}
/**
/**
* 设置 所属考勤组名称
* 考勤类型
* @param attendanceGroupName
*/
*/
public
void
setAttendanceGroupName
(
String
attendanceGroupName
){
private
String
attendType
;
this
.
attendanceGroupName
=
attendanceGroupName
;
}
/**
/**
* 获取 班次ID
* 打卡结果(0.否,1.是)
* @return Long
*/
*/
public
Long
getShiftsId
(){
private
Integer
punchResult
;
return
shiftsId
;
}
/**
* 设置 班次ID
* @param shiftsId
*/
public
void
setShiftsId
(
Long
shiftsId
){
this
.
shiftsId
=
shiftsId
;
}
/**
* 获取 班次名称
* @return String
*/
public
String
getShiftsName
(){
return
shiftsName
;
}
/**
* 设置 班次名称
* @param shiftsName
*/
public
void
setShiftsName
(
String
shiftsName
){
this
.
shiftsName
=
shiftsName
;
}
/**
* 获取 考勤日期
* @return Date
*/
public
Date
getAttendanceDate
(){
return
attendanceDate
;
}
/**
* 设置 考勤日期
* @param attendanceDate
*/
public
void
setAttendanceDate
(
Date
attendanceDate
){
this
.
attendanceDate
=
attendanceDate
;
}
/**
* 获取 考勤点名称
* @return String
*/
public
String
getAttendanceAddress
(){
return
attendanceAddress
;
}
/**
* 设置 考勤点名称
* @param attendanceAddress
*/
public
void
setAttendanceAddress
(
String
attendanceAddress
){
this
.
attendanceAddress
=
attendanceAddress
;
}
/**
* 获取 事件源
* @return String
*/
public
String
getEventSource
(){
return
eventSource
;
}
/**
* 设置 事件源
* @param eventSource
*/
public
void
setEventSource
(
String
eventSource
){
this
.
eventSource
=
eventSource
;
}
/**
* 获取 备注
* @return String
*/
public
String
getRemark
(){
return
remark
;
}
/**
* 设置 备注
* @param remark
*/
public
void
setRemark
(
String
remark
){
this
.
remark
=
remark
;
}
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
return
this
.
getId
().
hashCode
();
...
@@ -320,47 +118,27 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo {
...
@@ -320,47 +118,27 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo {
return
false
;
return
false
;
}
}
public
String
toString
(){
StringBuilder
sb
=
new
StringBuilder
(
""
);
sb
.
append
(
",staffId:"
).
append
(
getStaffId
());
sb
.
append
(
",staffName:"
).
append
(
getStaffName
());
sb
.
append
(
",workNum:"
).
append
(
getWorkNum
());
sb
.
append
(
",deptId:"
).
append
(
getDeptId
());
sb
.
append
(
",deptName:"
).
append
(
getDeptName
());
sb
.
append
(
",positionId:"
).
append
(
getPositionId
());
sb
.
append
(
",positionName:"
).
append
(
getPositionName
());
sb
.
append
(
",attendanceGroupId:"
).
append
(
getAttendanceGroupId
());
sb
.
append
(
",attendanceGroupName:"
).
append
(
getAttendanceGroupName
());
sb
.
append
(
",shiftsId:"
).
append
(
getShiftsId
());
sb
.
append
(
",shiftsName:"
).
append
(
getShiftsName
());
sb
.
append
(
",attendanceDate:"
).
append
(
getAttendanceDate
());
sb
.
append
(
",attendanceAddress:"
).
append
(
getAttendanceAddress
());
sb
.
append
(
",eventSource:"
).
append
(
getEventSource
());
sb
.
append
(
",remark:"
).
append
(
getRemark
());
return
sb
.
toString
();
}
public
void
initAttrValue
(){
public
void
initAttrValue
(){
this
.
staffId
=
null
;
this
.
staffId
=
-
1L
;
this
.
staffName
=
""
;
this
.
staffName
=
""
;
this
.
workNum
=
""
;
this
.
workNum
=
""
;
this
.
deptId
=
null
;
this
.
deptId
=
-
1L
;
this
.
deptName
=
""
;
this
.
deptName
=
""
;
this
.
positionId
=
null
;
this
.
positionId
=
-
1L
;
this
.
positionName
=
""
;
this
.
positionName
=
""
;
this
.
attendanceGroupId
=
null
;
this
.
attendanceGroupId
=
-
1L
;
this
.
attendanceGroupName
=
""
;
this
.
attendanceGroupName
=
""
;
this
.
shiftsId
=
null
;
this
.
shiftsId
=
-
1L
;
this
.
shiftsName
=
""
;
this
.
shiftsName
=
""
;
...
@@ -371,5 +149,13 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo {
...
@@ -371,5 +149,13 @@ public class AttendanceRecordHikEntity extends AttendanceRecordHikVo {
this
.
eventSource
=
""
;
this
.
eventSource
=
""
;
this
.
remark
=
""
;
this
.
remark
=
""
;
this
.
signInResult
=
0
;
this
.
signOutResult
=
0
;
this
.
attendType
=
""
;
this
.
punchResult
=
0
;
}
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceRecordHikQuery.java
View file @
b293602b
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceRecordQuery.java
View file @
b293602b
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/AttendanceStatEntity.java
View file @
b293602b
...
@@ -332,10 +332,10 @@ public class AttendanceStatEntity extends AttendanceStatVo {
...
@@ -332,10 +332,10 @@ public class AttendanceStatEntity extends AttendanceStatVo {
this
.
phoneNumer
=
""
;
this
.
phoneNumer
=
""
;
this
.
goTimes
=
-
1
;
this
.
goTimes
=
0
;
this
.
morningTimes
=
-
1
;
this
.
morningTimes
=
0
;
this
.
afternoonTimes
=
-
1
;
this
.
afternoonTimes
=
0
;
}
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/model/vo/AttendanceRecordVo.java
View file @
b293602b
...
@@ -19,6 +19,12 @@ public class AttendanceRecordVo extends BaseEntityLong {
...
@@ -19,6 +19,12 @@ public class AttendanceRecordVo extends BaseEntityLong {
private
AttendanceRecordDetailEntity
attendanceRecordDetailEntity
;
private
AttendanceRecordDetailEntity
attendanceRecordDetailEntity
;
/**
* 考勤打卡记录详细信息信息
*/
private
List
<
AttendanceRecordDetailEntity
>
attendanceRecordDetailList
=
new
ArrayList
<>();;
/** 开始 打卡日期 */
/** 开始 打卡日期 */
private
String
attendanceDateStart
;
private
String
attendanceDateStart
;
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceRecordController.java
View file @
b293602b
...
@@ -6,6 +6,7 @@ import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
...
@@ -6,6 +6,7 @@ import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.GoWorkResultEnum
;
import
com.mortals.xhx.common.code.GoWorkResultEnum
;
import
com.mortals.xhx.common.code.OffWorkResultEnum
;
import
com.mortals.xhx.common.code.OffWorkResultEnum
;
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.AttendanceClassService
;
import
com.mortals.xhx.module.attendance.service.AttendanceClassService
;
import
com.mortals.xhx.module.attendance.service.AttendanceGroupService
;
import
com.mortals.xhx.module.attendance.service.AttendanceGroupService
;
...
@@ -56,6 +57,9 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
...
@@ -56,6 +57,9 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
this
.
addDict
(
model
,
"classId"
,
attendanceClassService
.
find
(
new
AttendanceClassQuery
()).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getId
().
toString
(),
y
->
y
.
getClassName
())));
this
.
addDict
(
model
,
"classId"
,
attendanceClassService
.
find
(
new
AttendanceClassQuery
()).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getId
().
toString
(),
y
->
y
.
getClassName
())));
this
.
addDict
(
model
,
"goWorkResult"
,
GoWorkResultEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"goWorkResult"
,
GoWorkResultEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"offWorkResult"
,
OffWorkResultEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"offWorkResult"
,
OffWorkResultEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"signInResult"
,
YesNoEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"signOutResult"
,
YesNoEnum
.
getEnumMap
());
this
.
addDict
(
model
,
"punchResult"
,
YesNoEnum
.
getEnumMap
());
//设置
//设置
...
@@ -122,6 +126,7 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
...
@@ -122,6 +126,7 @@ public class AttendanceRecordController extends BaseCRUDJsonBodyMappingControlle
Iterator
<
AttendanceRecordEntity
>
iterator
=
list
.
iterator
();
Iterator
<
AttendanceRecordEntity
>
iterator
=
list
.
iterator
();
while
(
iterator
.
hasNext
())
{
while
(
iterator
.
hasNext
())
{
AttendanceRecordEntity
recordEntity
=
iterator
.
next
();
AttendanceRecordEntity
recordEntity
=
iterator
.
next
();
Set
<
Integer
>
existSet
=
recordEntity
.
getAttendanceRecordDetailList
().
stream
().
map
(
i
->
i
.
getOrderNum
()).
collect
(
Collectors
.
toSet
());
Set
<
Integer
>
existSet
=
recordEntity
.
getAttendanceRecordDetailList
().
stream
().
map
(
i
->
i
.
getOrderNum
()).
collect
(
Collectors
.
toSet
());
//判断详细列表中是否存在顺序 没有自动填充空对象数据
//判断详细列表中是否存在顺序 没有自动填充空对象数据
List
<
AttendanceRecordDetailEntity
>
addDetailList
=
dsyncSet
.
stream
().
map
(
i
->
{
List
<
AttendanceRecordDetailEntity
>
addDetailList
=
dsyncSet
.
stream
().
map
(
i
->
{
...
...
attendance-performance-manager/src/main/resources/sqlmap/module/attendance/AttendanceRecordHikMapper.xml
View file @
b293602b
This diff is collapsed.
Click to expand it.
attendance-performance-manager/src/main/resources/sqlmap/module/attendance/AttendanceRecordMapper.xml
View file @
b293602b
This diff is collapsed.
Click to expand it.
db/add.sql
View file @
b293602b
...
@@ -795,4 +795,16 @@ PRIMARY KEY (`id`)
...
@@ -795,4 +795,16 @@ PRIMARY KEY (`id`)
ALTER
TABLE
mortals_xhx_attendance_record
ADD
COLUMN
`signInResult`
tinyint
(
2
)
DEFAULT
'0'
COMMENT
'签到结果(0.否,1.是)'
;
ALTER
TABLE
mortals_xhx_attendance_record
ADD
COLUMN
`signOutResult`
tinyint
(
2
)
DEFAULT
'0'
COMMENT
'签退结果(0.否,1.是)'
;
ALTER
TABLE
mortals_xhx_attendance_record
ADD
COLUMN
`attendType`
varchar
(
128
)
DEFAULT
'0'
COMMENT
'考勤类型'
;
ALTER
TABLE
mortals_xhx_attendance_record
ADD
COLUMN
`punchResult`
tinyint
(
2
)
DEFAULT
'0'
COMMENT
'打卡结果(0.否,1.是)'
;
ALTER
TABLE
mortals_xhx_attendance_record_hik
ADD
COLUMN
`signInResult`
tinyint
(
2
)
DEFAULT
'0'
COMMENT
'签到结果(0.否,1.是)'
;
ALTER
TABLE
mortals_xhx_attendance_record_hik
ADD
COLUMN
`signOutResult`
tinyint
(
2
)
DEFAULT
'0'
COMMENT
'签退结果(0.否,1.是)'
;
ALTER
TABLE
mortals_xhx_attendance_record_hik
ADD
COLUMN
`attendType`
varchar
(
128
)
DEFAULT
'0'
COMMENT
'考勤类型'
;
ALTER
TABLE
mortals_xhx_attendance_record_hik
ADD
COLUMN
`punchResult`
tinyint
(
2
)
DEFAULT
'0'
COMMENT
'打卡结果(0.否,1.是)'
;
ALTER
TABLE
mortals_xhx_attendance_stat
ADD
COLUMN
`goTimes`
int
(
9
)
DEFAULT
'0'
COMMENT
'出勤天数'
;
ALTER
TABLE
mortals_xhx_attendance_stat
ADD
COLUMN
`morningTimes`
int
(
9
)
DEFAULT
'0'
COMMENT
'上午缺卡次数'
;
ALTER
TABLE
mortals_xhx_attendance_stat
ADD
COLUMN
`afternoonTimes`
int
(
9
)
DEFAULT
'0'
COMMENT
'下午缺卡次数'
;
doc/考勤绩效管理系统.docx
View file @
b293602b
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