Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
459d3431
Commit
459d3431
authored
Jul 04, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
Lal See merge request 8timerv2/8timerapiv200!302
parents
3243bc72
945f5d36
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
src/main/java/cn/timer/api/controller/jxgl/JxglController.java
+27
-0
No files found.
src/main/java/cn/timer/api/controller/jxgl/JxglController.java
View file @
459d3431
...
@@ -628,6 +628,15 @@ public class JxglController {
...
@@ -628,6 +628,15 @@ public class JxglController {
public
Result
<
Object
>
updatePAS
(
@CurrentUser
UserBean
userBean
,
public
Result
<
Object
>
updatePAS
(
@CurrentUser
UserBean
userBean
,
@Validated
@RequestBody
AppraisalUpdateSts
appraisalUpdateSts
)
{
@Validated
@RequestBody
AppraisalUpdateSts
appraisalUpdateSts
)
{
//查询绩效组是否还存在可开启的绩效
// JxglPerformanceAppraisal appisal = JxglPerformanceAppraisal.builder().id(appraisalUpdateSts.getId()).build().selectById();
// if(appisal.getAppraisalPersonNum() == 1) {
//
// }
List
<
JxglAppraisal
>
ais
=
JxglAppraisal
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
JxglAppraisal
>().
lambda
().
eq
(
JxglAppraisal:
:
getPerformanceAppraisalId
,
appraisalUpdateSts
.
getId
())
.
eq
(
JxglAppraisal:
:
getSts
,
0
));
if
(
ais
.
size
()
>
0
)
{
JxglPerformanceAppraisal
performanceAppraisal
=
jxglPerformanceAppraisalMapper
JxglPerformanceAppraisal
performanceAppraisal
=
jxglPerformanceAppraisalMapper
.
selectOne
(
new
QueryWrapper
<
JxglPerformanceAppraisal
>().
lambda
()
.
selectOne
(
new
QueryWrapper
<
JxglPerformanceAppraisal
>().
lambda
()
.
eq
(
JxglPerformanceAppraisal:
:
getId
,
appraisalUpdateSts
.
getId
())
.
eq
(
JxglPerformanceAppraisal:
:
getId
,
appraisalUpdateSts
.
getId
())
...
@@ -783,6 +792,10 @@ public class JxglController {
...
@@ -783,6 +792,10 @@ public class JxglController {
.
updateById
(
JxglPerformanceAppraisal
.
builder
().
id
(
appraisalUpdateSts
.
getId
()).
sts
(
sts
).
build
());
.
updateById
(
JxglPerformanceAppraisal
.
builder
().
id
(
appraisalUpdateSts
.
getId
()).
sts
(
sts
).
build
());
return
ResultUtil
.
success
();
return
ResultUtil
.
success
();
}
else
{
return
ResultUtil
.
error
(
"已无可开启的绩效节点"
);
}
}
}
/**
/**
...
@@ -1031,6 +1044,20 @@ public class JxglController {
...
@@ -1031,6 +1044,20 @@ public class JxglController {
}
else
if
(
appraisal
.
getSts
()
<=
AppraisalSts
.
RESULT_VERIFICATION
.
getType
())
{
}
else
if
(
appraisal
.
getSts
()
<=
AppraisalSts
.
RESULT_VERIFICATION
.
getType
())
{
JxglAppraisal
.
builder
().
id
(
id
).
sts
(
AppraisalSts
.
TERMINATION_ASSESSMENT
.
getType
()).
build
().
updateById
();
JxglAppraisal
.
builder
().
id
(
id
).
sts
(
AppraisalSts
.
TERMINATION_ASSESSMENT
.
getType
()).
build
().
updateById
();
//查询所属绩效组是否为一人
JxglPerformanceAppraisal
appisal
=
JxglPerformanceAppraisal
.
builder
().
id
(
appraisal
.
getPerformanceAppraisalId
()).
build
().
selectById
();
if
(
appisal
.
getAppraisalPersonNum
()
==
1
)
{
//绩效考核改为 “4, "终止考核"”
jxglPerformanceAppraisalMapper
.
updateById
(
JxglPerformanceAppraisal
.
builder
().
id
(
appraisal
.
getPerformanceAppraisalId
()).
sts
(
PerformanceAppraisalSts
.
TERMINATION_ASSESSMENT
.
getType
()).
build
());
}
else
{
List
<
JxglAppraisal
>
ais
=
JxglAppraisal
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
JxglAppraisal
>().
lambda
().
eq
(
JxglAppraisal:
:
getPerformanceAppraisalId
,
appraisal
.
getPerformanceAppraisalId
())
.
eq
(
JxglAppraisal:
:
getSts
,
0
));
if
(
ais
.
size
()
==
0
)
{
//绩效考核改为 “4, "终止考核"”
jxglPerformanceAppraisalMapper
.
updateById
(
JxglPerformanceAppraisal
.
builder
().
id
(
appraisal
.
getPerformanceAppraisalId
()).
sts
(
PerformanceAppraisalSts
.
TERMINATION_ASSESSMENT
.
getType
()).
build
());
}
}
JxglAppraisalLog
appraisalLog
=
JxglAppraisalLog
.
builder
().
build
();
JxglAppraisalLog
appraisalLog
=
JxglAppraisalLog
.
builder
().
build
();
appraisalLog
.
setAppraisalId
(
appraisal
.
getId
());
appraisalLog
.
setAppraisalId
(
appraisal
.
getId
());
appraisalLog
.
setExecutorId
(
userBean
.
getEmpNum
());
appraisalLog
.
setExecutorId
(
userBean
.
getEmpNum
());
...
...
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