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
72d39efe
Commit
72d39efe
authored
Jul 13, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加申诉统计业务
parent
47c319f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
4 deletions
+58
-4
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/InspectApiController.java
.../java/com/mortals/xhx/busiz/web/InspectApiController.java
+58
-4
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/InspectApiController.java
View file @
72d39efe
...
@@ -8,10 +8,7 @@ import com.mortals.framework.model.Context;
...
@@ -8,10 +8,7 @@ import com.mortals.framework.model.Context;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.model.Result
;
import
com.mortals.framework.model.Result
;
import
com.mortals.xhx.busiz.req.*
;
import
com.mortals.xhx.busiz.req.*
;
import
com.mortals.xhx.busiz.rsp.AppealStatInfo
;
import
com.mortals.xhx.busiz.rsp.*
;
import
com.mortals.xhx.busiz.rsp.InspectStatInfo
;
import
com.mortals.xhx.busiz.rsp.PerformInfo
;
import
com.mortals.xhx.busiz.rsp.PerformStatInfo
;
import
com.mortals.xhx.common.code.PerformTypeEnum
;
import
com.mortals.xhx.common.code.PerformTypeEnum
;
import
com.mortals.xhx.common.code.ProcessStatusEnum
;
import
com.mortals.xhx.common.code.ProcessStatusEnum
;
import
com.mortals.xhx.common.code.SubAddTypeEnum
;
import
com.mortals.xhx.common.code.SubAddTypeEnum
;
...
@@ -76,6 +73,20 @@ public class InspectApiController extends AbstractBaseController<PerformReq> {
...
@@ -76,6 +73,20 @@ public class InspectApiController extends AbstractBaseController<PerformReq> {
private
CheckAllRecordService
checkAllRecordService
;
private
CheckAllRecordService
checkAllRecordService
;
@Autowired
private
CheckAttendRecordService
checkAttendRecordService
;
@Autowired
private
CheckReviewRecordService
checkReviewRecordService
;
@Autowired
private
CheckComplainRecordService
checkComplainRecordService
;
@Autowired
private
CheckEffectRecordService
checkEffectRecordService
;
@Autowired
private
CheckGoworkRecordService
checkGoworkRecordService
;
@Autowired
private
CheckOtherRecordService
checkOtherRecordService
;
/**
/**
* 个人巡查效统计
* 个人巡查效统计
...
@@ -395,7 +406,50 @@ public class InspectApiController extends AbstractBaseController<PerformReq> {
...
@@ -395,7 +406,50 @@ public class InspectApiController extends AbstractBaseController<PerformReq> {
return
save
.
newEntity
();
return
save
.
newEntity
();
}
}
/**
* 详细
*/
@PostMapping
(
value
=
"info"
)
public
Rest
<
PerformDetailInfo
>
performInfo
(
@RequestBody
PerformReq
performReq
)
{
Context
context
=
this
.
getContext
();
String
busiDesc
=
"个人巡查详细"
;
log
.
info
(
"【{}】【请求体】--> {}"
,
busiDesc
,
JSONObject
.
toJSONString
(
performReq
));
Rest
<
PerformDetailInfo
>
rest
=
Rest
.
ok
(
busiDesc
+
" 【成功】"
);
try
{
if
(
ObjectUtils
.
isEmpty
(
performReq
.
getId
()))
{
throw
new
AppException
(
"详细查询id不能为空!"
);
}
PerformDetailInfo
performDetailInfo
=
new
PerformDetailInfo
();
if
(
PerformTypeEnum
.
考勤绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
CheckAttendRecordEntity
checkEntity
=
checkAttendRecordService
.
get
(
performReq
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
performDetailInfo
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
}
else
if
(
PerformTypeEnum
.
评价差评绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
CheckReviewRecordEntity
checkEntity
=
checkReviewRecordService
.
get
(
performReq
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
performDetailInfo
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
}
else
if
(
PerformTypeEnum
.
评价投诉绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
CheckComplainRecordEntity
checkEntity
=
checkComplainRecordService
.
get
(
performReq
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
performDetailInfo
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
}
else
if
(
PerformTypeEnum
.
办件绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
CheckGoworkRecordEntity
checkEntity
=
checkGoworkRecordService
.
get
(
performReq
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
performDetailInfo
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
}
else
if
(
PerformTypeEnum
.
效能绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
CheckEffectRecordEntity
checkEntity
=
checkEffectRecordService
.
get
(
performReq
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
performDetailInfo
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
}
else
if
(
PerformTypeEnum
.
其它绩效
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
CheckOtherRecordEntity
checkEntity
=
checkOtherRecordService
.
get
(
performReq
.
getId
(),
context
);
BeanUtils
.
copyProperties
(
checkEntity
,
performDetailInfo
,
BeanUtil
.
getNullPropertyNames
(
checkEntity
));
}
else
{
throw
new
AppException
(
"不支持当前绩效类型"
);
}
rest
.
setData
(
performDetailInfo
);
recordSysLog
(
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
e
)
{
log
.
error
(
busiDesc
,
e
);
rest
=
Rest
.
fail
(
super
.
convertException
(
e
));
}
return
rest
;
}
private
PerformRulesEntity
getRule
(
String
ruleId
)
{
private
PerformRulesEntity
getRule
(
String
ruleId
)
{
PerformRulesEntity
rule
=
rulesService
.
getCache
(
ruleId
);
PerformRulesEntity
rule
=
rulesService
.
getCache
(
ruleId
);
...
...
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