瀏覽代碼

修改bi_alm_group_by_time中应用的取数逻辑
应用的运维人员=itm_app.mantance_duty 应用没有国资归属部门

Ping 1 年之前
父節點
當前提交
152d499a05
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      all.sql

+ 2 - 4
all.sql

@@ -325,16 +325,14 @@ from
 		case b.PRIORITY WHEN 'low' then '一般应用' when 'important' then '重要应用' when 'high' then '核心应用' else '未知' end as PRIORITY,
 		d.name as app_type_name, 
 		e.name as net_name,
-		c.mantancevendor as mantancevendor,
-		c.yunweirenyuan as yunweirenyuan,
+		'' as mantancevendor,
+		b.mantance_duty as yunweirenyuan,
 		wf.process_type_name,wrr.app_id
 	from (select * from v_bi_alm_all_alarm where alarm_object_type ='应用') a
 	left join itm_app b
 	on a.alarm_object_id = b.ITM_APP_ID 
 	LEFT JOIN icm_bpm.t_work_resource_real wrr on wrr.object_id = a.alarm_object_id
 	left join icm_bpm.t_work_flow wf on wf.id=wrr.work_id
-	inner join bi_itm_hardware_resources c
-	on b.ITM_APP_NAME = c.servicename
 	LEFT JOIN m_com_dict d on b.app_type=d.value
 	LEFT JOIN m_com_dict e on e.value = b.ITM_NETGROUP_ID 
 	WHERE d.dict_index='app_type' and e.dict_index='itm_resources_netcode'