Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
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
86a84fc7
Commit
86a84fc7
authored
4 years ago
by
cq990612
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码结构
parent
9c1c5984
master
chenqi
chenqi2.0
chenqi3.0
chenqi4.0
chenqi5.0
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
WorkTimeOrderServiceImpl.java
...a/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
+2
-14
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
View file @
86a84fc7
...
...
@@ -245,7 +245,6 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
}
if
(!
PROJECT
.
equals
(
type
)
&&
!
BUSINESS_OPPORTUNITY
.
equals
(
type
))
{
dto
.
setManagerName
(
workUserService
.
getById
(
workTypeService
.
getByDeptId
(
workUserService
.
getById
(
dto
.
getUserId
()).
getDeptId
()).
get
(
0
).
getManagerId
()).
getName
());
}
// 设置状态
if
(
null
==
dto
.
getStatus
()
||
0
==
dto
.
getStatus
())
{
...
...
@@ -267,7 +266,6 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
if
(
2
==
dto
.
getStatus
()
||
5
==
dto
.
getStatus
())
{
continue
;
}
BeanUtils
.
copyProperties
(
workTimeOrder
,
dto
);
addList
.
add
(
workTimeOrder
);
}
...
...
@@ -441,19 +439,9 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
WorkUser
user
=
workUserService
.
getById
(
userId
);
if
(
0
!=
user
.
getLevel
())
{
QueryWrapper
<
WorkTimeOrder
>
wrapper
=
new
QueryWrapper
<>();
if
(
null
!=
type
)
{
for
(
ProjectTypeEnum
value
:
ProjectTypeEnum
.
values
())
{
if
(!
value
.
getReviewer
().
equals
(
3
))
{
continue
;
}
if
(
value
.
getType
().
equals
(
type
))
{
wrapper
.
eq
(
"dept_id"
,
user
.
getDeptId
());
}
}
}
wrapper
.
in
(
"status"
,
COMPLETED
,
RE_SUBMIT
);
wrapper
.
eq
(
type
!=
null
,
"type"
,
type
);
wrapper
.
eq
(
type
!=
null
,
"dept_id"
,
user
.
getDeptId
());
wrapper
.
eq
(
projectId
!=
null
,
"project_id"
,
projectId
);
wrapper
.
orderByDesc
(
"work_day"
);
List
<
WorkTimeOrder
>
workTimeOrders
=
workTimeOrderMapper
.
selectList
(
wrapper
);
...
...
@@ -723,7 +711,7 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
}
// 判断工单是否合法
private
void
isEmpty
(
WorkTimeOrderDto
dto
)
{
int
size
=
0
;
...
...
This diff is collapsed.
Click to expand it.
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