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
409af0aa
Commit
409af0aa
authored
Mar 08, 2021
by
cq990612
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码结构
parent
b539577f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
BASE_RESP_CODE_ENUM.java
...wisenergy/common/utils/exception/BASE_RESP_CODE_ENUM.java
+0
-3
WorkTimeOrderServiceImpl.java
...a/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
+3
-2
No files found.
wisenergy-common/src/main/java/cn/wisenergy/common/utils/exception/BASE_RESP_CODE_ENUM.java
View file @
409af0aa
...
@@ -81,9 +81,6 @@ public enum BASE_RESP_CODE_ENUM {
...
@@ -81,9 +81,6 @@ public enum BASE_RESP_CODE_ENUM {
CENTERMANAGERALREADYEXISTS
(
"661"
,
"该中心已经有中心负责人"
),
CENTERMANAGERALREADYEXISTS
(
"661"
,
"该中心已经有中心负责人"
),
ROLE_CANNOTBE_EMPTY
(
"662"
,
"设置的角色不能为空"
),
ROLE_CANNOTBE_EMPTY
(
"662"
,
"设置的角色不能为空"
),
NOADMIN_ISTRATIVE_RIGHTS
(
"663"
,
"设置的负责人没有管理权限"
),
NOADMIN_ISTRATIVE_RIGHTS
(
"663"
,
"设置的负责人没有管理权限"
),
NON_PROJECT_OPPORTUNITYNUMBERNAME_ISEMPTY
(
"664"
,
"非项目,无商机属性"
),
THEPROJECT_HASBEEN_CLOSED
(
"665"
,
"该项目/商机已经结束,请重新选择填报"
),
THISTYPEOF_WORKINGHOURS_HASENDE
(
"666"
,
"该工时类型已经结束,请选择其他类型"
),
CHOOSEATLEASTONEROLE
(
"667"
,
"至少保留一个角色"
),
CHOOSEATLEASTONEROLE
(
"667"
,
"至少保留一个角色"
),
;
;
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/impl/WorkTimeOrderServiceImpl.java
View file @
409af0aa
...
@@ -304,14 +304,15 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
...
@@ -304,14 +304,15 @@ public class WorkTimeOrderServiceImpl implements WorkTimeOrderService {
if
(
workTimeOrder
.
getType
().
equals
(
1
)
||
workTimeOrder
.
getType
().
equals
(
2
))
{
if
(
workTimeOrder
.
getType
().
equals
(
1
)
||
workTimeOrder
.
getType
().
equals
(
2
))
{
for
(
WorkProject
projectsById
:
projectsByIds
)
{
for
(
WorkProject
projectsById
:
projectsByIds
)
{
if
(
projectsById
.
getId
().
equals
(
workTimeOrder
.
getProjectId
()))
{
if
(
projectsById
.
getId
().
equals
(
workTimeOrder
.
getProjectId
()))
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
THEPROJECT_HASBEEN_CLOSED
);
throw
new
BaseCustomException
(
"666"
,
projectsById
.
getProjectName
()+
"已经结束,请重新选择填报"
);
}
}
}
}
}
else
{
}
else
{
for
(
WorkType
workType
:
workTypes
)
{
for
(
WorkType
workType
:
workTypes
)
{
if
(
workType
.
getStatus
().
equals
(
0
))
{
if
(
workType
.
getStatus
().
equals
(
0
))
{
if
(
workType
.
getId
().
equals
(
workTimeOrder
.
getType
()))
{
if
(
workType
.
getId
().
equals
(
workTimeOrder
.
getType
()))
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
THISTYPEOF_WORKINGHOURS_HASENDE
);
throw
new
BaseCustomException
(
"667"
,
workType
.
getName
()+
"已经结束,请重新选择填报"
);
}
}
}
}
}
}
...
...
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