zmc
2023-08-29 1eecc1f678668ba11b15198be4f0057cf886e7f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package com.job.zsc.mapper;
 
import com.job.zsc.pojo.AnalysisDustData;
import com.job.zsc.pojo.DustExceptionData;
import com.job.zsc.pojo.DustExceptionType;
import com.job.zsc.pojo.DustSiteData;
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<DustSiteData> conditonQueryDustHistoryData(String siteName, String mnCode,String beginTime, String endTime,@Param("scenarioType") String[] scenarioType) ;
 
    @Select("select distinct Type_Name from monitor_site")
    List<DustSiteData> scenarioData();
 
    @Select("select DISTINCT name from ja_t_dust_site_info  ")
    List<DustSiteData> allSiteName();
 
    List<AnalysisDustData> analysisdata( String siteName,String beginTime, String endTime);
 
    List<AnalysisDustData> analysisByTime(String siteName, String beginTime, String endTime);
 
    @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();
}