ComprehensiveSupervisionMapper.java 3.9 KB
package com.skua.modules.equipment.mapper;


import com.skua.modules.equipment.dto.*;
import com.skua.modules.equipment.vo.AlarmVo;
import com.skua.modules.equipment.vo.MetricVo;
import com.skua.modules.equipment.vo.StructDictVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ComprehensiveSupervisionMapper {

    String selectDeviceName(@Param("factoryId") String factoryId);

    MetricVo selectMetric(@Param("metricUidTag") String metricUidTag,@Param("factoryId") String factoryId);

    String selectSJGM(@Param("factoryId") String factoryId);

    List<AlarmVo> selectAlarms();

    List<AlarmVo> selectInAlarms();

    List<AlarmDto> selectDhByMonths(@Param("list") List<String> months, @Param("factoryId") String factoryId);

    List<AlarmDto> selectAllDh(@Param("factoryId") String factoryId);

    List<AlarmDto> selectDhByStartAndEnd(@Param("startTime") String startTime, @Param("endTime") String endTime,@Param("factoryId") String factoryId);

    AlarmDto selectDhByYear(String year);

    List<String> selectDataIdsByMonth( @Param("month") String month ,@Param("departId")String departId);

    List<ReportItemCustomDto> selectItemCustom();

    List<ReportItemCustomDto> selectValueByDataId(@Param("list") List<String> dataIds);

    ReportItemCustomDto selectVByDataIdAndPid(@Param("list") List<String> dataIds, @Param("id") String id);

    String selectZyhByDataIds(@Param("list") List<String> dataIds);

    List<AlarmDto> selectAllYh();
    //总药耗趋势
    List<AlarmDto> selectYhByStartTimeAndEndTime(@Param("startTime") String startTime, @Param("endTime") String endTime ,  @Param("departId") String departId);

    List<ReportItemCustomValueDto> selectItemDetail(@Param("list") List<String> dataIds);

    String selectXnjByDataIds(@Param("list") List<String> dataIds);

    String selectGwnByTime(String s);

    String selectTyByDataIds(@Param("list")List<String> dataIds);

    String selectBodByTime(String s);

    String selectTnByTime(String s);

    String selectClByDataIds(@Param("list")List<String> dataIds);

    List<String> selectDataIdsByDay(String seven);

    List<ReportItemCustomValueDetailDto> selectVByDay(@Param("list") List<String> dataIds);

    List<ReportItemCustomValueDetailDto> selectVByMonth(@Param("list") List<String> dataIds);

    List<ReportItemCustomValueDto> selectDetailVByMonth(@Param("list")List<String> dataIds, @Param("id") String s);

    List<StructDictVo> structDictList();

    List<StructDictVo> metricList(String id);

    String selectMetricNameById(String id);


    /**
     * 月度电耗水耗统计
     *
     * @return
     */
    ConsumptionDto selectMonthlyPowerConsumption(@Param("dataStr") String dataStr, @Param("departIds") List<String> departIds);


    /**
     * 月度药耗统计
     *
     * @return
     */
    DrugConsumptionDto selectMonthlyDrugConsumptionStatistics(@Param("dataStr") String dataStr, @Param("departIds") List<String> departIds);


    /**
     * 天出水量统计
     *
     * @return
     */
    Integer selectShByDay(@Param("date") String date, @Param("departIds") List<String> departIds);


    /**
     * 查询某年 每日警告的次数列表
     *
     * @param year
     * @returnt
     */
    List<AlarmCountDto> selectCountAlarmByYearForDay(@Param("year") String year, @Param("departIds") List<String> departIds);


    /**
     * 根据时间查询水质变化
     *
     * @return
     */
    List<QualityChangeDto> qualityChange(List<String> days, String code, @Param("departIds") List<String> departIds);

    /**
     * 获取月度处理水量
     * @param list
     * @param factoryId
     * @return
     */
    List<Map<String, Object>> selectClslByMonths(List<String> list, String factoryId);

    /**
     * 获取所有月份处理水量
     * @param factoryId
     * @return
     */
    List<AlarmDto> selectAllClsl(String factoryId);
}