zmc
2023-09-27 3543b001e3da2cb801d7dfa27b396db4edbfb740
src/main/java/com/job/zsc/mapper/FugitiveDustMapper.java
@@ -1,8 +1,7 @@
package com.job.zsc.mapper;
import com.job.zsc.pojo.AnalysisDustData;
import com.job.zsc.pojo.DustExceptionType;
import com.job.zsc.pojo.DustSiteData;
import com.job.zsc.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;
@@ -14,7 +13,7 @@
    List<DustSiteData> conditonQueryDustHistoryData(String siteName, String mnCode,String beginTime, String endTime,@Param("scenarioType") String[] scenarioType) ;
    @Select("select distinct Type_Name from monitor_site")
    @Select("select DISTINCT typename from ja_t_dust_site_info")
    List<DustSiteData> scenarioData();
    @Select("select DISTINCT name from ja_t_dust_site_info  ")
@@ -26,4 +25,38 @@
    @Select("select DISTINCT exception,exception_type from dust_exception_data")
    List<DustExceptionType> getExceptionType();
    List<DustExceptionData> getExceptionData(String siteName,  @Param("exceptionType")String[] exceptionType, String beginTime, String endTime);
    List<DustExceptionData> 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<DustSiteData> conditonQueryHistoryData(String siteName, String beginTime, String endTime);
    @Select("select DISTINCT mn_code from dust_exception_data")
    List<DustExceptionData> 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<AuditInfo> getAuditAllData();
    void update(AuditInfo auditInfo);
    List<DustExceptionData> 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<DustExceptionData> getSiteNameByTimeAndExceptionType(@Param("exceptionType")String[] exceptionType, String beginTime, String endTime);
    List<AnalysisDustData> analysisdataByType(String month,String type);
    List<AnalysisDustData> analysisdataByTimeAndType(String beginTime, String endTime, String type);
}