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
bd4525a2
Commit
bd4525a2
authored
Jun 17, 2020
by
tangzhaoqian
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绩效-待评分、已评分搜索优化
parent
f7ed465b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
src/main/java/cn/timer/api/controller/jxgl/JxglController.java
+10
-1
src/main/java/cn/timer/api/dto/jxgl/MyPerformance.java
+3
-0
src/main/resources/mapping/jxgl/JxglAppraisalMapper.xml
+0
-1
src/main/resources/mapping/jxgl/JxglPerformanceAppraisalMapper.xml
+5
-1
No files found.
src/main/java/cn/timer/api/controller/jxgl/JxglController.java
View file @
bd4525a2
...
@@ -302,7 +302,10 @@ public class JxglController {
...
@@ -302,7 +302,10 @@ public class JxglController {
IPage
<
JxglAppraisalT
>
p
=
new
Page
<
JxglAppraisalT
>(
page
.
getCurrentPage
(),
page
.
getTotalPage
());
IPage
<
JxglAppraisalT
>
p
=
new
Page
<
JxglAppraisalT
>(
page
.
getCurrentPage
(),
page
.
getTotalPage
());
IPage
<
JxglAppraisalT
>
pageAT
=
jxglAppraisalTMapper
.
selectPage
(
p
,
IPage
<
JxglAppraisalT
>
pageAT
=
jxglAppraisalTMapper
.
selectPage
(
p
,
new
QueryWrapper
<
JxglAppraisalT
>().
lambda
().
eq
(
JxglAppraisalT:
:
getOrgCode
,
userBean
.
getOrgCode
()));
new
QueryWrapper
<
JxglAppraisalT
>().
lambda
()
.
eq
(
JxglAppraisalT:
:
getOrgCode
,
userBean
.
getOrgCode
())
.
orderByDesc
(
JxglAppraisalT:
:
getId
)
);
List
<
JxglAppraisalT
>
listAT
=
pageAT
.
getRecords
();
List
<
JxglAppraisalT
>
listAT
=
pageAT
.
getRecords
();
...
@@ -1102,6 +1105,12 @@ public class JxglController {
...
@@ -1102,6 +1105,12 @@ public class JxglController {
IPage
<
JxglPerformanceAppraisal
>
page
=
new
Page
<
JxglPerformanceAppraisal
>(
query
.
getCurrentPage
(),
query
.
getTotalPage
());
IPage
<
JxglPerformanceAppraisal
>
page
=
new
Page
<
JxglPerformanceAppraisal
>(
query
.
getCurrentPage
(),
query
.
getTotalPage
());
query
.
setOrgCode
(
userBean
.
getOrgCode
());
query
.
setOrgCode
(
userBean
.
getOrgCode
());
query
.
setId
(
userBean
.
getEmpNum
());
query
.
setId
(
userBean
.
getEmpNum
());
// 当查询的数据不为 2评分,清空 节点状态
if
(
query
.
getSts
()
!=
2
)
{
query
.
setNoteSts
(
null
);
}
IPage
<
JxglPerformanceAppraisal
>
pagePA
=
jxglPerformanceAppraisalMapper
.
selectMyByQuery
(
page
,
query
);
IPage
<
JxglPerformanceAppraisal
>
pagePA
=
jxglPerformanceAppraisalMapper
.
selectMyByQuery
(
page
,
query
);
List
<
JxglPerformanceAppraisal
>
listPA
=
pagePA
.
getRecords
();
List
<
JxglPerformanceAppraisal
>
listPA
=
pagePA
.
getRecords
();
...
...
src/main/java/cn/timer/api/dto/jxgl/MyPerformance.java
View file @
bd4525a2
...
@@ -22,4 +22,7 @@ public class MyPerformance extends Page {
...
@@ -22,4 +22,7 @@ public class MyPerformance extends Page {
@ApiModelProperty
(
value
=
"状态 0目标填写 1目标确认 2评分 3 结果确认"
,
example
=
""
)
@ApiModelProperty
(
value
=
"状态 0目标填写 1目标确认 2评分 3 结果确认"
,
example
=
""
)
private
Integer
sts
;
private
Integer
sts
;
@ApiModelProperty
(
value
=
"状态 1执行中 2已执行 "
,
example
=
""
)
private
Integer
noteSts
;
}
}
src/main/resources/mapping/jxgl/JxglAppraisalMapper.xml
View file @
bd4525a2
...
@@ -347,7 +347,6 @@
...
@@ -347,7 +347,6 @@
</where>
</where>
GROUP BY a.emp_num
GROUP BY a.emp_num
ORDER BY a.id DESC
ORDER BY a.id DESC
</select>
</select>
<select
id=
"selectDetailById"
resultMap=
"BaseResultMap_Detail"
>
<select
id=
"selectDetailById"
resultMap=
"BaseResultMap_Detail"
>
...
...
src/main/resources/mapping/jxgl/JxglPerformanceAppraisalMapper.xml
View file @
bd4525a2
...
@@ -206,7 +206,7 @@
...
@@ -206,7 +206,7 @@
LEFT JOIN jxgl_process_node d ON b.id = d.appraisal_id AND b.sts = d.process_type
LEFT JOIN jxgl_process_node d ON b.id = d.appraisal_id AND b.sts = d.process_type
LEFT JOIN yggl_main_emp e ON b.emp_num = e.emp_num AND a.org_code = e.org_code
LEFT JOIN yggl_main_emp e ON b.emp_num = e.emp_num AND a.org_code = e.org_code
WHERE a.org_code = #{param.orgCode} AND b.emp_num = #{param.id}
WHERE a.org_code = #{param.orgCode} AND b.emp_num = #{param.id}
ORDER BY a.id DESC
</select>
</select>
<select
id=
"selectMyByQuery"
resultMap=
"BaseResultMap_ALl"
>
<select
id=
"selectMyByQuery"
resultMap=
"BaseResultMap_ALl"
>
...
@@ -239,7 +239,11 @@
...
@@ -239,7 +239,11 @@
<if
test=
"param.sts != null and param.sts == 3"
>
<if
test=
"param.sts != null and param.sts == 3"
>
AND b.sts = 4
AND b.sts = 4
</if>
</if>
<if
test=
"param.noteSts != null"
>
AND d.sts = #{param.noteSts}
</if>
</where>
</where>
ORDER BY a.id DESC
</select>
</select>
...
...
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