"SELECT distinct `health_index` AS healthIndex,anomaly,rec_date as recDate, `health_index` AS `value`, substr(analysis_time,1,10) as analysisTime, station,equipment_name AS equipmentName,point_name as pointName, ( 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 org_code is not null"+
"SELECT distinct `health_index` AS healthIndex,anomaly,rec_date as recDate, `health_index` AS `value`, substr(analysis_time,1,10) as analysisTime, station,equipment_name AS equipmentName,point_name as pointName, ( 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 org_code is not null"+
"<if test='endTimeTop!= null'> and rec_date <= #{endTimeTop} </if> "+
"<if test='endTimeTop!= null'> and rec_date <= #{endTimeTop} </if> "+
"<if test='startTimeTop!= null'> and rec_date >= #{startTimeTop} </if> "+
"<if test='startTimeTop!= null'> and rec_date >= #{startTimeTop} </if> "+
"<if test='area!= null'> AND area = #{area} </if> "+
"<if test='area!= null'> AND area = #{area} </if> "+
"SELECT distinct `health_index` AS healthIndex,anomaly,rec_date as recDate, `health_index` AS `value`, substr(analysis_time,1,10) as analysisTime, station,equipment_name AS equipmentName,point_name as pointName, ( 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 org_code is not null"+
"SELECT distinct `health_index` AS healthIndex,anomaly,rec_date as recDate, `health_index` AS `value`, substr(analysis_time,1,10) as analysisTime, station,equipment_name AS equipmentName,point_name as pointName, ( 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 org_code is not null"+
"<if test='endTimeTop!= null'> and rec_date <= #{endTimeTop} </if> "+
"<if test='endTimeTop!= null'> and rec_date <= #{endTimeTop} </if> "+
"<if test='startTimeTop!= null'> and rec_date >= #{startTimeTop} </if> "+
"<if test='startTimeTop!= null'> and rec_date >= #{startTimeTop} </if> "+
"<if test='area!= null'> AND area = #{area} </if> "+
"<if test='area!= null'> AND area = #{area} </if> "+
@@ -49,7 +49,7 @@ public interface PvHealthIndexHourMapper extends BaseMapper<PvHealthIndexHour> {
...
@@ -49,7 +49,7 @@ public interface PvHealthIndexHourMapper extends BaseMapper<PvHealthIndexHour> {
@Select("<script>"+
@Select("<script>"+
"SELECT distinct `health_index` AS healthIndex,rec_date as recDate, `health_index` AS `value`, rec_date AS recDate, anomaly, substr(analysis_time,1,10) as analysisTime,station,equipment_name AS equipmentName, point_name as pointName, index_address as indexAddress, ( CASE HEALTH_LEVEL WHEN '危险' THEN 3 WHEN '警告' THEN 2 WHEN '注意' THEN 1 ELSE 0 END ) AS status"+
"SELECT distinct `health_index` AS healthIndex,rec_date as recDate, `health_index` AS `value`, rec_date AS recDate, anomaly, substr(analysis_time,1,10) as analysisTime,station,equipment_name AS equipmentName, point_name as pointName, index_address as indexAddress, ( 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 analysis_obj_type = #{analysisObjType} and org_code is not null"+
" FROM analysis_data.pv_health_index_hour WHERE analysis_obj_type = #{analysisObjType} and org_code is not null"+
"<if test='endTimeTop!= null'> and rec_date <= #{endTimeTop} </if> "+
"<if test='endTimeTop!= null'> and rec_date <= #{endTimeTop} </if> "+
"<if test='startTimeTop!= null'> and rec_date >= #{startTimeTop} </if> "+
"<if test='startTimeTop!= null'> and rec_date >= #{startTimeTop} </if> "+
"<if test='area!= null '> AND area = #{area} </if> "+
"<if test='area!= null '> AND area = #{area} </if> "+
@@ -49,7 +49,7 @@ public interface PvHealthIndexMomentMapper extends BaseMapper<PvHealthIndexMomen
...
@@ -49,7 +49,7 @@ public interface PvHealthIndexMomentMapper extends BaseMapper<PvHealthIndexMomen
@Select("<script>"+
@Select("<script>"+
"SELECT distinct `health_index` AS healthIndex,rec_date as recDate, `health_index` AS `value`, rec_date AS recDate, anomaly, substr(analysis_time,1,10) as analysisTime,station,equipment_name AS equipmentName, point_name as pointName, index_address as indexAddress, ( CASE HEALTH_LEVEL WHEN '危险' THEN 3 WHEN '警告' THEN 2 WHEN '注意' THEN 1 ELSE 0 END ) AS status"+
"SELECT distinct `health_index` AS healthIndex,rec_date as recDate, `health_index` AS `value`, rec_date AS recDate, anomaly, substr(analysis_time,1,10) as analysisTime,station,equipment_name AS equipmentName, point_name as pointName, index_address as indexAddress, ( 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 analysis_obj_type = #{analysisObjType} and org_code is not null"+
" FROM analysis_data.pv_health_index_moment WHERE analysis_obj_type = #{analysisObjType} and org_code is not null"+
"<if test='endTimeTop!= null'> and rec_date <= #{endTimeTop} </if> "+
"<if test='endTimeTop!= null'> and rec_date <= #{endTimeTop} </if> "+
"<if test='startTimeTop!= null'> and rec_date >= #{startTimeTop} </if> "+
"<if test='startTimeTop!= null'> and rec_date >= #{startTimeTop} </if> "+
"<if test='area!= null '> AND area = #{area} </if> "+
"<if test='area!= null '> AND area = #{area} </if> "+