Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
Overview
Overview
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
胡园园
yanxuan-qc-change-system
Commits
f47484b0
Commit
f47484b0
authored
Nov 22, 2022
by
jx-art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除时 处理业务逻辑错误BUG
parent
a6c3ff92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ChangeTypeServiceImpl.java
...change/biz/service/impl/change/ChangeTypeServiceImpl.java
+5
-0
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/change/ChangeTypeServiceImpl.java
View file @
f47484b0
...
...
@@ -120,6 +120,11 @@ public class ChangeTypeServiceImpl implements ChangeTypeService {
if
(
changeTypes
.
get
(
0
)
==
null
||
changeTypes
.
get
(
1
)
==
null
){
throw
ExceptionFactory
.
createParamFail
();
}
//查询一级下班是否还存在其他二级 如果不存在就删除一级 如果存在一级就不做伪删
List
<
ChangeType
>
changeTypeList
=
mapper
.
queryParent
(
changeTypes
.
get
(
0
).
getId
());
if
(
changeTypeList
.
size
()
==
2
){
changeTypes
.
remove
(
0
);
}
for
(
ChangeType
changeType
:
changeTypes
){
Example
example
=
new
Example
(
ChangeType
.
class
);
Example
.
Criteria
criteria
=
example
.
createCriteria
();
...
...
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