Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
work_service
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
work_service
Commits
2af73365
Commit
2af73365
authored
Mar 02, 2021
by
cq990612
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码结构
parent
f5239621
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
WorkTimeOrderServiceImpl.java
...a/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
+4
-4
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
View file @
2af73365
...
...
@@ -348,7 +348,7 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
public
PageInfo
<
WorkTimeOrderDto
>
getExamine
(
Integer
userId
,
Integer
projectId
,
Integer
type
,
Integer
page
,
Integer
pageSize
,
List
<
Integer
>
status
)
{
log
.
info
(
"WorkOrderServiceImpl[]getExamine[]input.param.userId:{},projectId:{},type:{},page:{},size:{},status:{}"
+
userId
,
projectId
,
type
,
page
,
pageSize
,
status
);
// 判断当前用户是否是管理员
if
(
UserRoleLevelUtils
.
isManagerLevel
(
userId
,
LevelEnum
.
EXAMINE
.
getLevelName
()))
{
if
(
!
UserRoleLevelUtils
.
isManagerLevel
(
userId
,
LevelEnum
.
EXAMINE
.
getLevelName
()))
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
USER_NOT_LEVEL
);
}
WorkUser
user
=
workUserService
.
getById
(
userId
);
...
...
@@ -367,7 +367,7 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
@Override
public
List
<
AppletsPendApprovalDto
>
getExamineApplets
(
Integer
userId
,
Integer
projectId
,
Integer
type
)
{
log
.
info
(
"WorkOrderServiceImpl[]getExamineApplets[]input.param.userId:{},projectId:{},type:{}"
+
userId
,
projectId
,
type
);
if
(
UserRoleLevelUtils
.
isManagerLevel
(
userId
,
LevelEnum
.
EXAMINE
.
getLevelName
()))
{
if
(
!
UserRoleLevelUtils
.
isManagerLevel
(
userId
,
LevelEnum
.
EXAMINE
.
getLevelName
()))
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
USER_NOT_LEVEL
);
}
WorkUser
user
=
workUserService
.
getById
(
userId
);
...
...
@@ -448,7 +448,7 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
if
(
CollectionUtils
.
isEmpty
(
ids
))
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
INPUT_PARAM_IS_NULL
);
}
if
(
UserRoleLevelUtils
.
isManagerLevel
(
reviewerId
,
LevelEnum
.
EXAMINE
.
getLevelName
()))
{
if
(
!
UserRoleLevelUtils
.
isManagerLevel
(
reviewerId
,
LevelEnum
.
EXAMINE
.
getLevelName
()))
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
USER_NOT_LEVEL
);
}
int
i
=
workTimeOrderMapper
.
updateByIds
(
reviewerId
,
ids
);
...
...
@@ -482,7 +482,7 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
INPUT_PARAM_IS_NULL
);
}
// 判断当前用户是否有权限
if
(
UserRoleLevelUtils
.
isManagerLevel
(
reviewerId
,
LevelEnum
.
EXAMINE
.
getLevelName
()))
{
if
(
!
UserRoleLevelUtils
.
isManagerLevel
(
reviewerId
,
LevelEnum
.
EXAMINE
.
getLevelName
()))
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
USER_NOT_LEVEL
);
}
// 修改工单状态
...
...
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