WindturbinepointService.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. package com.gyee.sampleimpala.service.kudu;
  2. import com.gyee.sampleimpala.model.custom.TsPointData;
  3. import com.gyee.sampleimpala.model.kudu.Windturbinepoint;
  4. import com.baomidou.mybatisplus.extension.service.IService;
  5. import java.util.List;
  6. /**
  7. * <p>
  8. * 服务类
  9. * </p>
  10. *
  11. * @author chenmh
  12. * @since 2021-10-17
  13. */
  14. public interface WindturbinepointService extends IService<Windturbinepoint> {
  15. /**
  16. * 查询部件关联的测点
  17. *
  18. * @param wtId 风机编号
  19. * @param widget 部件代码
  20. * @return
  21. */
  22. List<Windturbinepoint> getAll(String wtId, String widget);
  23. /**
  24. * 通过场站和统一编码查询测点
  25. *
  26. * @param station 场站
  27. * @param uniformCode 统一编码
  28. * @return
  29. */
  30. List<Windturbinepoint> getAllByStationAndUniformCode(String station, String uniformCode);
  31. /**
  32. * 编辑数据
  33. *
  34. * @param obj
  35. * @return
  36. */
  37. boolean editItem(Windturbinepoint obj);
  38. /**
  39. * 新建数据
  40. *
  41. * @param obj
  42. * @return
  43. */
  44. boolean insertItem(Windturbinepoint obj);
  45. /**
  46. * 通过id删除数据
  47. *
  48. * @param id
  49. * @return
  50. */
  51. boolean deleteItem(String id);
  52. /**
  53. * 查询故障数据的原始点数据
  54. *
  55. * @param station 场站
  56. * @param wtId 风机Id
  57. * @param model 模型
  58. * @param widget 部件
  59. * @param startTs 开始时间
  60. * @param endTs 结束时间
  61. * @param type 测点类型
  62. */
  63. List<Object> getPointDataAll(String station, String wtId,
  64. String[] model, String[] widget, String startTs, String endTs, String type);
  65. /**
  66. * 通过point获取一条数据
  67. *
  68. * @param point
  69. * @return
  70. */
  71. Windturbinepoint getByPoint(String point);
  72. /**
  73. * 通过场风机编码站和统一编码查询测点
  74. *
  75. * @param station 场站
  76. * @param wtId 风机编码
  77. * @param uniformCode 统一编码
  78. * @return
  79. */
  80. List<Windturbinepoint> getListByStationAndWtIdAndUniformCode(String station, String wtId, String[] uniformCode);
  81. }