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
4f4dbfb9
Commit
4f4dbfb9
authored
Jul 14, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常分值分布情况
parent
83228dac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
1 deletion
+38
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/web/StaffPerformStatController.java
...tals/xhx/module/staff/web/StaffPerformStatController.java
+38
-1
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/web/StaffPerformStatController.java
View file @
4f4dbfb9
package
com.mortals.xhx.module.staff.web
;
import
com.alibaba.fastjson.JSONObject
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.model.Context
;
...
...
@@ -8,6 +9,7 @@ import com.mortals.xhx.base.system.param.service.ParamService;
import
com.mortals.xhx.module.staff.model.StaffPerformStatEntity
;
import
com.mortals.xhx.module.staff.model.vo.StaffSummaryTopQuery
;
import
com.mortals.xhx.module.staff.service.StaffPerformStatService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
...
@@ -15,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -89,7 +92,41 @@ public class StaffPerformStatController extends BaseCRUDJsonBodyMappingControlle
int
code
=
1
;
try
{
List
<
StaffPerformStatEntity
>
result
=
this
.
getService
().
getExceptionList
(
query
);
model
.
put
(
"data"
,
result
);
List
<
JSONObject
>
data
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isNotEmpty
(
result
))
{
StaffPerformStatEntity
entity
=
result
.
get
(
0
);
JSONObject
jsonObject1
=
new
JSONObject
();
jsonObject1
.
put
(
"name"
,
"考勤绩效"
);
jsonObject1
.
put
(
"add"
,
entity
.
getAttendScoreAdd
());
jsonObject1
.
put
(
"sub"
,
entity
.
getAttendScoreSub
());
data
.
add
(
jsonObject1
);
JSONObject
jsonObject2
=
new
JSONObject
();
jsonObject2
.
put
(
"name"
,
"评价绩效"
);
jsonObject2
.
put
(
"add"
,
entity
.
getReviewScoreAdd
());
jsonObject2
.
put
(
"sub"
,
entity
.
getReviewScoreSub
());
data
.
add
(
jsonObject2
);
JSONObject
jsonObject3
=
new
JSONObject
();
jsonObject3
.
put
(
"name"
,
"投诉绩效"
);
jsonObject3
.
put
(
"add"
,
entity
.
getComplainScoreAdd
());
jsonObject3
.
put
(
"sub"
,
entity
.
getComplainScoreSub
());
data
.
add
(
jsonObject3
);
JSONObject
jsonObject4
=
new
JSONObject
();
jsonObject4
.
put
(
"name"
,
"办件绩效"
);
jsonObject4
.
put
(
"add"
,
entity
.
getGoworkScoreAdd
());
jsonObject4
.
put
(
"sub"
,
entity
.
getGoworkScoreSub
());
data
.
add
(
jsonObject4
);
JSONObject
jsonObject5
=
new
JSONObject
();
jsonObject5
.
put
(
"name"
,
"效能绩效"
);
jsonObject5
.
put
(
"add"
,
entity
.
getEffectScoreAdd
());
jsonObject5
.
put
(
"sub"
,
entity
.
getEffectScoreSub
());
data
.
add
(
jsonObject5
);
JSONObject
jsonObject6
=
new
JSONObject
();
jsonObject6
.
put
(
"name"
,
"其它绩效"
);
jsonObject6
.
put
(
"add"
,
entity
.
getOtherScoreAdd
());
jsonObject6
.
put
(
"sub"
,
entity
.
getOtherScoreSub
());
data
.
add
(
jsonObject6
);
}
model
.
put
(
"data"
,
data
);
model
.
put
(
"message_info"
,
busiDesc
+
"成功"
);
if
(!
ObjectUtils
.
isEmpty
(
context
)
&&
!
ObjectUtils
.
isEmpty
(
context
.
getUser
()))
{
this
.
recordSysLog
(
this
.
request
,
busiDesc
+
" 【成功】"
);
...
...
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