"SELECT `health_index` AS healthIndex,`health_index` AS `value`, anomaly, analysis_time AS analysisTime,point_name as pointName, 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}"+
"SELECT `health_index` AS healthIndex,`health_index` AS `value`, rec_date AS recDate,anomaly, analysis_time AS analysisTime,point_name as pointName, 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}"+
"<if test='endTimeTop!= null'> and ts <= #{endTimeTop} </if> "+
"<if test='startTimeTop!= null'> and ts >= #{startTimeTop} </if> "+
"<if test='area!= null'> AND area = #{area} </if> "+
...
...
@@ -20,10 +20,11 @@ public interface FanHealthIndexMomentMapper extends BaseMapper<FanHealthIndexMom