ÎļþÃû´Ó src/main/resources/com/job/zsc/mapper/FugitiveDustMapper.xml ÐÞ¸Ä |
| | |
| | | <!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> |
| | |
| | | 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> |
| | |
| | | </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 != ''"> |
| | |
| | | |
| | | |
| | | <!-- æ ¹æ®ç«ç¹åååæ¶æ®µè¿è¡ç»è®¡åæ--> |
| | | <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 |
| | | ( |
| | |
| | | |
| | | |
| | | <!--æ¡ä»¶æ¥è¯¢å¼å¸¸æ°æ® å ä¸äºå®¡è®¡ä¿¡æ¯--> |
| | | <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 |
| | |
| | | |
| | | |
| | | <!-- æ ¹æ®ææ®µæ¶é´å
æä¸ªå¼å¸¸ç±»åæ¥è¯¢å¯¹åºçåºéºåç§°å设å¤ç¼å·--> |
| | | <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 |
| | | |
| | |
| | | </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> |
| | |
| | | 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> |
| | |
| | | </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> |
| | |
| | | </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"> |
| | |
| | | </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"> |