Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
fhjw
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
mengmeng
fhjw
Commits
4f861848
Commit
4f861848
authored
4 years ago
by
mengmeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改评价反馈删除存在的BUG
parent
eba46ee3
master
xmm
zhg
1 merge request
!1
修改评价反馈删除存在的BUG
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
FhjwCommentServiceImpl.java
...mit/modules/fhjw/service/impl/FhjwCommentServiceImpl.java
+5
-3
No files found.
hmit-admin/src/main/java/io/hmit/modules/fhjw/service/impl/FhjwCommentServiceImpl.java
View file @
4f861848
...
...
@@ -190,7 +190,6 @@ public class FhjwCommentServiceImpl extends CrudServiceImpl<FhjwCommentDao, Fhjw
if
(
item
.
getRoleId
()
!=
null
){
Optional
<
RoleDTO
>
roleDTO
=
Optional
.
ofNullable
(
roleService
.
get
(
item
.
getRoleId
()));
roleDTO
.
ifPresent
(
r
->
item
.
setUserRole
(
r
.
getName
()));
}
/*
...
...
@@ -207,8 +206,11 @@ public class FhjwCommentServiceImpl extends CrudServiceImpl<FhjwCommentDao, Fhjw
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
delete
(
Long
[]
ids
)
{
Arrays
.
asList
(
ids
).
stream
().
forEach
(
id
->{
Long
case_id
=
selectById
(
id
).
getCaseId
();
baseDao
.
delete
(
new
QueryWrapper
<
FhjwCommentEntity
>().
eq
(
"case_id"
,
case_id
));
FhjwCommentEntity
entity
=
selectById
(
id
);
Long
case_id
=
entity
.
getCaseId
();
Long
user_id
=
entity
.
getUserId
();
baseDao
.
delete
(
new
QueryWrapper
<
FhjwCommentEntity
>().
eq
(
"case_id"
,
case_id
)
.
eq
(
"user_id"
,
user_id
));
});
}
...
...
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