feiyu02
2023-10-19 f5d149a03739086d34c4dc2eb924bcf0e4330521
src/main/resources/com/flightfeather/monitor/mapper/FugitiveDustMapper.xml
ÎļþÃû´Ó src/main/resources/com/job/zsc/mapper/FugitiveDustMapper.xml ÐÞ¸Ä
@@ -2,7 +2,7 @@
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "https://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.job.zsc.mapper.FugitiveDustMapper">
<mapper namespace="com.flightfeather.monitor.mapper.FugitiveDustMapper">
    <update id="update">
        update audit_info
        <set>
@@ -30,7 +30,7 @@
        where exception_id = #{exceptionId}
    </update>
    <select id="conditonQueryDustHistoryData" resultType="com.job.zsc.pojo.DustSiteData">
    <select id="conditonQueryDustHistoryData" resultType="com.flightfeather.monitor.pojo.DustSiteData">
        select a.*,b.*
        from ja_t_dust_site_data_info as a join ja_t_dust_site_info as b on a.mn_code = b.mn_code
        <where>
@@ -55,7 +55,7 @@
    </select>
<!--分析数据-->
    <select id="analysisdata" resultType="com.job.zsc.pojo.AnalysisDustData">
    <select id="analysisdata" resultType="com.flightfeather.monitor.pojo.AnalysisDustData">
        select a.*,b.name,b.duty_company from dust_statistics_value as a join ja_t_dust_site_info as b on a.mn_code = b. mn_code
        <where>
            <if test="siteName !=null and siteName != ''">
@@ -70,7 +70,7 @@
    <!--    æ ¹æ®ç«™ç‚¹åå­—和时段进行统计分析-->
    <select id="analysisByTime" resultType="com.job.zsc.pojo.AnalysisDustData">
    <select id="analysisByTime" resultType="com.flightfeather.monitor.pojo.AnalysisDustData">
        select  c.name,d.*
        from ja_t_dust_site_info as c  join
        (
@@ -101,7 +101,7 @@
    <!--条件查询异常数据  åŠ ä¸Šäº†å®¡è®¡ä¿¡æ¯-->
    <select id="getExceptionData" resultType="com.job.zsc.pojo.DustExceptionData">
    <select id="getExceptionData" resultType="com.flightfeather.monitor.pojo.DustExceptionData">
        select *
        from (select a.* ,b.name,b.typename,b.address,b.duty_company
        from dust_exception_data as a join ja_t_dust_site_info as b on a.mn_code = b.mn_code
@@ -129,7 +129,7 @@
    <!--   æ ¹æ®æŸæ®µæ—¶é—´å†…某个异常类型查询对应的店铺名称和设备编号-->
    <select id="getExceptionSitenameAndCode" resultType="com.job.zsc.pojo.DustExceptionData">
    <select id="getExceptionSitenameAndCode" resultType="com.flightfeather.monitor.pojo.DustExceptionData">
        select DISTINCT b.name,a.mn_code
        from dust_exception_data as a join ja_t_dust_site_info as b on a.mn_code = b.mn_code
@@ -145,7 +145,7 @@
    </select>
<!--    æ¡ä»¶æŸ¥è¯¢åŽ†å²æ•°æ®-->
    <select id="conditonQueryHistoryData" resultType="com.job.zsc.pojo.DustSiteData">
    <select id="conditonQueryHistoryData" resultType="com.flightfeather.monitor.pojo.DustSiteData">
        select a.*,b.name,b.duty_Company
        from ja_t_dust_site_data_info as a join ja_t_dust_site_info as b on a.mn_code = b.mn_code
        <where>
@@ -160,7 +160,7 @@
        order by a.lst asc
    </select>
    <select id="getHasAuditedData" resultType="com.job.zsc.pojo.DustExceptionData">
    <select id="getHasAuditedData" resultType="com.flightfeather.monitor.pojo.DustExceptionData">
        select *
        from dust_exception_data as a left join audit_info as b on a.id = b.exception_id
        <where>
@@ -171,7 +171,7 @@
        </where>
    </select>
    <select id="getSiteNameByTimeAndExceptionType" resultType="com.job.zsc.pojo.DustExceptionData">
    <select id="getSiteNameByTimeAndExceptionType" resultType="com.flightfeather.monitor.pojo.DustExceptionData">
        select DISTINCT b.name
        from dust_exception_data as a join ja_t_dust_site_info as b on a.mn_code = b.mn_code
        <where>
@@ -188,7 +188,7 @@
        </where>
    </select>
    <select id="analysisdataByType" resultType="com.job.zsc.pojo.AnalysisDustData">
    <select id="analysisdataByType" resultType="com.flightfeather.monitor.pojo.AnalysisDustData">
        select a.*,b.name,b.duty_company from dust_statistics_value as a join ja_t_dust_site_info as b on a.mn_code = b. mn_code
        <where>
            <if test="month != null and month != null">
@@ -201,7 +201,7 @@
        </where>
    </select>
    <select id="analysisdataByTimeAndType" resultType="com.job.zsc.pojo.AnalysisDustData">
    <select id="analysisdataByTimeAndType" resultType="com.flightfeather.monitor.pojo.AnalysisDustData">
        select a.*,b.name,b.duty_company from dust_statistics_value as a join ja_t_dust_site_info as b on a.mn_code = b. mn_code
        <where>
            <if test="beginTime != null and endTime != null">