ITRmCalpointValueService.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. package com.steerinfo.ems.trmcalpointvalue.service;
  2. import com.steerinfo.ems.trmcalpoint.model.TRmCalpoint;
  3. import com.steerinfo.ems.trmcalpointvalue.model.TRmCalpointValue;
  4. import com.steerinfo.framework.service.IBaseService;
  5. import java.util.Date;
  6. import java.util.HashMap;
  7. import java.util.List;
  8. import java.util.Map;
  9. /**
  10. * TRmCalpointValue服务接口:
  11. * @author generator
  12. * @version 1.0-SNAPSHORT 2019-10-17 03:55
  13. * 类描述
  14. * 修订历史:
  15. * 日期:2019-10-17
  16. * 作者:generator
  17. * 参考:
  18. * 描述:TRmCalpointValue服务接口
  19. * @see null
  20. * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
  21. */
  22. public interface ITRmCalpointValueService extends IBaseService<TRmCalpointValue, HashMap<String, Object>>{
  23. /**
  24. * 计量点数据定时统计(将小时表中昨天的数据进行处理,将数据累加计算保存至T_RM_CALPOINT_VALUE)
  25. * 统计日粒度以上的数据
  26. *
  27. * @param date 统计时间
  28. */
  29. void statData(Date date);
  30. /**
  31. * 修改计量值,并且重新计算影响的相关数据
  32. *
  33. * @param tRmCalpointValue
  34. * @return
  35. */
  36. TRmCalpointValue modifyAndCompute(TRmCalpointValue tRmCalpointValue);
  37. /**
  38. * 计量点数据定时统计班数据(目前只有电数据需要统计)
  39. *
  40. * @param date 统计时间
  41. */
  42. void statDataShift(Date date);
  43. /**
  44. * 重新计算所有计量点数据
  45. * @param clock 起始时间
  46. * @param timegranid 时间粒度
  47. * @return
  48. */
  49. String restatAllData(String clock, String timegranid);
  50. /**
  51. * 更新单个计量点数据(新增或者更新)
  52. *
  53. * @param tRmCalpoint 计量点
  54. * @param clock 时间
  55. * @param timegranid 时间粒度
  56. * @param updateUser 操作人
  57. * @return
  58. */
  59. String restatCalData(TRmCalpoint tRmCalpoint, String clock, String timegranid, String updateUser);
  60. /**
  61. * 重新计算单个计量点数据(新增或者更新)
  62. *
  63. * @param itemid 计量点编号
  64. * @param clock 时间
  65. * @param timegranid 时间粒度
  66. * @param opuser 操作人
  67. * @return
  68. */
  69. String restatCalpData(String itemid, String clock, String timegranid, String opuser);
  70. /**
  71. * 获得计量点时间段数据,期初、期末、计算值
  72. *
  73. * @param parmas
  74. * @return
  75. */
  76. List<Map<String, Object>> getCalpointValue(HashMap<String, Object> parmas);
  77. /**
  78. * 计算累计值(用于计算月、年数据等)
  79. * @param params <br/>
  80. * itemid 项目ID <br/>
  81. * clock 时间头(like clock%)<br/>
  82. * timegranid 时间粒度
  83. * @return
  84. */
  85. Double getSumvalue(HashMap<String,Object> params);
  86. /**
  87. * 水数据从大用户读取
  88. * @param clock 开始时间
  89. * @param clock2 结束时间
  90. */
  91. void resWData(String clock,String clock2);
  92. //报表获取氧气数据
  93. List<TRmCalpointValue>getDataForBb();
  94. //
  95. public void insetDataForBb();
  96. }