DataRealTimeMapper.java 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package com.usky.backend.mapper;
  2. import com.usky.backend.domain.DataRealTime;
  3. //import com.usky.backend.domain.request.DeviceDataInfoVO;
  4. import com.usky.backend.domain.MetricItemVo;
  5. import com.usky.backend.domain.DataHistoryAvergerVO;
  6. import com.usky.backend.domain.DataHistoryTotalVO;
  7. import com.usky.common.mybatis.core.CrudMapper;
  8. import org.apache.ibatis.annotations.Param;
  9. import org.springframework.stereotype.Repository;
  10. import java.util.List;
  11. /**
  12. * <p>
  13. * 实时数据表 Mapper 接口
  14. * </p>
  15. *
  16. * @author ya
  17. * @since 2023-06-07
  18. */
  19. @Repository
  20. public interface DataRealTimeMapper extends CrudMapper<DataRealTime> {
  21. // int insertHistoryTable(@Param("dataInfo") DeviceDataInfoVO dataInfo, @Param("tableName") String tableName, @Param("curTime") LocalDateTime curTime);
  22. List<MetricItemVo> QueryHistoryData(@Param("deviceId") String deviceId,@Param("metric") String metric,@Param("startTime") String startTime,@Param("endTime") String endTime, @Param("tableName") String tableName);
  23. String QueryDeviceTypeAbbrevia(@Param("deviceType") String deviceType);
  24. List<DataHistoryTotalVO> QueryEachHistoryTotalData(@Param("tableName") String tableName,
  25. @Param("startTime") String startTime,
  26. @Param("endTime") String endTime,
  27. @Param("productCode") String productCode,
  28. @Param("deviceIdList") List<String> deviceIdList,
  29. @Param("attributeNameList") List<String> attributeNameList);
  30. List<DataHistoryTotalVO> QueryTotalHistoryTotalData(@Param("tableName") String tableName,
  31. @Param("startTime") String startTime,
  32. @Param("endTime") String endTime,
  33. @Param("productCode") String productCode,
  34. @Param("attributeNameList") List<String> attributeNameList);
  35. List<DataHistoryAvergerVO> QueryEachHistoryAvrgData(@Param("leftLen") Integer leftLen,
  36. @Param("tableName") String tableName,
  37. @Param("startTime") String startTime,
  38. @Param("endTime") String endTime,
  39. @Param("productCode") String productCode,
  40. @Param("deviceIdList") List<String> deviceIdList,
  41. @Param("attributeNameList") List<String> attributeNameList);
  42. List<DataHistoryAvergerVO> QueryTotalOptHistoryAvrgData(@Param("leftLen") Integer leftLen,
  43. @Param("tableName") String tableName,
  44. @Param("startTime") String startTime,
  45. @Param("endTime") String endTime,
  46. @Param("productCode") String productCode,
  47. @Param("deviceIdList") List<String> deviceIdList,
  48. @Param("attributeNameList") List<String> attributeNameList);
  49. List<DataHistoryAvergerVO> QueryTotalHistoryAvrgData(@Param("leftLen") Integer leftLen,
  50. @Param("tableName") String tableName,
  51. @Param("startTime") String startTime,
  52. @Param("endTime") String endTime,
  53. @Param("productCode") String productCode,
  54. @Param("attributeNameList") List<String> attributeNameList);
  55. }