diff --git a/src/main/resources/mybatis/datasource/map/MapKeyProjectMapper.xml b/src/main/resources/mybatis/datasource/map/MapKeyProjectMapper.xml index f266ca86..04a66868 100644 --- a/src/main/resources/mybatis/datasource/map/MapKeyProjectMapper.xml +++ b/src/main/resources/mybatis/datasource/map/MapKeyProjectMapper.xml @@ -84,11 +84,13 @@ v.LONGITUDE, v.LATITUDE, u.CORPINFO_ID, - v.VIDEONAME as MAP_POINT_NAME + v.VIDEONAME as MAP_POINT_NAME, + if(r.ONLINE_STATUS is null, '-1',if(r.ONLINE_STATUS = '1','1','0')) as ONLINE_STATUS FROM `qa-gwj-regulatory`.bus_videomanager v LEFT JOIN `qa-gwj-regulatory`.bus_outsourced o on v.OUTSOURCED_ID = o.OUTSOURCED_ID LEFT JOIN `qa-gwj-prevention`.vi_user_all u on o.CREATOR = u.USER_ID + LEFT JOIN `qa-gwj-regulatory`.bus_video_resources r on v.VIDEO_RESOURCES_ID = r.VIDEO_RESOURCES_ID and r.ISDELETE = '0' WHERE v.ISDELETE = '0' AND o.STATE = '1'