WechatScanLoginMapper.java 1.9 KB

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