WechatScanLoginMapper.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package com.template.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.template.model.pojo.MonthMeterDetail;
  4. import com.template.model.pojo.SmartUser;
  5. import com.template.model.tongji.*;
  6. import org.apache.ibatis.annotations.Param;
  7. import org.springframework.stereotype.Repository;
  8. import java.util.List;
  9. @Repository
  10. public interface WechatScanLoginMapper extends BaseMapper<SmartUser> {
  11. // 用户类别统计
  12. public List<Tj> getUserIdTj();
  13. // 用户总数
  14. public All getUserIdTjt();
  15. // 水表总计
  16. public DAll getWaterTj();
  17. // 电表总计
  18. public DAll getElcTj();
  19. // 每个月各水表数据统计
  20. public List<EnergyTj> getWaterTjByMonAndBuild(String month);
  21. // 每个月各电表数据统计
  22. public List<EnergyTj> getElcTjByMonAndBuild(String month);
  23. // 每个月每个楼栋查询
  24. public EnergyTj getTjByMon(String name,String meterName,String month,String type);
  25. public void insertMonthMeter(EnergyTj energyTj);
  26. public void updateMonthMeter(@Param("energyTj")EnergyTj energyTj);
  27. // 每天各水表数据统计
  28. public List<EnergyTj> getWaterTjByDayAndBuild(String day);
  29. // 每天各电表数据统计
  30. public List<EnergyTj> getElcTjByDayAndBuild(String day);
  31. public EnergyTj getTjByDay(String name,String meterName,String day,String type);
  32. public void insertDayMeter(EnergyTj energyTj);
  33. public void updateDayMeter(@Param("energyTj")EnergyTj energyTj);
  34. // 每个月各水表数据
  35. public List<Tj> getMonWater(@Param("month")String month);
  36. // 每个月各电表数据
  37. public List<Tj> getMonElc(@Param("month")String month);
  38. // 区域能耗统计
  39. public List<MeterMonthData> getMeterMonthPage(@Param("meterMonthData")MeterMonthData meterMonthData);
  40. List<MonthMeterDetail> getMeterMonthPageDatas(@Param("meterMonthData")MeterMonthData meterMonthData);
  41. // 实时抄表
  42. public List<MeterMonthDataVo> getMeterDayPage(@Param("meterMonthData")MeterMonthData meterMonthData);
  43. }