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
b398984b
Commit
b398984b
authored
3 years ago
by
cq990612
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码结构
parent
789b4991
chenqi5.0
chenqi
chenqi2.0
chenqi3.0
chenqi4.0
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
WorkProjectServiceImpl.java
...ava/cn/wisenergy/service/impl/WorkProjectServiceImpl.java
+19
-0
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/impl/WorkProjectServiceImpl.java
View file @
b398984b
...
...
@@ -311,6 +311,25 @@ public class WorkProjectServiceImpl implements WorkProjectService {
if
(
null
==
workProject
)
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
WORK_PROJECT_IS_NULL
);
}
// 判断oa编号、项目名称是否重复,
List
<
WorkProject
>
workProjects
=
workProjectMapper
.
selectList
(
new
QueryWrapper
<>());
if
(
CollectionUtils
.
isEmpty
(
workProjects
))
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
WORK_PROJECT_IS_NULL
);
}
for
(
WorkProject
workProject1
:
workProjects
)
{
if
(
workProject1
.
getId
().
equals
(
workProject
.
getId
()))
{
continue
;
}
if
(
modifyProjectVo
.
getOaProjectId
().
equals
(
workProject
.
getOaProjectId
()))
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
ITEMOADUPLICATE
);
}
if
(
modifyProjectVo
.
getProjectName
().
equals
(
workProject
.
getProjectName
()))
{
throw
new
BaseCustomException
(
BASE_RESP_CODE_ENUM
.
DUPLICATEPROJECTNAME
);
}
}
// 查询当前项目的人员
List
<
UserProjectDto
>
users
=
workUserProjectService
.
getUserProjectByProjectId
(
modifyProjectVo
.
getProjectId
());
List
<
Integer
>
userIds
=
new
ArrayList
<>();
...
...
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