| | |
| | | |
| | | //两张表联合查询 |
| | | @Select("select a.MV_ID,a.MV_Stat_Code,b.DI_Name,a.MV_Create_Time,a.MV_Data_Time,a.MV_Fume_Concentration2\n" + |
| | | "from fd_t_minutevalue as a ,ea_t_device_info as b\n" + |
| | | "where a.MV_Stat_Code = b.DI_Code ") |
| | | "from fd_t_minutevalue as a join ea_t_device_info as b on a.MV_Stat_Code = b.DI_Code ") |
| | | List<FumeHistoryData> findall(); |
| | | |
| | | List<FumeHistoryData> conditionQuery(String devId, String beginTime, String endTime); |
| | |
| | | List<DeviceInfo> allDeviceInfo(); |
| | | |
| | | @Select("select a1.dev_id,b.DI_Name,a1.exception,a1.exception_type,a1.region,a1.begin_time,a1.end_time\n" + |
| | | "from abnormal_data as a1,ea_t_device_info as b\n" + |
| | | "where a1.dev_id = b.DI_Code") |
| | | "from abnormal_data as a1 join ea_t_device_info as b on a1.dev_id = b.DI_Code\n") |
| | | List<FumeAbnormalData> allAbnormalData(); |
| | | |
| | | List<FumeAbnormalData> conditonQueryAbnormalData(String devId, String beginTime, String endTime); |
| | |
| | | |
| | | //返回该异常类型对应的店铺名和设备编号 |
| | | @Select("select DISTINCT b1.DI_Name,a1.dev_id\n" + |
| | | "from abnormal_data as a1,ea_t_device_info as b1\n" + |
| | | "where a1.dev_id = b1.DI_Code and a1.exception_type = #{exceptionType} ") |
| | | "from abnormal_data as a1 join ea_t_device_info as b1 on a1.dev_id = b1.DI_Code\n" + |
| | | "where a1.exception_type = #{exceptionType}") |
| | | List<FumeAbnormalData> findShopName(String exceptionType); |
| | | |
| | | List<FumeHistoryData> exportByShopName(@Param("a") String[] shops, String exportBeginTime, String exportEndTime); |