重点工程地图视频点位显示是否在线

liujun-2024-05-23-接口漏洞修复
limingyu 2024-05-07 08:39:19 +08:00
parent f706202c06
commit 40a74e663d
2 changed files with 16 additions and 2 deletions

View File

@ -829,7 +829,8 @@
(SELECT count( 1 ) FROM `qa-gwj-prevention`.BUS_KEYPROJECTPUNISH k left join `qa-gwj-prevention`.bus_keyprojectcheck kjc on kjc.KEYPROJECTCHECK_ID = k.KEYPROJECTCHECK_ID WHERE kjc.OUTSOURCED_ID =f.OUTSOURCED_ID AND k.ISDELETE = '0' ) as KEY_COUNT,
vua.NAME OUTSOURCED_CREATOR_NAME,
ifnull(vac.CORP_NAME,'秦港股份有限公司') CORP_NAME,
p.`NAME` as UNITS_PIC_NAME
p.`NAME` as UNITS_PIC_NAME,
onlineCount.ONLINE_COUNT as VIDEO_ONLINE_COUNT
from
<include refid="tableName"></include> f
left join bus_units b using (UNITS_ID)
@ -840,6 +841,17 @@
LEFT JOIN `qa-gwj-prevention`.vi_user_all vua on f.CREATOR = vua.USER_ID
LEFT JOIN `qa-gwj-regulatory`.vi_all_corp vac on vua.CORPINFO_ID = vac.CORPINFO_ID
left join `qa-gwj-regulatory`.bus_personnelmanagement p on p.PERSONNELMANAGEMENT_ID = f.UNITS_PIC
LEFT JOIN (SELECT
bo.OUTSOURCED_ID,
COUNT( bvr.VIDEO_RESOURCES_ID ) as ONLINE_COUNT
FROM
`qa-gwj-regulatory`.bus_outsourced bo
LEFT JOIN `qa-gwj-regulatory`.bus_videomanager bv ON bv.OUTSOURCED_ID = bo.OUTSOURCED_ID
AND bv.ISDELETE = '0'
LEFT JOIN bus_video_resources bvr ON bv.VIDEO_RESOURCES_ID = bvr.VIDEO_RESOURCES_ID
AND bvr.ISDELETE = '0' AND bvr.ONLINE_STATUS = '0'
GROUP BY
bo.OUTSOURCED_ID) onlineCount on onlineCount.OUTSOURCED_ID = f.OUTSOURCED_ID
where f.ISDELETE = '0'
<if test="pd.CORPINFO_ID != null and pd.CORPINFO_ID != ''"><!-- 关键词检索 -->
and

View File

@ -296,9 +296,11 @@
<!-- 列表 -->
<select id="dataApplistPage" parameterType="page" resultType="pd">
select
<include refid="Field"></include>
<include refid="Field"></include>,
if(vr.ONLINE_STATUS is null, '未上线',if(vr.ONLINE_STATUS = '0', '在线' ,'离线')) as ONLINE_STATUS
from
<include refid="tableName"></include> f
left join `qa-gwj-regulatory`.bus_video_resources vr on vr.VIDEO_RESOURCES_ID = f.VIDEO_RESOURCES_ID and vr.ISDELETE = '0'
where f.ISDELETE = '0'
<if test="pd.OUTSOURCED_ID != null and pd.OUTSOURCED_ID != ''"><!-- 关键词检索 -->
and f.OUTSOURCED_ID=#{pd.OUTSOURCED_ID}