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
f851cf8d
Commit
f851cf8d
authored
Jul 14, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加申诉统计业务
parent
a8c393a4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
6 deletions
+42
-6
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/rsp/PerformDetailInfo.java
...ain/java/com/mortals/xhx/busiz/rsp/PerformDetailInfo.java
+4
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/PerformApiController.java
.../java/com/mortals/xhx/busiz/web/PerformApiController.java
+38
-6
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/rsp/PerformDetailInfo.java
View file @
f851cf8d
...
@@ -217,4 +217,8 @@ public class PerformDetailInfo {
...
@@ -217,4 +217,8 @@ public class PerformDetailInfo {
private
Integer
irregularOtherType
;
private
Integer
irregularOtherType
;
/**
* 申诉状态(0.未申诉,1.申诉中,2.申诉拒绝,3.申诉通过)
*/
private
Integer
appealStatus
;
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/PerformApiController.java
View file @
f851cf8d
...
@@ -167,9 +167,11 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -167,9 +167,11 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
performInfo
.
setPerformType
(
PerformTypeEnum
.
考勤绩效
.
getValue
());
performInfo
.
setPerformType
(
PerformTypeEnum
.
考勤绩效
.
getValue
());
//判断是否存在申诉
//判断是否存在申诉
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
Boolean
bool
=
entity
.
newEntity
();
Boolean
bool
=
entity
.
newEntity
();
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
}
else
{
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
未申诉
.
getValue
());
}
}
return
performInfo
;
return
performInfo
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
...
@@ -195,8 +197,9 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -195,8 +197,9 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
Boolean
bool
=
entity
.
newEntity
();
Boolean
bool
=
entity
.
newEntity
();
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
}
else
{
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
未申诉
.
getValue
());
}
}
return
performInfo
;
return
performInfo
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
model
.
put
(
KEY_RESULT_DATA
,
collect
);
model
.
put
(
KEY_RESULT_DATA
,
collect
);
...
@@ -219,6 +222,8 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -219,6 +222,8 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
Boolean
bool
=
entity
.
newEntity
();
Boolean
bool
=
entity
.
newEntity
();
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
}
else
{
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
未申诉
.
getValue
());
}
}
return
performInfo
;
return
performInfo
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
...
@@ -242,6 +247,8 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -242,6 +247,8 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
Boolean
bool
=
entity
.
newEntity
();
Boolean
bool
=
entity
.
newEntity
();
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
}
else
{
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
未申诉
.
getValue
());
}
}
return
performInfo
;
return
performInfo
;
...
@@ -262,8 +269,12 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -262,8 +269,12 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
performInfo
.
setPerformType
(
PerformTypeEnum
.
效能绩效
.
getValue
());
performInfo
.
setPerformType
(
PerformTypeEnum
.
效能绩效
.
getValue
());
//判断是否存在申诉
//判断是否存在申诉
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
Boolean
bool
=
entity
.
newEntity
();
Boolean
bool
=
entity
.
newEntity
();
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
}
else
{
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
未申诉
.
getValue
());
}
return
performInfo
;
return
performInfo
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
model
.
put
(
KEY_RESULT_DATA
,
collect
);
model
.
put
(
KEY_RESULT_DATA
,
collect
);
...
@@ -282,8 +293,13 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -282,8 +293,13 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
performInfo
.
setPerformType
(
PerformTypeEnum
.
其它绩效
.
getValue
());
performInfo
.
setPerformType
(
PerformTypeEnum
.
其它绩效
.
getValue
());
//判断是否存在申诉
//判断是否存在申诉
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
Boolean
bool
=
entity
.
newEntity
();
Boolean
bool
=
entity
.
newEntity
();
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
}
else
{
performInfo
.
setAppealStatus
(
AppealStatusEnum
.
未申诉
.
getValue
());
}
return
performInfo
;
return
performInfo
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
model
.
put
(
KEY_RESULT_DATA
,
collect
);
model
.
put
(
KEY_RESULT_DATA
,
collect
);
...
@@ -337,6 +353,7 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -337,6 +353,7 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
if
(
PerformTypeEnum
.
考勤绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
if
(
PerformTypeEnum
.
考勤绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
CheckAttendRecordEntity
checkEntity
=
checkAttendRecordService
.
get
(
performReq
.
getId
(),
context
);
CheckAttendRecordEntity
checkEntity
=
checkAttendRecordService
.
get
(
performReq
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
performDetailInfo
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
BeanUtils
.
copyProperties
(
checkEntity
,
performDetailInfo
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
}
else
if
(
PerformTypeEnum
.
评价差评绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
}
else
if
(
PerformTypeEnum
.
评价差评绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
CheckReviewRecordEntity
checkEntity
=
checkReviewRecordService
.
get
(
performReq
.
getId
(),
context
);
CheckReviewRecordEntity
checkEntity
=
checkReviewRecordService
.
get
(
performReq
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
performDetailInfo
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
BeanUtils
.
copyProperties
(
checkEntity
,
performDetailInfo
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
...
@@ -356,6 +373,21 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -356,6 +373,21 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
throw
new
AppException
(
"不支持当前绩效类型"
);
throw
new
AppException
(
"不支持当前绩效类型"
);
}
}
PerformAttendAppealEntity
appealEntity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
performDetailInfo
.
getId
()));
if
(
ObjectUtils
.
isEmpty
(
appealEntity
))
{
performDetailInfo
.
setAppealStatus
(
AppealStatusEnum
.
未申诉
.
getValue
());
}
else
{
if
(
ProcessStatusEnum
.
未处理
.
getValue
()
==
appealEntity
.
getProcessStatus
())
{
performDetailInfo
.
setAppealStatus
(
AppealStatusEnum
.
申诉中
.
getValue
());
}
else
{
if
(
AppealResultEnum
.
通过
.
getValue
()
==
appealEntity
.
getProcessStatus
())
{
performDetailInfo
.
setAppealStatus
(
AppealStatusEnum
.
申诉通过
.
getValue
());
}
else
if
(
AppealResultEnum
.
不通过
.
getValue
()
==
appealEntity
.
getProcessStatus
())
{
performDetailInfo
.
setAppealStatus
(
AppealStatusEnum
.
申诉拒绝
.
getValue
());
}
}
}
rest
.
setData
(
performDetailInfo
);
rest
.
setData
(
performDetailInfo
);
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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