IAlarmTsService.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package com.gyee.power.fitting.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.gyee.power.fitting.model.AlarmTs;
  4. import com.gyee.power.fitting.model.vo.AlarmSimpleVo;
  5. import com.gyee.power.fitting.model.vo.AlarmTag;
  6. import com.gyee.power.fitting.model.vo.AlarmTsVo;
  7. import com.gyee.power.fitting.model.vo.AlarmVo;
  8. import java.util.List;
  9. public interface IAlarmTsService extends IService<AlarmTs> {
  10. void createSuperTable(String type);
  11. void dropSuperTable(String type);
  12. int createTable(AlarmVo vo);
  13. int createTable(String tbName, String alarmid, String alarmtype,
  14. String characteristic, String components,
  15. String description,
  16. String deviceid, String devicename,
  17. String devicetype, Boolean enabled,
  18. String lineid, String linename,
  19. String modelId, String projectid,
  20. String projectname, Integer rank,
  21. Boolean resettable, String stationid,
  22. String stationname, String subcomponents,
  23. String suffix, String tagid,
  24. Integer triggertype, String uniformcode, String superTableName
  25. );
  26. int insertOne(AlarmTs one);
  27. void insertList(List<AlarmTag> alarmTags);
  28. void createSql(List<AlarmTag> alarmTags);
  29. List<AlarmVo> findTags(String stbaleName);
  30. List<AlarmTsVo> selectByWpGroup(String superTableName, String stationid, long begin, long end);
  31. List<AlarmVo> selectByTbName(String tbName, long limit, long offset);
  32. List<AlarmSimpleVo> selectLastRowByTbname(String superTableName, String tbnames);
  33. List<AlarmVo> findTagsByDeviceid(String superTableName, String stationid,String deviceid, long begin, long end);
  34. }