select t1.id,t1.type,t4.name as typeName,t1.resource_code as resourceCode,t1.resource_name as resourceName,t1.dev_brand as devBrand,t1.dev_model as devModel,t1.run_status as runStatus
from b_iot_info as t1
left join b_graphic_info as t3 on t1.resource_code = t3.resource_code
@ -113,13 +116,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select t1.id,t1.type,t1.resource_code as resourceCode,t1.resource_name as resourceName,t1.sort
,t1.status,t1.dev_brand as devBrand,t1.dev_model as devModel,t1.label,t1.manufacturer,t1.buy_time as buyTime
,t1.lon,t1.lat,t1.remarks,t1.monitor_path,t1.in_resources as inResources,t1.inside_area as insideArea,t2.cover_img as coverImg
,t2.introduction,t2.resource_describe as resourceDescribe
<iftest="type == 'wifi'">
,t3.on_line_num as onLineNum,
t3.download_speed as downloadSpeed,
t3.upload_speed as uploadSpeed
</if>
from b_iot_info as t1
left join b_graphic_info as t2 on t1.resource_code = t2.resource_code
<iftest="type == 'wifi'">
LEFT JOIN (SELECT resource_code,on_line_num,download_speed,upload_speed,MAX(statistics_time) statistics_time FROM d_wifi_data WHERE del_flag != '2' GROUP BY resource_code) t3 ON t1.resource_code = t3.resource_code
<spotDetailv-if="type == 'spotdetail' || type == 'carparkdetail' || type == 'bustopdetail' || type == 'railstationdetail' || type == 'airportdetail' || type == 'chargingdetail' || type == 'gastationdetail' || type == 'trafficdetail' || type == 'wharfdetail' || type == 'tourservicedetail' || type == 'entrepotdetail' || type == 'ticketdetail' || type == 'inletexitdetail' || type == 'cablewaydetail' || type == 'placedetail' || type == 'buildingdetail' || type == 'otherdetail' || type == 'flowerdetail' || type == 'halldetail' || type == 'exhibitdetail' || type == 'collectiondetail'" :detailData="propsData" :dataType="dataType" :interfacePath="interfacePath"></spotDetail>
<spotDetailv-if="type == 'spotdetail' || type == 'carparkdetail' || type == 'bustopdetail' || type == 'railstationdetail' || type == 'airportdetail' || type == 'chargingdetail' || type == 'gastationdetail' || type == 'trafficdetail' || type == 'wharfdetail' || type == 'tourservicedetail' || type == 'entrepotdetail' || type == 'ticketdetail' || type == 'inletexitdetail' || type == 'cablewaydetail' || type == 'placedetail' || type == 'buildingdetail' || type == 'otherdetail' || type == 'flowerdetail' || type == 'halldetail' || type == 'exhibitdetail' || type == 'collectiondetail' || type == 'emergmangedetail' || type == 'medicaladetail' || type == 'firecodetail' || type == 'takerefugedetail' || type == 'armeddetail'" :detailData="propsData" :dataType="dataType" :interfacePath="interfacePath"></spotDetail>