package com.flightfeather.monitor.mapper; import com.flightfeather.monitor.pojo.*; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import java.util.List; @Mapper public interface FugitiveDustMapper{ List conditonQueryDustHistoryData(String siteName, String mnCode,String beginTime, String endTime,@Param("scenarioType") String[] scenarioType) ; @Select("select DISTINCT typename from ja_t_dust_site_info") List scenarioData(); @Select("select DISTINCT name from ja_t_dust_site_info ") List allSiteName(); List analysisdata(String siteName, String beginTime, String endTime,String type); List analysisByTime(String siteName, String beginTime, String endTime); @Select("select DISTINCT exception,exception_type from dust_exception_data") List getExceptionType(); List getExceptionData(String siteName, @Param("exceptionType")String[] exceptionType, String beginTime, String endTime); List getExceptionSitenameAndCode(String exceptionType, String beginTime, String endTime); @Select("select count(*) from dust_exception_data as a join ja_t_dust_site_info as b on a.mn_code = b.mn_code where exception_type = #{exceptionType} and (begin_time between #{beginTime} and #{endTime} or end_time between #{beginTime} and #{endTime})") Integer exceptionNum(String exceptionType, String beginTime, String endTime); List conditonQueryHistoryData(String siteName, String beginTime, String endTime); @Select("select DISTINCT mn_code from dust_exception_data") List exceptionSiteNum(); /*新增审计内容*/ @Insert("insert into audit_info(exception_id,checker,checker_content,enterprise_content,audit_status,create_time,update_time) values(#{exceptionId},#{checker},#{checkerContent},#{enterpriseContent},#{auditStatus},#{createTime},#{updateTime})") void insert(AuditInfo auditInfo); @Select("select * from audit_info") List getAuditAllData(); void update(AuditInfo auditInfo); List getHasAuditedData(String beginTime, String endTime); @Insert("insert into dust_global_setting(user,create_time,begin_time,end_time,region,is_regular_time) values( #{user},#{createTime},#{beginTime},#{endTime},#{region},#{isRegularTime})") void setting(DustDataAccessSetting dustDataAccessSetting); List getSiteNameByTimeAndExceptionType(@Param("exceptionType")String[] exceptionType, String beginTime, String endTime); List analysisdataByType(String month,String type); List analysisdataByTimeAndType(String beginTime, String endTime, String type); }