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
09200d23
Commit
09200d23
authored
Apr 20, 2022
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统建筑图与组态图对应关系表新增数据类型
parent
56f63d33
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
0 deletions
+49
-0
SourceScene.java
...va/com/yeejoin/equipmanage/common/entity/SourceScene.java
+4
-0
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+1
-0
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+5
-0
wl-3.0.1.xml
...ot-system-equip/src/main/resources/changelog/wl-3.0.1.xml
+37
-0
Building.xml
...-boot-system-equip/src/main/resources/mapper/Building.xml
+2
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/SourceScene.java
View file @
09200d23
...
@@ -25,6 +25,10 @@ public class SourceScene extends BaseEntity {
...
@@ -25,6 +25,10 @@ public class SourceScene extends BaseEntity {
@ApiModelProperty
(
value
=
"文件名称"
)
@ApiModelProperty
(
value
=
"文件名称"
)
@TableField
(
"source_name"
)
@TableField
(
"source_name"
)
private
String
sourceName
;
private
String
sourceName
;
@ApiModelProperty
(
value
=
"数据源类型:building(建筑类),system(系统类)"
)
@TableField
(
"source_type"
)
private
String
sourceType
;
@ApiModelProperty
(
value
=
"组态工程id"
)
@ApiModelProperty
(
value
=
"组态工程id"
)
@TableField
(
"project_id"
)
@TableField
(
"project_id"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
09200d23
...
@@ -220,6 +220,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
...
@@ -220,6 +220,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
model
.
put
(
"id"
,
String
.
valueOf
(
System
.
currentTimeMillis
()));
model
.
put
(
"id"
,
String
.
valueOf
(
System
.
currentTimeMillis
()));
model
.
put
(
"projectId"
,
String
.
valueOf
(
projectSeq
));
model
.
put
(
"projectId"
,
String
.
valueOf
(
projectSeq
));
model
.
put
(
"creatorId"
,
userId
);
model
.
put
(
"creatorId"
,
userId
);
model
.
put
(
"sourceType"
,
"building"
);
model
.
put
(
"instanceId"
,
resourceDTO
.
getCode
());
model
.
put
(
"instanceId"
,
resourceDTO
.
getCode
());
model
.
put
(
"name"
,
resourceDTO
.
getName
());
model
.
put
(
"name"
,
resourceDTO
.
getName
());
this
.
baseMapper
.
insetSourceScene
(
model
);
this
.
baseMapper
.
insetSourceScene
(
model
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
09200d23
...
@@ -322,6 +322,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -322,6 +322,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
sourceScene
.
setSourceId
(
systemId
);
sourceScene
.
setSourceId
(
systemId
);
sourceScene
.
setSourceName
(
resourceDTO
.
getName
());
sourceScene
.
setSourceName
(
resourceDTO
.
getName
());
sourceScene
.
setSceneId
(
resourceDTO
.
getId
());
sourceScene
.
setSceneId
(
resourceDTO
.
getId
());
sourceScene
.
setSourceType
(
"system"
);
}
}
//TODO 获取画布下 绑定的装备点、摄像头,目前消防系统只能绑定装备,不能绑定摄像头(树未返回摄像头)
//TODO 获取画布下 绑定的装备点、摄像头,目前消防系统只能绑定装备,不能绑定摄像头(树未返回摄像头)
List
<
Map
>
children
=
(
List
<
Map
>)
parse
.
get
(
"children"
);
List
<
Map
>
children
=
(
List
<
Map
>)
parse
.
get
(
"children"
);
...
@@ -624,6 +625,10 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -624,6 +625,10 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
if
(
i
>
0
&&
syncSwitch
)
{
if
(
i
>
0
&&
syncSwitch
)
{
syncDataService
.
syncDeletedFireFightingSystem
(
Arrays
.
asList
(
id
));
syncDataService
.
syncDeletedFireFightingSystem
(
Arrays
.
asList
(
id
));
}
}
//删除系统图与设备关系表
QueryWrapper
<
SourceScene
>
ssWrapper
=
new
QueryWrapper
<>();
ssWrapper
.
eq
(
"sourceId"
,
id
);
sourceSceneMapper
.
delete
(
ssWrapper
);
//删除动态关联表单实例数据
//删除动态关联表单实例数据
if
(
entity
.
getInstanceId
()
!=
null
)
{
if
(
entity
.
getInstanceId
()
!=
null
)
{
instanceService
.
remove
(
instanceService
.
remove
(
...
...
amos-boot-system-equip/src/main/resources/changelog/wl-3.0.1.xml
View file @
09200d23
...
@@ -2354,4 +2354,40 @@
...
@@ -2354,4 +2354,40 @@
ALTER TABLE wl_equipment_specific_alarm_log ADD COLUMN `confirm_type_name` varchar(255) DEFAULT NULL COMMENT '确认类型名称前端回显用';
ALTER TABLE wl_equipment_specific_alarm_log ADD COLUMN `confirm_type_name` varchar(255) DEFAULT NULL COMMENT '确认类型名称前端回显用';
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"my"
id=
"16504254290001-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"wl_source_scene"
columnName=
"source_type"
/>
</not>
</preConditions>
<comment>
wl_source_scene add column source_type 添加组态页面关系表数据源类型字段
</comment>
<sql>
ALTER TABLE `wl_source_scene`
ADD COLUMN `source_type` varchar(255) NULL COMMENT '数据源类型:building(建筑类),system(系统类)' AFTER `source_name`;
UPDATE wl_source_scene ss
SET ss.source_type = 'building'
WHERE
(
SELECT
count(1)
FROM
wl_warehouse_structure ws
WHERE
ws.id = ss.source_id
) > 0;
UPDATE wl_source_scene ss
SET ss.source_type = 'system'
WHERE
(
SELECT
count(1)
FROM
f_fire_fighting_system ffs
WHERE
ffs.id = ss.source_id
) > 0;
</sql>
</changeSet>
</databaseChangeLog>
</databaseChangeLog>
\ No newline at end of file
amos-boot-system-equip/src/main/resources/mapper/Building.xml
View file @
09200d23
...
@@ -104,6 +104,7 @@
...
@@ -104,6 +104,7 @@
(id,
(id,
source_id,
source_id,
source_name,
source_name,
source_type,
project_id,
project_id,
scene_id,
scene_id,
point_in_scene,
point_in_scene,
...
@@ -114,6 +115,7 @@
...
@@ -114,6 +115,7 @@
#{id},
#{id},
#{instanceId},
#{instanceId},
#{name},
#{name},
#{sourceType},
#{projectId},
#{projectId},
#{sceneId},
#{sceneId},
null,
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