Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
9cb5b428
Commit
9cb5b428
authored
Apr 24, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_station' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_station
parents
beb15419
5f28c2e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
+8
-17
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+8
-17
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
9cb5b428
...
...
@@ -28,6 +28,9 @@ import com.yeejoin.equipmanage.mapper.*;
import
com.yeejoin.equipmanage.remote.RemoteSecurityService
;
import
com.yeejoin.equipmanage.service.*
;
import
com.yeejoin.equipmanage.utils.BeanUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -46,7 +49,7 @@ import java.net.SocketException;
import
java.util.*
;
import
java.util.stream.Collectors
;
@Slf4j
@Service
public
class
FireFightingSystemServiceImpl
extends
ServiceImpl
<
FireFightingSystemMapper
,
FireFightingSystemEntity
>
implements
IFireFightingSystemService
{
...
...
@@ -595,26 +598,14 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
}
@Override
@Transactional
public
Boolean
deleteSystem
(
Long
id
)
{
// QueryWrapper<FormInstance> fqw = new QueryWrapper<>();
// fqw.eq("field_value",id);
// fqw.groupBy("instance_id");
// List<FormInstance> formInstances = formInstanceMapper.selectList(fqw);
// if (formInstances != null && formInstances.size()>0){
// QueryWrapper<FormInstance> one = new QueryWrapper<>();
// one.eq("instance_id",formInstances.get(0).getInstanceId());
// one.eq("field_name","name");
// List<FormInstance> formInstances1 = formInstanceMapper.selectList(one);
// FormInstance formInstance = formInstances1.get(0);
// String name = formInstance.getFieldValue();
// throw new BadRequest(name+"建筑与该系统存在绑定关系,请清除后再进行删除!");
// }
FireFightingSystemEntity
entity
=
baseMapper
.
selectById
(
id
);
if
(
entity
.
getSceneId
()
!=
null
)
{
try
{
FeignUtil
.
remoteCall
(()
->
Morphic
.
morphicSubjectClient
.
delete
(
entity
.
getSceneId
()));
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
"远程调用 MORPHIC 服务的删除操作出错"
);
log
.
error
(
"远程调用 MORPHIC 服务的删除操作出错:"
+
e
.
getMessage
().
toString
(),
e
);
}
}
formInstanceMapper
.
clearSystemId
(
id
);
...
...
@@ -626,8 +617,8 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
syncDataService
.
syncDeletedFireFightingSystem
(
Arrays
.
asList
(
id
));
}
//删除系统图与设备关系表
QueryWrapper
<
SourceScene
>
ssWrapper
=
new
QueryWrapper
<>();
ssWrapper
.
eq
(
"sourceId"
,
id
);
QueryWrapper
<
SourceScene
>
ssWrapper
=
new
QueryWrapper
<
SourceScene
>();
ssWrapper
.
lambda
().
eq
(
SourceScene:
:
getSourceId
,
id
);
sourceSceneMapper
.
delete
(
ssWrapper
);
//删除动态关联表单实例数据
if
(
entity
.
getInstanceId
()
!=
null
)
{
...
...
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