Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f122c2bc
authored
May 19, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码修改
1 parent
29279545
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
src/main/java/cn/com/glsx/smart/modules/service/impl/SmartSceneServiceImpl.java
src/main/java/cn/com/glsx/smart/modules/service/impl/SmartSceneServiceImpl.java
View file @
f122c2b
...
...
@@ -274,10 +274,12 @@ public class SmartSceneServiceImpl extends BaseService implements SmartSceneServ
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
deleteScene
(
Long
id
)
{
SmartScene
data
=
getById
(
id
);
deleteByPrimaryKey
(
id
);
sceneDataService
.
deleteBySceneId
(
id
);
sceneLogService
.
insertWrapper
(
data
.
getUserId
(),
"删除场景数据:"
+
data
.
getId
(),
JSON
.
toJSONString
(
data
));
if
(
data
!=
null
)
{
deleteByPrimaryKey
(
id
);
sceneDataService
.
deleteBySceneId
(
id
);
sceneLogService
.
insertWrapper
(
data
.
getUserId
(),
"删除场景数据:"
+
data
.
getId
(),
JSON
.
toJSONString
(
data
));
}
}
/**
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment