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
6a82e9cb
Commit
6a82e9cb
authored
May 17, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
1d81de1f
bcd12e4b
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
344 additions
and
123 deletions
+344
-123
attendance-performance-manager-ui/admin/src/assets/mixins/formdialog.js
...formance-manager-ui/admin/src/assets/mixins/formdialog.js
+10
-1
attendance-performance-manager-ui/admin/src/components/DataTableSelect.vue
...mance-manager-ui/admin/src/components/DataTableSelect.vue
+5
-0
attendance-performance-manager-ui/admin/src/components/Table.vue
...nce-performance-manager-ui/admin/src/components/Table.vue
+1
-0
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/drawershow.vue
...ui/admin/src/views/attendance/leave/record/drawershow.vue
+149
-42
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
...mance-manager-ui/admin/src/views/attendance/stat/list.vue
+29
-10
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/task/AttendanceSummaryTaskImpl.java
...om/mortals/xhx/daemon/task/AttendanceSummaryTaskImpl.java
+13
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/vo/CheckWindowWorkmanPerformVo.java
...hx/module/check/model/vo/CheckWindowWorkmanPerformVo.java
+4
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckAttendRecordServiceImpl.java
...dule/check/service/impl/CheckAttendRecordServiceImpl.java
+13
-13
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckComplainRecordServiceImpl.java
...le/check/service/impl/CheckComplainRecordServiceImpl.java
+11
-11
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckEffectRecordServiceImpl.java
...dule/check/service/impl/CheckEffectRecordServiceImpl.java
+11
-11
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckGoworkRecordServiceImpl.java
...dule/check/service/impl/CheckGoworkRecordServiceImpl.java
+11
-11
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckOtherRecordServiceImpl.java
...odule/check/service/impl/CheckOtherRecordServiceImpl.java
+11
-11
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckReviewRecordServiceImpl.java
...dule/check/service/impl/CheckReviewRecordServiceImpl.java
+11
-11
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckWindowWorkmanPerformServiceImpl.java
...ck/service/impl/CheckWindowWorkmanPerformServiceImpl.java
+7
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformAttendAppealServiceImpl.java
.../perform/service/impl/PerformAttendAppealServiceImpl.java
+58
-0
No files found.
attendance-performance-manager-ui/admin/src/assets/mixins/formdialog.js
View file @
6a82e9cb
...
...
@@ -25,7 +25,16 @@ export default {
data
.
attachmentPathList
&&
data
.
attachmentPathList
.
length
>
0
?
(
data
.
attachmentPath
=
data
.
attachmentPathList
[
0
].
url
)
:
(
data
.
attachmentPath
=
""
);
if
(
data
.
leavePerson
==
0
||
data
.
leavePerson
)
{
if
(
this
.
dict
.
staffList
)
{
data
.
leavePerson
=
this
.
dict
.
staffList
[
this
.
form
.
leavePerson
];
for
(
let
key
in
this
.
dict
.
staffList
)
{
if
(
this
.
dict
.
staffList
[
key
]
==
data
.
leavePerson
)
{
data
.
leavePersonId
=
Number
(
key
);
}
}
}
}
return
data
;
},
// 提交表单的后置处理, 会阻断默认的回退行为
...
...
attendance-performance-manager-ui/admin/src/components/DataTableSelect.vue
View file @
6a82e9cb
...
...
@@ -12,6 +12,7 @@
:row-class-name=
"tableRowClassName"
:empty-text=
"emptytxt ? emptytxt : emptyText"
border
:height=
"height"
style=
"width: 100%"
>
<template
v-for=
"column in columns"
>
...
...
@@ -113,6 +114,10 @@ export default {
required
:
false
,
default
:
()
=>
[],
},
height
:
{
type
:
String
,
required
:
false
,
},
},
computed
:
{
emptyText
()
{
...
...
attendance-performance-manager-ui/admin/src/components/Table.vue
View file @
6a82e9cb
...
...
@@ -200,6 +200,7 @@
:handleSelectableMethod=
"config.methods.handleSelectableMethod"
:handleSelectionChange=
"config.methods.handleSelectionChange"
:handleRowClick=
"config.methods.handleRowClick"
:height=
"config.height"
:handleCellClick=
"config.methods.handleCellClick"
/>
...
...
attendance-performance-manager-ui/admin/src/views/attendance/leave/record/drawershow.vue
View file @
6a82e9cb
<
template
>
<!-- 弹出框表单 -->
<el-drawer
:title=
"title"
:visible.sync=
"open"
:direction=
"direction"
size=
"60%"
>
<el-drawer
:title=
"title"
:visible.sync=
"open"
:direction=
"direction"
size=
"60%"
>
<div
style=
"padding:15px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-row>
...
...
@@ -13,44 +18,142 @@
:maxLength=
"10"
:disabled=
"pageInfo.type == 'view'"
/>
-->
<Field
label=
"请假人"
prop=
"leavePerson"
type=
"select"
filterable
remote
v-model=
"form.leavePerson"
placeholder=
"请输入请假人"
:remote-method=
"remoteMethod"
:maxLength=
"10"
:enumData=
"staffList"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"所属部门"
prop=
"deptId"
v-model=
"form.deptId"
type=
"select"
placeholder=
"请选择所属部门"
:enumData=
"dict.deptId"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"请假人"
prop=
"leavePerson"
type=
"select"
filterable
remote
v-model=
"form.leavePerson"
placeholder=
"请输入请假人"
@
change=
"changeStaff(form.leavePerson)"
:remote-method=
"remoteMethod"
:maxLength=
"10"
:enumData=
"dict.staffList"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"所属部门"
prop=
"deptId"
v-model=
"form.deptId"
type=
"select"
placeholder=
"请选择所属部门"
:enumData=
"dict.deptId"
:disabled=
"true"
/>
<!--
<Field
label=
"所属部门"
prop=
"deptName"
v-model=
"form.deptName"
type=
"textarea"
placeholder=
"请输入所属部门"
/>
-->
<Field
label=
"电话号码"
prop=
"phoneNumber"
v-model=
"form.phoneNumber"
placeholder=
"请输入电话号码"
:maxLength=
"11"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"请假类型"
prop=
"leaveType"
v-model=
"form.leaveType"
type=
"select"
:enumData=
"dict.leaveType"
placeholder=
"请选择请假类型"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"电话号码"
prop=
"phoneNumber"
v-model=
"form.phoneNumber"
placeholder=
"请输入电话号码"
:maxLength=
"11"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"请假类型"
prop=
"leaveType"
v-model=
"form.leaveType"
type=
"select"
:enumData=
"dict.leaveType"
placeholder=
"请选择请假类型"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"开始时间"
prop=
"startTime"
v-model=
"form.startTime"
type=
"datetime"
@
change=
"changedate"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"结束时间"
prop=
"endTime"
v-model=
"form.endTime"
type=
"datetime"
@
change=
"changedate"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"开始时间"
prop=
"startTime"
v-model=
"form.startTime"
type=
"datetime"
@
change=
"changedate"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"结束时间"
prop=
"endTime"
v-model=
"form.endTime"
type=
"datetime"
@
change=
"changedate"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"时长(单位:小时)"
disabled
prop=
"duration"
v-model=
"form.duration / 60 / 60"
placeholder=
"请输入时长(秒)"
:maxLength=
"4"
/>
<Field
label=
"请假事由"
prop=
"reason"
v-model=
"form.reason"
type=
"textarea"
placeholder=
"请输入请假事由"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"审核结果"
prop=
"auditResult"
v-model=
"form.auditResult"
type=
"radioCol"
:enumData=
"dict.auditResult"
placeholder=
"请选择审核结果"
:disabled=
"pageInfo.type == 'view'"
style=
"width: 100%;"
/>
<Field
label=
"时长(单位:小时)"
disabled
prop=
"duration"
v-model=
"form.duration / 60 / 60"
placeholder=
"请输入时长(秒)"
:maxLength=
"4"
/>
<Field
label=
"请假事由"
prop=
"reason"
v-model=
"form.reason"
type=
"textarea"
placeholder=
"请输入请假事由"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"审核结果"
prop=
"auditResult"
v-model=
"form.auditResult"
type=
"radioCol"
:enumData=
"dict.auditResult"
placeholder=
"请选择审核结果"
:disabled=
"pageInfo.type == 'view'"
style=
"width: 100%;"
/>
<Field
label=
"审批负责人"
prop=
"approverId"
type=
"select"
v-model=
"form.approverId"
placeholder=
"请选择审批负责人"
:enumData=
"dict.approverId"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"申请时间"
prop=
"createTime"
v-model=
"form.createTime"
type=
"datetime"
disabled
/>
<Field
label=
"审核说明"
prop=
"auditDesc"
type=
"textarea"
v-model=
"form.auditDesc"
placeholder=
"请输入审核说明"
:disabled=
"pageInfo.type == 'view'"
style=
"width: 100%;"
/>
<Field
label=
"审批负责人"
prop=
"approverId"
type=
"select"
v-model=
"form.approverId"
placeholder=
"请选择审批负责人"
:enumData=
"dict.approverId"
:disabled=
"pageInfo.type == 'view'"
/>
<Field
label=
"申请时间"
prop=
"createTime"
v-model=
"form.createTime"
type=
"datetime"
disabled
/>
<Field
label=
"审核说明"
prop=
"auditDesc"
type=
"textarea"
v-model=
"form.auditDesc"
placeholder=
"请输入审核说明"
:disabled=
"pageInfo.type == 'view'"
style=
"width: 100%;"
/>
</el-row>
<!--
<Field
label=
"审批负责人"
prop=
"approver"
v-model=
"form.approver"
placeholder=
"请输入审批负责人"
/>
-->
<!--
<Field
label=
"附件"
prop=
"attachment"
v-model=
"form.attachment"
type=
"textarea"
placeholder=
"请输入附件"
/>
-->
<Field
label=
"备注"
prop=
"remark"
v-model=
"form.remark"
type=
"textarea"
placeholder=
"请输入备注"
:disabled=
"pageInfo.type == 'view'"
style=
"width: 100%;"
/>
<Field
label=
"备注"
prop=
"remark"
v-model=
"form.remark"
type=
"textarea"
placeholder=
"请输入备注"
:disabled=
"pageInfo.type == 'view'"
style=
"width: 100%;"
/>
<el-form-item
label=
"附件路径"
prop=
"attachmentPathList"
>
<FileUpload
@
input=
"uploadFn"
:value=
"form.attachmentPathList"
:fileNumber=
"1"
:pageInfoType=
"pageInfo.type"
/>
<FileUpload
@
input=
"uploadFn"
:value=
"form.attachmentPathList"
:fileNumber=
"1"
:pageInfoType=
"pageInfo.type"
/>
</el-form-item>
<form-buttons
@
submit=
"submitForm"
noCancelBtn
v-if=
"pageInfo.type !== 'view'"
/>
<form-buttons
@
submit=
"submitForm"
noCancelBtn
v-if=
"pageInfo.type !== 'view'"
/>
</el-form>
</div>
</el-drawer>
...
...
@@ -74,7 +177,7 @@ export default {
loading
:
true
,
// 弹出层标题
title
:
"
请假记录信息
"
,
staffList
:
{}
,
staffList
:
[]
,
// 是否显示弹出层
open
:
false
,
direction
:
"
rtl
"
,
...
...
@@ -126,9 +229,7 @@ export default {
trigger
:
"
change
"
,
},
],
duration
:
[
{
required
:
true
,
message
:
"
请输入时长
"
,
trigger
:
"
blur
"
},
],
duration
:
[{
required
:
true
,
message
:
"
请输入时长
"
,
trigger
:
"
blur
"
}],
// reason: [
// { required: true, message: "请输入请假理由", trigger: "blur" },
// ],
...
...
@@ -155,20 +256,28 @@ export default {
},
watch
:
{},
mounted
()
{
this
.
remoteMethod
()
this
.
remoteMethod
()
;
},
methods
:
{
changeStaff
(
val
)
{
let
person
=
this
.
staffList
.
filter
((
v
)
=>
v
.
id
==
val
);
console
.
log
(
person
);
console
.
log
(
this
.
form
);
this
.
form
.
deptId
=
person
?
person
[
0
].
deptId
:
""
;
},
async
remoteMethod
()
{
await
this
.
$post
(
`/staff/list`
,
{
page
:
1
,
size
:
-
1
,
}).
then
((
res
)
=>
{
let
data
=
res
.
data
.
data
let
obj
=
{}
let
data
=
res
.
data
.
data
;
let
obj
=
{}
;
for
(
let
key
in
data
)
{
obj
[
key
]
=
data
[
key
].
name
obj
[
data
[
key
].
id
]
=
data
[
key
].
name
;
}
this
.
staffList
=
obj
this
.
dict
.
staffList
=
obj
;
console
.
log
(
obj
);
this
.
staffList
=
res
.
data
.
data
;
});
},
// beforeSubmit() {
...
...
@@ -245,9 +354,7 @@ export default {
},
changedate
(
val
)
{
if
(
this
.
form
.
startTime
&&
this
.
form
.
endTime
)
{
if
(
this
.
form
.
endTime
.
valueOf
()
>
this
.
form
.
startTime
.
valueOf
()
)
{
if
(
this
.
form
.
endTime
.
valueOf
()
>
this
.
form
.
startTime
.
valueOf
())
{
// this.form.duration = getSec(this.form.startTime, this.form.endTime);
this
.
$post
(
"
/attendance/getTimeCount
"
,
{
startTime
:
this
.
form
.
startTime
,
...
...
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
View file @
6a82e9cb
...
...
@@ -66,7 +66,7 @@
{{
item
.
label
}}
</el-checkbox>
</el-checkbox-group>
<div
class=
"mt20"
style=
"text-align:right"
>
<div
class=
"mt20"
style=
"text-align:
right"
>
<el-button
@
click=
"handleCancel(1)"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit(1)"
>
确定
</el-button>
</div>
...
...
@@ -85,7 +85,7 @@
{{
item
.
label
}}
</el-checkbox>
</el-checkbox-group>
<div
class=
"mt20"
style=
"text-align:right"
>
<div
class=
"mt20"
style=
"text-align:
right"
>
<el-button
@
click=
"handleCancel(2)"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit(2)"
>
确定
</el-button>
</div>
...
...
@@ -102,9 +102,7 @@
<div>
打卡记录汇总
</div>
<el-button
type=
"text"
>
导出成功
</el-button>
</div>
<div
class=
"times"
>
导出时间:2020-08-13
</div>
<div
class=
"times"
>
导出时间:2020-08-13
</div>
</div>
</div>
</el-drawer>
...
...
@@ -197,10 +195,15 @@ export default {
<
/el-tag
>
)
)
:
(
"
-
"
"
正常
"
);
}
else
{
return
"
-
"
;
if
(
currentTime
<
timestampToTime
(
new
Date
(),
3
))
{
return
"
正常
"
;
}
else
{
return
"
--
"
;
}
// return "正常";
}
},
restTable
()
{
...
...
@@ -226,7 +229,11 @@ export default {
)
{
return
this
.
handleArr
(
row
.
attendanceStaffStatEntities
,
item
);
}
else
{
return
"
-
"
;
if
(
item
<
timestampToTime
(
new
Date
(),
3
))
{
return
"
正常
"
;
}
else
{
return
"
--
"
;
}
}
},
};
...
...
@@ -386,6 +393,7 @@ export default {
config
:
{
showType
:
"
tableSelect
"
,
isshowTabPane
:
true
,
height
:
"
680px
"
,
search
:
[
{
name
:
"
salaId
"
,
...
...
@@ -445,6 +453,7 @@ export default {
prop
:
"
windowCategory
"
,
fixed
:
"
left
"
,
width
:
100
,
formatter
:
this
.
formatter
,
show
:
true
,
},
...
...
@@ -455,8 +464,18 @@ export default {
width
:
100
,
show
:
true
,
},
{
label
:
"
大厅
"
,
prop
:
"
salaName
"
,
show
:
true
},
{
label
:
"
部门
"
,
prop
:
"
deptName
"
,
show
:
true
},
{
label
:
"
大厅
"
,
prop
:
"
salaName
"
,
formatter
:
this
.
formatter
,
show
:
true
,
},
{
label
:
"
部门
"
,
prop
:
"
deptName
"
,
formatter
:
this
.
formatter
,
show
:
true
,
},
{
label
:
"
应到
"
,
prop
:
"
workDays
"
,
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/task/AttendanceSummaryTaskImpl.java
View file @
6a82e9cb
...
...
@@ -7,10 +7,12 @@ import com.mortals.framework.service.ITask;
import
com.mortals.framework.service.ITaskExcuteService
;
import
com.mortals.framework.util.DateUtils
;
import
com.mortals.framework.util.StringUtils
;
import
com.mortals.xhx.common.code.CheckTypeEnum
;
import
com.mortals.xhx.module.attendance.model.AttendanceRecordErrorQuery
;
import
com.mortals.xhx.module.attendance.model.vo.AttendanceSummaryQuery
;
import
com.mortals.xhx.module.attendance.service.AttendanceRecordErrorService
;
import
com.mortals.xhx.module.attendance.service.AttendanceStatService
;
import
com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -19,6 +21,7 @@ import java.util.Calendar;
import
java.util.Date
;
import
static
com
.
mortals
.
xhx
.
common
.
key
.
RedisKey
.
KEY_ATTENDANCE_STAT_CACHE
;
import
static
com
.
mortals
.
xhx
.
common
.
key
.
RedisKey
.
KEY_CHECK_SUMMARY_CACHE
;
/**
* 考勤汇总
...
...
@@ -58,7 +61,16 @@ public class AttendanceSummaryTaskImpl implements ITaskExcuteService {
attendanceRecordErrorService
.
doReprocess
(
errorQuery
,
null
);
log
.
info
(
"统计添加前一天考勤中绩效异常记录结束"
);
try
{
log
.
info
(
"汇总当天绩效分数开始"
);
StaffCheckSummaryQuery
summaryQuery
=
new
StaffCheckSummaryQuery
();
summaryQuery
.
setCheckTimeStart
(
DateUtils
.
getCurrStrDate
());
summaryQuery
.
setCheckTimeEnd
(
summaryQuery
.
getCheckTimeStart
());
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
log
.
info
(
"汇总当天绩效分数结束"
);
}
catch
(
Exception
e
)
{
log
.
error
(
"汇总当天绩效分数出错"
,
e
);
}
}
@Override
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/vo/CheckWindowWorkmanPerformVo.java
View file @
6a82e9cb
...
...
@@ -3,6 +3,9 @@ import com.mortals.framework.model.BaseEntityLong;
import
com.mortals.xhx.module.check.model.CheckWindowWorkmanPerformEntity
;
import
java.util.ArrayList
;
import
java.util.List
;
import
com.mortals.xhx.module.window.model.WindowWorkmanPerformDetailEntity
;
import
com.mortals.xhx.module.window.model.WindowWorkmanPerformEntity
;
import
lombok.Data
;
import
com.mortals.framework.annotation.Excel
;
import
java.math.BigDecimal
;
...
...
@@ -19,5 +22,5 @@ public class CheckWindowWorkmanPerformVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
private
List
<
Long
>
idList
;
private
List
<
WindowWorkmanPerformDetailEntity
>
windowWorkmanPerformDetailList
;
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckAttendRecordServiceImpl.java
View file @
6a82e9cb
...
...
@@ -144,19 +144,19 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
log
.
error
(
"新增绩效异常信息核查状态出错"
,
e
);
}
try
{
if
(!
entity
.
getErrorTime
().
after
(
new
Date
()))
{
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
entity
.
getStaffId
());
query
.
setCheckTimeStart
(
DateUtils
.
getStrDate
(
entity
.
getCheckTime
()));
query
.
setCheckTimeEnd
(
query
.
getCheckTimeStart
());
query
.
setCheckType
(
CheckTypeEnum
.
考勤绩效
.
getValue
());
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
}
//summaryCheck(query);
}
catch
(
Exception
e
)
{
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
}
//
try {
//
if(!entity.getErrorTime().after(new Date())) {
//
StaffCheckSummaryQuery query = new StaffCheckSummaryQuery();
//
query.setStaffId(entity.getStaffId());
//
query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime()));
//
query.setCheckTimeEnd(query.getCheckTimeStart());
//
query.setCheckType(CheckTypeEnum.考勤绩效.getValue());
//
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
//
}
//
//summaryCheck(query);
//
} catch (Exception e) {
//
log.error("汇总已审核的核查记录出错", e);
//
}
}
@Override
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckComplainRecordServiceImpl.java
View file @
6a82e9cb
...
...
@@ -137,17 +137,17 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
log
.
error
(
"新增绩效异常信息核查状态出错"
,
e
);
}
try
{
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
entity
.
getStaffId
());
query
.
setCheckTimeStart
(
DateUtils
.
getStrDate
(
entity
.
getCheckTime
()));
query
.
setCheckTimeEnd
(
query
.
getCheckTimeStart
());
query
.
setCheckType
(
CheckTypeEnum
.
评价绩效
.
getValue
());
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
//summaryCheck(query);
}
catch
(
Exception
e
)
{
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
}
//
try {
//
StaffCheckSummaryQuery query = new StaffCheckSummaryQuery();
//
query.setStaffId(entity.getStaffId());
//
query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime()));
//
query.setCheckTimeEnd(query.getCheckTimeStart());
//
query.setCheckType(CheckTypeEnum.评价绩效.getValue());
//
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
//
//summaryCheck(query);
//
} catch (Exception e) {
//
log.error("汇总已审核的核查记录出错", e);
//
}
}
@Override
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckEffectRecordServiceImpl.java
View file @
6a82e9cb
...
...
@@ -132,17 +132,17 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
// log.error("新增绩效异常信息核查状态出错", e);
// }
try
{
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
entity
.
getStaffId
());
query
.
setCheckTimeStart
(
DateUtils
.
getStrDate
(
entity
.
getCheckTime
()));
query
.
setCheckTimeEnd
(
query
.
getCheckTimeStart
());
query
.
setCheckType
(
CheckTypeEnum
.
效能绩效
.
getValue
());
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
//summaryCheck(query);
}
catch
(
Exception
e
){
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
}
//
try{
//
StaffCheckSummaryQuery query = new StaffCheckSummaryQuery();
//
query.setStaffId(entity.getStaffId());
//
query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime()));
//
query.setCheckTimeEnd(query.getCheckTimeStart());
//
query.setCheckType(CheckTypeEnum.效能绩效.getValue());
//
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
//
//summaryCheck(query);
//
}catch (Exception e){
//
log.error("汇总已审核的核查记录出错",e);
//
}
}
@Override
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckGoworkRecordServiceImpl.java
View file @
6a82e9cb
...
...
@@ -133,17 +133,17 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
}
catch
(
Exception
e
)
{
log
.
error
(
"新增绩效异常信息核查状态出错"
,
e
);
}
try
{
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
entity
.
getStaffId
());
query
.
setCheckTimeStart
(
DateUtils
.
getStrDate
(
entity
.
getCheckTime
()));
query
.
setCheckTimeEnd
(
query
.
getCheckTimeStart
());
query
.
setCheckType
(
CheckTypeEnum
.
办件绩效
.
getValue
());
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
//summaryCheck(query);
}
catch
(
Exception
e
){
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
}
//
try{
//
StaffCheckSummaryQuery query = new StaffCheckSummaryQuery();
//
query.setStaffId(entity.getStaffId());
//
query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime()));
//
query.setCheckTimeEnd(query.getCheckTimeStart());
//
query.setCheckType(CheckTypeEnum.办件绩效.getValue());
//
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
//
//summaryCheck(query);
//
}catch (Exception e){
//
log.error("汇总已审核的核查记录出错",e);
//
}
}
@Override
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckOtherRecordServiceImpl.java
View file @
6a82e9cb
...
...
@@ -134,17 +134,17 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
}
catch
(
Exception
e
)
{
log
.
error
(
"新增绩效异常信息核查状态出错"
,
e
);
}
try
{
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
entity
.
getStaffId
());
query
.
setCheckTimeStart
(
DateUtils
.
getStrDate
(
entity
.
getCheckTime
()));
query
.
setCheckTimeEnd
(
query
.
getCheckTimeStart
());
query
.
setCheckType
(
CheckTypeEnum
.
其它绩效
.
getValue
());
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
//summaryCheck(query);
}
catch
(
Exception
e
)
{
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
}
//
try {
//
StaffCheckSummaryQuery query = new StaffCheckSummaryQuery();
//
query.setStaffId(entity.getStaffId());
//
query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime()));
//
query.setCheckTimeEnd(query.getCheckTimeStart());
//
query.setCheckType(CheckTypeEnum.其它绩效.getValue());
//
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
//
//summaryCheck(query);
//
} catch (Exception e) {
//
log.error("汇总已审核的核查记录出错", e);
//
}
}
@Override
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckReviewRecordServiceImpl.java
View file @
6a82e9cb
...
...
@@ -136,17 +136,17 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
}
catch
(
Exception
e
)
{
log
.
error
(
"新增绩效异常信息核查状态出错"
,
e
);
}
try
{
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
entity
.
getStaffId
());
query
.
setCheckTimeStart
(
DateUtils
.
getStrDate
(
entity
.
getCheckTime
()));
query
.
setCheckTimeEnd
(
query
.
getCheckTimeStart
());
query
.
setCheckType
(
CheckTypeEnum
.
评价绩效
.
getValue
());
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
//summaryCheck(query);
}
catch
(
Exception
e
)
{
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
}
//
try {
//
StaffCheckSummaryQuery query = new StaffCheckSummaryQuery();
//
query.setStaffId(entity.getStaffId());
//
query.setCheckTimeStart(DateUtils.getStrDate(entity.getCheckTime()));
//
query.setCheckTimeEnd(query.getCheckTimeStart());
//
query.setCheckType(CheckTypeEnum.评价绩效.getValue());
//
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
//
//summaryCheck(query);
//
} catch (Exception e) {
//
log.error("汇总已审核的核查记录出错", e);
//
}
}
@Override
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckWindowWorkmanPerformServiceImpl.java
View file @
6a82e9cb
...
...
@@ -20,6 +20,8 @@ import com.mortals.xhx.module.dept.model.DeptPerformStatQuery;
import
com.mortals.xhx.module.staff.model.*
;
import
com.mortals.xhx.module.staff.service.StaffPerformSummaryService
;
import
com.mortals.xhx.module.staff.service.StaffService
;
import
com.mortals.xhx.module.window.service.WindowWorkmanPerformDetailService
;
import
com.mortals.xhx.module.window.service.WindowWorkmanPerformService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -61,6 +63,8 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
private
ICacheService
cacheService
;
@Autowired
private
StaffService
staffService
;
@Autowired
private
WindowWorkmanPerformDetailService
windowWorkmanPerformDetailService
;
@Override
public
void
examine
(
CheckWindowWorkmanPerformEntity
entity
,
Context
context
)
throws
AppException
{
...
...
@@ -71,6 +75,9 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
if
(
temp
==
null
)
{
throw
new
AppException
(
"核查记录ID不正确"
);
}
if
(
CollectionUtils
.
isNotEmpty
(
entity
.
getWindowWorkmanPerformDetailList
())){
windowWorkmanPerformDetailService
.
update
(
entity
.
getWindowWorkmanPerformDetailList
(),
context
);
}
if
(
context
!=
null
&&
context
.
getUser
()
!=
null
)
{
IUser
user
=
context
.
getUser
();
entity
.
setUpdateUserId
(
user
.
getId
());
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformAttendAppealServiceImpl.java
View file @
6a82e9cb
...
...
@@ -271,6 +271,64 @@ public class PerformAttendAppealServiceImpl extends AbstractCRUDServiceImpl<Perf
}
}
}
}
else
{
if
(
PerformTypeEnum
.
考勤绩效
.
getValue
().
equals
(
appealEntity
.
getPerformType
()))
{
CheckAttendRecordEntity
checkEntity
=
checkAttendRecordService
.
get
(
appealEntity
.
getCheckRecordId
(),
context
);
if
(
checkEntity
!=
null
)
{
if
(
checkEntity
.
getCheckStatus
()!=
CheckStatusEnum
.
已处理
.
getValue
()){
checkEntity
.
setCheckResult
(
CheckResultSubEnum
.
核查扣分
.
getValue
());
checkAttendRecordService
.
examine
(
checkEntity
,
context
);
}
}
}
else
if
(
PerformTypeEnum
.
评价差评绩效
.
getValue
().
equals
(
appealEntity
.
getPerformType
()))
{
CheckReviewRecordEntity
checkEntity
=
checkReviewRecordService
.
get
(
appealEntity
.
getCheckRecordId
(),
context
);
if
(
checkEntity
!=
null
)
{
if
(
checkEntity
.
getCheckStatus
()!=
CheckStatusEnum
.
已处理
.
getValue
()){
checkEntity
.
setCheckResult
(
CheckResultSubEnum
.
核查扣分
.
getValue
());
checkReviewRecordService
.
examine
(
checkEntity
,
context
);
}
}
}
else
if
(
PerformTypeEnum
.
评价投诉绩效
.
getValue
().
equals
(
appealEntity
.
getPerformType
()))
{
CheckComplainRecordEntity
checkEntity
=
checkComplainRecordService
.
get
(
appealEntity
.
getCheckRecordId
(),
context
);
if
(
checkEntity
!=
null
)
{
if
(
checkEntity
.
getCheckStatus
()!=
CheckStatusEnum
.
已处理
.
getValue
()){
checkEntity
.
setCheckResult
(
CheckResultSubEnum
.
核查扣分
.
getValue
());
checkComplainRecordService
.
examine
(
checkEntity
,
context
);
}
}
}
else
if
(
PerformTypeEnum
.
办件绩效
.
getValue
().
equals
(
appealEntity
.
getPerformType
()))
{
CheckGoworkRecordEntity
checkEntity
=
checkGoworkRecordService
.
get
(
appealEntity
.
getCheckRecordId
(),
context
);
if
(
checkEntity
!=
null
)
{
if
(
checkEntity
.
getCheckStatus
()!=
CheckStatusEnum
.
已处理
.
getValue
()){
checkEntity
.
setCheckResult
(
CheckResultSubEnum
.
核查扣分
.
getValue
());
checkGoworkRecordService
.
examine
(
checkEntity
,
context
);
}
}
}
else
if
(
PerformTypeEnum
.
效能绩效
.
getValue
().
equals
(
appealEntity
.
getPerformType
()))
{
CheckEffectRecordEntity
checkEntity
=
checkEffectRecordService
.
get
(
appealEntity
.
getCheckRecordId
(),
context
);
if
(
checkEntity
!=
null
)
{
if
(
checkEntity
.
getCheckStatus
()!=
CheckStatusEnum
.
已处理
.
getValue
()){
checkEntity
.
setCheckResult
(
CheckResultSubEnum
.
核查扣分
.
getValue
());
checkEffectRecordService
.
examine
(
checkEntity
,
context
);
}
}
}
else
if
(
PerformTypeEnum
.
其它绩效
.
getValue
().
equals
(
appealEntity
.
getPerformType
()))
{
CheckOtherRecordEntity
checkEntity
=
checkOtherRecordService
.
get
(
appealEntity
.
getCheckRecordId
(),
context
);
if
(
checkEntity
!=
null
)
{
if
(
checkEntity
.
getCheckStatus
()!=
CheckStatusEnum
.
已处理
.
getValue
()){
checkEntity
.
setCheckResult
(
CheckResultSubEnum
.
核查扣分
.
getValue
());
checkOtherRecordService
.
examine
(
checkEntity
,
context
);
}
}
}
}
//更新绩效异常信息核查状态
try
{
...
...
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