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
14783325
Commit
14783325
authored
Jul 13, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加申诉统计业务
parent
5e67479e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
15 deletions
+28
-15
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/ApiWebPerformController.java
...va/com/mortals/xhx/busiz/web/ApiWebPerformController.java
+6
-6
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/PerformApiController.java
.../java/com/mortals/xhx/busiz/web/PerformApiController.java
+19
-9
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformReviewRecordServiceImpl.java
.../perform/service/impl/PerformReviewRecordServiceImpl.java
+3
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/ApiWebPerformController.java
View file @
14783325
...
@@ -67,7 +67,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
...
@@ -67,7 +67,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
boolean
bool
=
attend
(
req
);
boolean
bool
=
attend
(
req
);
if
(
!
bool
)
throw
new
AppException
(
busiDesc
+
"失败!"
);
if
(
bool
)
throw
new
AppException
(
busiDesc
+
"失败!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
busiDesc
,
e
);
log
.
error
(
busiDesc
,
e
);
return
Rest
.
fail
(
e
.
getMessage
());
return
Rest
.
fail
(
e
.
getMessage
());
...
@@ -92,7 +92,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
...
@@ -92,7 +92,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
boolean
bool
=
review
(
req
);
boolean
bool
=
review
(
req
);
if
(
!
bool
)
throw
new
AppException
(
busiDesc
+
"失败!"
);
if
(
bool
)
throw
new
AppException
(
busiDesc
+
"失败!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
busiDesc
,
e
);
log
.
error
(
busiDesc
,
e
);
return
Rest
.
fail
(
e
.
getMessage
());
return
Rest
.
fail
(
e
.
getMessage
());
...
@@ -117,7 +117,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
...
@@ -117,7 +117,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
boolean
bool
=
complain
(
req
);
boolean
bool
=
complain
(
req
);
if
(
!
bool
)
throw
new
AppException
(
busiDesc
+
"失败!"
);
if
(
bool
)
throw
new
AppException
(
busiDesc
+
"失败!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
busiDesc
,
e
);
log
.
error
(
busiDesc
,
e
);
return
Rest
.
fail
(
e
.
getMessage
());
return
Rest
.
fail
(
e
.
getMessage
());
...
@@ -142,7 +142,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
...
@@ -142,7 +142,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
boolean
bool
=
gowork
(
req
);
boolean
bool
=
gowork
(
req
);
if
(
!
bool
)
throw
new
AppException
(
busiDesc
+
"失败!"
);
if
(
bool
)
throw
new
AppException
(
busiDesc
+
"失败!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
busiDesc
,
e
);
log
.
error
(
busiDesc
,
e
);
return
Rest
.
fail
(
e
.
getMessage
());
return
Rest
.
fail
(
e
.
getMessage
());
...
@@ -167,7 +167,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
...
@@ -167,7 +167,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
boolean
bool
=
effect
(
req
);
boolean
bool
=
effect
(
req
);
if
(
!
bool
)
throw
new
AppException
(
busiDesc
+
"失败!"
);
if
(
bool
)
throw
new
AppException
(
busiDesc
+
"失败!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
busiDesc
,
e
);
log
.
error
(
busiDesc
,
e
);
return
Rest
.
fail
(
e
.
getMessage
());
return
Rest
.
fail
(
e
.
getMessage
());
...
@@ -192,7 +192,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
...
@@ -192,7 +192,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getPhone
()))
throw
new
AppException
(
"手机号码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
req
.
getRuleCode
()))
throw
new
AppException
(
"绩效规则编码不能为空!"
);
boolean
bool
=
other
(
req
);
boolean
bool
=
other
(
req
);
if
(
!
bool
)
throw
new
AppException
(
busiDesc
+
"失败!"
);
if
(
bool
)
throw
new
AppException
(
busiDesc
+
"失败!"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
busiDesc
,
e
);
log
.
error
(
busiDesc
,
e
);
return
Rest
.
fail
(
e
.
getMessage
());
return
Rest
.
fail
(
e
.
getMessage
());
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/busiz/web/PerformApiController.java
View file @
14783325
...
@@ -167,9 +167,10 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -167,9 +167,10 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
performInfo
.
setPerformType
(
PerformTypeEnum
.
考勤绩效
.
getValue
());
performInfo
.
setPerformType
(
PerformTypeEnum
.
考勤绩效
.
getValue
());
//判断是否存在申诉
//判断是否存在申诉
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
Boolean
bool
=
entity
.
newEntity
();
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
Boolean
bool
=
entity
.
newEntity
();
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
}
return
performInfo
;
return
performInfo
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
...
@@ -190,8 +191,11 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -190,8 +191,11 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
performInfo
.
setPerformType
(
PerformTypeEnum
.
评价差评绩效
.
getValue
());
performInfo
.
setPerformType
(
PerformTypeEnum
.
评价差评绩效
.
getValue
());
//判断是否存在申诉
//判断是否存在申诉
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
Boolean
bool
=
entity
.
newEntity
();
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
Boolean
bool
=
entity
.
newEntity
();
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
}
return
performInfo
;
return
performInfo
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
...
@@ -212,8 +216,10 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -212,8 +216,10 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
//判断是否存在申诉
//判断是否存在申诉
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
Boolean
bool
=
entity
.
newEntity
();
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
Boolean
bool
=
entity
.
newEntity
();
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
}
return
performInfo
;
return
performInfo
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
model
.
put
(
KEY_RESULT_DATA
,
collect
);
model
.
put
(
KEY_RESULT_DATA
,
collect
);
...
@@ -232,8 +238,12 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
...
@@ -232,8 +238,12 @@ public class PerformApiController extends AbstractBaseController<PerformReq> {
performInfo
.
setPerformType
(
PerformTypeEnum
.
办件绩效
.
getValue
());
performInfo
.
setPerformType
(
PerformTypeEnum
.
办件绩效
.
getValue
());
//判断是否存在申诉
//判断是否存在申诉
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
PerformAttendAppealEntity
entity
=
appealService
.
selectOne
(
new
PerformAttendAppealQuery
().
checkRecordId
(
item
.
getId
()));
Boolean
bool
=
entity
.
newEntity
();
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
if
(!
ObjectUtils
.
isEmpty
(
entity
))
{
Boolean
bool
=
entity
.
newEntity
();
updateAppealStatus
(
performInfo
,
bool
,
entity
.
getProcessStatus
(),
entity
.
getAppealResult
());
}
return
performInfo
;
return
performInfo
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
model
.
put
(
KEY_RESULT_DATA
,
collect
);
model
.
put
(
KEY_RESULT_DATA
,
collect
);
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/perform/service/impl/PerformReviewRecordServiceImpl.java
View file @
14783325
...
@@ -42,6 +42,9 @@ public class PerformReviewRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
...
@@ -42,6 +42,9 @@ public class PerformReviewRecordServiceImpl extends AbstractCRUDServiceImpl<Perf
}
else
{
}
else
{
checkReviewRecordEntity
.
setCheckStatus
(
CheckStatusEnum
.
未处理
.
getValue
());
//非自动扣分相设置为未处理
checkReviewRecordEntity
.
setCheckStatus
(
CheckStatusEnum
.
未处理
.
getValue
());
//非自动扣分相设置为未处理
}
}
//checkReviewRecordEntity.s
checkReviewRecordService
.
save
(
checkReviewRecordEntity
,
context
);
checkReviewRecordService
.
save
(
checkReviewRecordEntity
,
context
);
}
}
...
...
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