Ver código fonte

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

Ping 1 ano atrás
pai
commit
152d499a05
1 arquivos alterados com 2 adições e 4 exclusões
  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,
 		case b.PRIORITY WHEN 'low' then '一般应用' when 'important' then '重要应用' when 'high' then '核心应用' else '未知' end as PRIORITY,
 		d.name as app_type_name, 
 		d.name as app_type_name, 
 		e.name as net_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
 		wf.process_type_name,wrr.app_id
 	from (select * from v_bi_alm_all_alarm where alarm_object_type ='应用') a
 	from (select * from v_bi_alm_all_alarm where alarm_object_type ='应用') a
 	left join itm_app b
 	left join itm_app b
 	on a.alarm_object_id = b.ITM_APP_ID 
 	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_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
 	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 d on b.app_type=d.value
 	LEFT JOIN m_com_dict e on e.value = b.ITM_NETGROUP_ID 
 	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'
 	WHERE d.dict_index='app_type' and e.dict_index='itm_resources_netcode'