4fa12e3d sonin

设备运行台时 只展示A类设备

1 个父辈 8ed94dd8
...@@ -73,7 +73,7 @@ public class TestMetricInfoController { ...@@ -73,7 +73,7 @@ public class TestMetricInfoController {
73 JdbcTemplate masterDB = (JdbcTemplate)SpringContextUtils.getBean("master"); 73 JdbcTemplate masterDB = (JdbcTemplate)SpringContextUtils.getBean("master");
74 String metricInfoSql = "select ei.equipment_name , t.metric_express1 'gzExpress' , t.metric_express2 'yxExpress' ,t.metric_express3 'tzExpress' from sys_monitor_metric_info t "; 74 String metricInfoSql = "select ei.equipment_name , t.metric_express1 'gzExpress' , t.metric_express2 'yxExpress' ,t.metric_express3 'tzExpress' from sys_monitor_metric_info t ";
75 metricInfoSql += " left join equipment_info ei on ei.id = t.equipment_code "; 75 metricInfoSql += " left join equipment_info ei on ei.id = t.equipment_code ";
76 metricInfoSql += " where t.metric_type = 1 and t.depart_id = '"+departId+"' and t.equipment_code > 0 " ; 76 metricInfoSql += " where t.metric_type = 1 and t.depart_id = '"+departId+"' and t.equipment_code > 0 and ei.equipment_level = '6bf727eb7e7cca6a95c694dab0036b2c'" ;
77 List<MetricInfoVO> metricInfoVOList = masterDB.query(metricInfoSql,new BeanPropertyRowMapper<MetricInfoVO>(MetricInfoVO.class)); 77 List<MetricInfoVO> metricInfoVOList = masterDB.query(metricInfoSql,new BeanPropertyRowMapper<MetricInfoVO>(MetricInfoVO.class));
78 78
79 //StringBuffer fields= new StringBuffer(); 79 //StringBuffer fields= new StringBuffer();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!