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
dd2beae4
Commit
dd2beae4
authored
Apr 16, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/qionglai' into qionglai
parents
12c9d62c
87d7c09a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/web/StaffPerformSummaryController.java
...s/xhx/module/staff/web/StaffPerformSummaryController.java
+46
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/web/StaffPerformSummaryController.java
View file @
dd2beae4
...
...
@@ -16,6 +16,7 @@ import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import
com.mortals.xhx.module.dept.model.DeptQuery
;
import
com.mortals.xhx.module.dept.service.DeptService
;
import
com.mortals.xhx.module.staff.model.StaffEntity
;
import
com.mortals.xhx.module.staff.model.StaffPerformSummaryQuery
;
import
com.mortals.xhx.module.staff.service.StaffService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
...
...
@@ -176,4 +177,49 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro
ret
.
setMsg
(
model
.
get
(
"message_info"
)
==
null
?
""
:
model
.
remove
(
"message_info"
).
toString
());
return
ret
;
}
@PostMapping
({
"init"
})
@UnAuth
public
Rest
<
Object
>
init
(
@RequestBody
StaffCheckSummaryQuery
query
)
{
Rest
<
Object
>
ret
=
new
Rest
();
Map
<
String
,
Object
>
model
=
new
HashMap
();
String
busiDesc
=
"执行绩效初始化"
;
int
code
=
1
;
try
{
if
(
query
.
getStaffId
()!=
null
&&
query
.
getYear
()!=
null
&&
query
.
getMonth
()!=
null
)
{
StaffEntity
staffEntity
=
staffService
.
get
(
query
.
getStaffId
());
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
summaryQuery
.
setStaffId
(
query
.
getStaffId
());
summaryQuery
.
setYear
(
query
.
getYear
());
summaryQuery
.
setMonth
(
query
.
getMonth
());
StaffPerformSummaryEntity
temp
=
this
.
service
.
selectOne
(
summaryQuery
);
if
(
temp
==
null
)
{
BigDecimal
totalScore
=
new
BigDecimal
(
100
);
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
staffPerformSummaryEntity
.
setStaffId
(
staffEntity
.
getId
());
staffPerformSummaryEntity
.
setWorkNum
(
staffEntity
.
getWorkNum
());
staffPerformSummaryEntity
.
setStaffName
(
staffEntity
.
getName
());
staffPerformSummaryEntity
.
setDeptId
(
staffEntity
.
getDeptId
());
staffPerformSummaryEntity
.
setDeptName
(
staffEntity
.
getDeptName
());
staffPerformSummaryEntity
.
setSalaId
(
staffEntity
.
getSalaId
());
staffPerformSummaryEntity
.
setSalaName
(
staffEntity
.
getSalaName
());
staffPerformSummaryEntity
.
setYear
(
query
.
getYear
());
staffPerformSummaryEntity
.
setMonth
(
query
.
getMonth
());
staffPerformSummaryEntity
.
setTotalScore
(
totalScore
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
this
.
service
.
save
(
staffPerformSummaryEntity
);
}
}
model
.
put
(
"message_info"
,
"执行绩效初始化成功"
);
}
catch
(
Exception
var9
)
{
code
=
-
1
;
this
.
doException
(
this
.
request
,
busiDesc
,
model
,
var9
);
}
ret
.
setCode
(
code
);
ret
.
setMsg
(
model
.
get
(
"message_info"
)
==
null
?
""
:
model
.
remove
(
"message_info"
).
toString
());
return
ret
;
}
}
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