(select DICT_DATA_VALUE from systemctl_dictionarie_value where IS_DELETED=0 and AGENCY_CODE='JXIOP' and DICT_CODE='COMPANY_LEVEL' and privilege_company.`LEVEL`=systemctl_dictionarie_value.DICT_DATA_KEY )levelName,
(select DICT_DATA_VALUE from systemctl_dictionarie_value where IS_DELETED=0 and AGENCY_CODE='JXIOP' and DICT_CODE='COMPANY_TYPE' and privilege_company.COMPANY_TYPE=systemctl_dictionarie_value.DICT_DATA_KEY) companyTypeName
from privilege_company where IS_DELETED=0 and AGENCY_CODE='JXIOP'
<iftest="dto.companyName!=null">
and privilege_company.COMPANY_NAME like concat(concat("%",#{dto.companyName}),"%")
</if>
<iftest="dto.level!=null">
and privilege_company.LEVEL=#{dto.level}
</if>
<iftest="dto.companyType!=null">
and privilege_company.COMPANY_TYPE=#{dto.companyType}
</if>
<iftest="dto.orgCode!=null">
and privilege_company.ORG_CODE like concat(concat(#{dto.orgCode}),"%")
@@ -1897,9 +1903,17 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -1897,9 +1903,17 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
//
//
// return numMap;
// return numMap;
Stringsql=" SELECT * FROM indicators_"+gatewayId+" WHERE (equipmentIndexName ='待机' or equipmentIndexName ='故障停机' or equipmentIndexName ='告警运行' or equipmentIndexName ='限额运行' or equipmentIndexName ='停机') and value = 'true'";
StringtotalSql="SELECT * FROM indicators_"+gatewayId+" WHERE frontModule = '逆变器' and equipmentIndexName = '运行'";
Stringsql=" SELECT * FROM indicators_"+gatewayId+" WHERE (equipmentIndexName ='待机' or equipmentIndexName ='故障停机' or equipmentIndexName ='告警运行' or equipmentIndexName ='限额运行' or equipmentIndexName ='停机' or equipmentIndexName = '通讯故障' or equipmentIndexName = '降额运行') and value = 'true'";
@@ -2068,9 +2072,34 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -2068,9 +2072,34 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
returndeaviationRateDtoPage;
returndeaviationRateDtoPage;
}
}
publicvoidaddNbqAlarmEvent(StringgatewayId){
Stringsql=" SELECT * FROM indicators_"+gatewayId+" WHERE (equipmentIndexName ='待机' or equipmentIndexName ='停机' or equipmentIndexName ='告警运行' or equipmentIndexName ='限额运行' or equipmentIndexName ='降额运行' or equipmentIndexName ='故障停机'or equipmentIndexName ='通讯故障'or equipmentIndexName ='运行') and value = 'true'";
Stringsql=" SELECT * FROM indicators_"+stationBasic.getFanGatewayId()+" WHERE (equipmentIndexName ='待机' or equipmentIndexName ='停机' or equipmentIndexName ='告警运行' or equipmentIndexName ='限额运行' or equipmentIndexName ='降额运行' or equipmentIndexName ='故障停机'or equipmentIndexName ='通讯故障'or equipmentIndexName ='运行') and value = 'true'";
Stringsql="SELECT * FROM indicators_"+gatewayId+" WHERE frontModule='逆变器' and value = 'true' and (equipmentIndexName ='运行' or equipmentIndexName ='待机' or equipmentIndexName ='故障停机' or equipmentIndexName ='告警运行' or equipmentIndexName ='限额运行' or equipmentIndexName ='停机' or equipmentIndexName = '通讯故障' or equipmentIndexName = '降额运行') ;";