Commit 3078e08a authored by maoying's avatar maoying

Merge branch 'developer' of http://172.16.10.76/moa/amos-boot-biz into developer

parents 8593afa9 d505f2fd
...@@ -219,34 +219,39 @@ ...@@ -219,34 +219,39 @@
</if> </if>
<if test="id == null"> <if test="id == null">
union all union all
select SELECT
'component' as template, 'component' AS template,
true as openStatus, TRUE AS openStatus,
if(sou.id is null,0,1) as isBinding, IF
if(vid.code is null,vid.name,concat(vid.name,'(',vid.code,')')) as displayName, (
'{\"width\": 42, \"height\": 42}'as initStyle, ( SELECT ss.id FROM wl_source_scene ss WHERE ss.video_in_scene LIKE CONCAT( '%', vid.id, '%' ) ) IS NULL,
'CommonEquip' as componentName, 0,
vid.id as sequenceNbr, 1
'equipment' as componentKey, ) AS isBinding,
'video' as `key`, IF
img as imgPath, ( vid.CODE IS NULL, vid.NAME, concat( vid.NAME, '(', vid.CODE, ')' ) ) AS displayName,
vid.code as equipCode, '{\"width\": 42, \"height\": 42}' AS initStyle,
vis.source_id as parentId, 'CommonEquip' AS componentName,
vid.id as equipId, vid.id AS sequenceNbr,
vid.code as categoryCode, 'equipment' AS componentKey,
vid.name as equipName, 'video' AS `key`,
'' as equipSyetemId, img AS imgPath,
'' as iotCode, vid.CODE AS equipCode,
'1000000000000000'as groupId, vis.source_id AS parentId,
'监控摄像' as groupName, vid.id AS equipId,
url as ip , vid.CODE AS categoryCode,
vid.NAME AS equipName,
'' AS equipSyetemId,
'' AS iotCode,
'1000000000000000' AS groupId,
'监控摄像' AS groupName,
url AS ip,
token, token,
stru.full_name as address stru.full_name AS address
from FROM
wl_video as vid wl_video AS vid
join wl_video_source as vis on vid.id = vis.video_id JOIN wl_video_source AS vis ON vid.id = vis.video_id
join wl_source_scene as sou on sou.video_in_scene like CONCAT('%',vid.id ,'%' ) JOIN wl_warehouse_structure AS stru ON stru.id = vis.source_id
join wl_warehouse_structure as stru on stru.id = sou.source_id
</if> </if>
</select> </select>
<select id="get3dPointData" resultType="com.yeejoin.equipmanage.common.entity.vo.PointTreeVo"> <select id="get3dPointData" resultType="com.yeejoin.equipmanage.common.entity.vo.PointTreeVo">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment