"SELECT `health_index` AS healthIndex, created_time AS createdTime, analysis_time AS analysisTime, station,equipment_name AS equipmentName, ( CASE HEALTH_LEVEL WHEN '危险' THEN 3 WHEN '警告' THEN 2 WHEN '注意' THEN 1 ELSE 0 END ) AS status FROM analysis_data.fan_health_index_day WHERE analysis_obj_type = #{analysisObjType} and analysis_type = #{analysisType}"+
"<if test='endTimeTop!= null'> and ts <= #{endTimeTop} </if> "+
"<if test='startTimeTop!= null'> and ts >= #{startTimeTop} </if> "+
"<if test='area!= null'> AND area = #{area} </if> "+
"<if test='indexAddress!= null'> AND index_address = #{indexAddress} </if> "+
"SELECT `health_index` AS healthIndex, created_time AS createdTime, analysis_time AS analysisTime, station,equipment_name AS equipmentName, ( CASE HEALTH_LEVEL WHEN '危险' THEN 3 WHEN '警告' THEN 2 WHEN '注意' THEN 1 ELSE 0 END ) AS status FROM analysis_data.fan_health_index_hour WHERE analysis_obj_type = #{analysisObjType} and analysis_type = #{analysisType}"+
"<if test='endTimeTop!= null'> and ts <= #{endTimeTop} </if> "+
"<if test='startTimeTop!= null'> and ts >= #{startTimeTop} </if> "+
"<if test='area!= null'> AND area = #{area} </if> "+
"<if test='indexAddress!= null'> AND index_address = #{indexAddress} </if> "+
"SELECT `health_index` AS healthIndex, created_time AS createdTime, analysis_time AS analysisTime, station,equipment_name AS equipmentName, ( CASE HEALTH_LEVEL WHEN '危险' THEN 3 WHEN '警告' THEN 2 WHEN '注意' THEN 1 ELSE 0 END ) AS status FROM analysis_data.fan_health_index_data WHERE analysis_obj_type = #{analysisObjType} and analysis_type = #{analysisType}"+
"<if test='endTimeTop!= null'> and ts <= #{endTimeTop} </if> "+
"<if test='startTimeTop!= null'> and ts >= #{startTimeTop} </if> "+
"<if test='area!= null'> AND area = #{area} </if> "+
"<if test='indexAddress!= null'> AND index_address = #{indexAddress} </if> "+
"SELECT `health_index` AS healthIndex, created_time AS createdTime, analysis_time AS analysisTime, station,equipment_name AS equipmentName, ( CASE HEALTH_LEVEL WHEN '危险' THEN 3 WHEN '警告' THEN 2 WHEN '注意' THEN 1 ELSE 0 END ) AS status FROM analysis_data.fan_health_index_moment WHERE analysis_obj_type = #{analysisObjType} and analysis_type = #{analysisType}"+
"<if test='endTimeTop!= null'> and ts <= #{endTimeTop} </if> "+
"<if test='startTimeTop!= null'> and ts >= #{startTimeTop} </if> "+
"<if test='area!= null'> AND area = #{area} </if> "+
"<if test='indexAddress!= null'> AND index_address = #{indexAddress} </if> "+
"SELECT `health_index` AS healthIndex, created_time AS createdTime, analysis_time,station,equipment_name AS equipmentName, ( CASE HEALTH_LEVEL WHEN '危险' THEN 3 WHEN '警告' THEN 2 WHEN '注意' THEN 1 ELSE 0 END ) AS status"+
"FROM analysis_data.pv_health_index_day WHERE and analysis_obj_type = #{analysisObjType} and analysis_type = #{analysisType}"+
"<if test='endTimeTop!= null'> and ts <= #{endTimeTop} </if> "+
"<if test='startTimeTop!= null'> and ts >= #{startTimeTop} </if> "+
"<if test='area!= null '> AND area = #{area} </if> "+
"<if test='indexAddress!= null '> AND index_address = #{indexAddress} </if> "+
"SELECT `health_index` AS healthIndex, created_time AS createdTime, analysis_time,station,equipment_name AS equipmentName, ( CASE HEALTH_LEVEL WHEN '危险' THEN 3 WHEN '警告' THEN 2 WHEN '注意' THEN 1 ELSE 0 END ) AS status"+
"FROM analysis_data.pv_health_index_hour WHERE and analysis_obj_type = #{analysisObjType} and analysis_type = #{analysisType}"+
"<if test='endTimeTop!= null'> and ts <= #{endTimeTop} </if> "+
"<if test='startTimeTop!= null'> and ts >= #{startTimeTop} </if> "+
"<if test='area!= null '> AND area = #{area} </if> "+
"<if test='indexAddress!= null '> AND index_address = #{indexAddress} </if> "+
"SELECT `health_index` AS healthIndex, created_time AS createdTime, analysis_time,station,equipment_name AS equipmentName, ( CASE HEALTH_LEVEL WHEN '危险' THEN 3 WHEN '警告' THEN 2 WHEN '注意' THEN 1 ELSE 0 END ) AS status"+
"FROM analysis_data.pv_health_index_data WHERE and analysis_obj_type = #{analysisObjType} and analysis_type = #{analysisType}"+
"<if test='endTimeTop!= null'> and ts <= #{endTimeTop} </if> "+
"<if test='startTimeTop!= null'> and ts >= #{startTimeTop} </if> "+
"<if test='area!= null '> AND area = #{area} </if> "+
"<if test='indexAddress!= null '> AND index_address = #{indexAddress} </if> "+
"SELECT `health_index` AS healthIndex, created_time AS createdTime, analysis_time,station,equipment_name AS equipmentName, ( CASE HEALTH_LEVEL WHEN '危险' THEN 3 WHEN '警告' THEN 2 WHEN '注意' THEN 1 ELSE 0 END ) AS status"+
"FROM analysis_data.pv_health_index_moment WHERE and analysis_obj_type = #{analysisObjType} and analysis_type = #{analysisType}"+
"<if test='endTimeTop!= null'> and ts <= #{endTimeTop} </if> "+
"<if test='startTimeTop!= null'> and ts >= #{startTimeTop} </if> "+
"<if test='area!= null '> AND area = #{area} </if> "+
"<if test='indexAddress!= null '> AND index_address = #{indexAddress} </if> "+