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
028824c4
Commit
028824c4
authored
Jul 13, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加申诉统计业务
parent
a21dc9fa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
8 deletions
+41
-8
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/req/PerformReq.java
...r/src/main/java/com/mortals/xhx/busiz/req/PerformReq.java
+4
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/InspectApiController.java
.../java/com/mortals/xhx/busiz/web/InspectApiController.java
+37
-8
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/req/PerformReq.java
View file @
028824c4
...
...
@@ -19,5 +19,9 @@ public class PerformReq extends BaseReq {
private
Long
id
;
private
Integer
processStatus
;
private
Integer
scoreType
;
}
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/InspectApiController.java
View file @
028824c4
...
...
@@ -14,6 +14,7 @@ import com.mortals.xhx.busiz.rsp.PerformInfo;
import
com.mortals.xhx.busiz.rsp.PerformStatInfo
;
import
com.mortals.xhx.common.code.PerformTypeEnum
;
import
com.mortals.xhx.common.code.ProcessStatusEnum
;
import
com.mortals.xhx.common.code.SubAddTypeEnum
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.module.check.model.*
;
import
com.mortals.xhx.module.check.model.vo.CheckAllRecordVo
;
...
...
@@ -127,12 +128,11 @@ public class InspectApiController extends AbstractBaseController<PerformReq> {
performReq
.
setPerformStartDate
(
DateUtil
.
beginOfMonth
(
DateUtil
.
parse
(
performReq
.
getPerformStartDate
()).
toJdkDate
()).
toDateStr
());
performReq
.
setPerformEndDate
(
DateUtil
.
endOfMonth
(
DateUtil
.
parse
(
performReq
.
getPerformStartDate
()).
toJdkDate
()).
toDateStr
());
}
if
(
PerformTypeEnum
.
全部
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
CheckAllRecordQuery
query
=
new
CheckAllRecordQuery
();
query
.
setCheckTimeStart
(
performReq
.
getPerformStartDate
());
query
.
setCheckTimeEnd
(
performReq
.
getPerformEndDate
());
query
.
setCreateUserId
(
context
.
getUser
().
getId
());
if
(
PerformTypeEnum
.
全部
.
getValue
().
equals
(
performReq
.
getPerformType
()))
{
List
<
CheckAllRecordVo
>
allCheckRecord
=
checkAllRecordService
.
getAllCheckRecord
(
query
);
List
<
PerformInfo
>
collect
=
allCheckRecord
.
stream
().
map
(
item
->
{
PerformInfo
performInfo
=
new
PerformInfo
();
...
...
@@ -148,6 +148,38 @@ public class InspectApiController extends AbstractBaseController<PerformReq> {
parsePageInfo
(
model
,
pageAllInfo
);
}
if
(!
ObjectUtils
.
isEmpty
(
performReq
.
getProcessStatus
())){
query
.
setCheckStatus
(
performReq
.
getProcessStatus
());
List
<
CheckAllRecordVo
>
allCheckRecord
=
checkAllRecordService
.
getAllCheckRecord
(
query
);
List
<
PerformInfo
>
collect
=
allCheckRecord
.
stream
().
map
(
item
->
{
PerformInfo
performInfo
=
new
PerformInfo
();
BeanUtils
.
copyProperties
(
item
,
performInfo
,
BeanUtil
.
getNullPropertyNames
(
item
));
return
performInfo
;
}).
collect
(
Collectors
.
toList
());
model
.
put
(
KEY_RESULT_DATA
,
collect
);
PageInfo
pageAllInfo
=
new
PageInfo
();
pageAllInfo
.
setTotalResult
(
collect
.
size
());
pageAllInfo
.
setCurrPage
(
1
);
pageAllInfo
.
setPrePageResult
(-
1
);
model
.
put
(
PAGEINFO_KEY
,
pageAllInfo
);
parsePageInfo
(
model
,
pageAllInfo
);
}
if
(!
ObjectUtils
.
isEmpty
(
performReq
.
getScoreType
())){
query
.
setSubMethod
(
performReq
.
getScoreType
());
List
<
CheckAllRecordVo
>
allCheckRecord
=
checkAllRecordService
.
getAllCheckRecord
(
query
);
List
<
PerformInfo
>
collect
=
allCheckRecord
.
stream
().
map
(
item
->
{
PerformInfo
performInfo
=
new
PerformInfo
();
BeanUtils
.
copyProperties
(
item
,
performInfo
,
BeanUtil
.
getNullPropertyNames
(
item
));
return
performInfo
;
}).
collect
(
Collectors
.
toList
());
model
.
put
(
KEY_RESULT_DATA
,
collect
);
PageInfo
pageAllInfo
=
new
PageInfo
();
pageAllInfo
.
setTotalResult
(
collect
.
size
());
pageAllInfo
.
setCurrPage
(
1
);
pageAllInfo
.
setPrePageResult
(-
1
);
model
.
put
(
PAGEINFO_KEY
,
pageAllInfo
);
parsePageInfo
(
model
,
pageAllInfo
);
}
// model.put(KEY_RESULT_DATA, result.getList());
...
...
@@ -176,9 +208,6 @@ public class InspectApiController extends AbstractBaseController<PerformReq> {
try
{
//根据状态 查询 当前是否已经存在正在进行的申诉
if
(
ObjectUtils
.
isEmpty
(
req
.
getPerformType
()))
throw
new
AppException
(
"绩效类型不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
if
(
PerformTypeEnum
.
考勤绩效
.
getValue
().
equals
(
req
.
getPerformType
()))
{
boolean
bool
=
attend
(
req
);
...
...
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