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