LampDao.java 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package com.welampiot.dao;
  2. import com.welampiot.dto.LampInfoDTO;
  3. import com.welampiot.vo.LampCountVO;
  4. import com.welampiot.vo.LampListResponseVO;
  5. import com.welampiot.vo.LampLogVO;
  6. import com.welampiot.vo.LampVO;
  7. import org.apache.ibatis.annotations.Param;
  8. import java.util.List;
  9. public interface LampDao {
  10. Integer getCountByVO(LampCountVO lampCountVO); // 查询灯控数量
  11. Float getDayConsumptionByVO(LampCountVO lampCountVO);
  12. Float getConsumptionByVO(LampCountVO lampCountVO);
  13. List<LampLogVO> getConsumptionListByVO(LampCountVO lampCountVO);
  14. List<LampInfoDTO> getListByVO(LampListResponseVO lampListResponseVO);
  15. LampInfoDTO getDetailsById(@Param("id")Integer id,@Param("version")Integer version);
  16. LampInfoDTO getDetailsByAddress(@Param("address")String address,@Param("version")Integer version);
  17. Integer findByVO(LampInfoDTO lampInfoDTO);
  18. Integer checkData(LampInfoDTO lampInfoDTO);
  19. Integer add(LampInfoDTO lampInfoDTO);
  20. Integer update(LampInfoDTO lampInfoDTO);
  21. Integer deleteById(@Param("id")Integer id);
  22. List<LampInfoDTO> groupSelectLamp(LampListResponseVO lampListResponseVO);
  23. List<LampInfoDTO> getNavByVO(LampListResponseVO lampListResponseVO);
  24. List<LampInfoDTO> getLampPoleDetailListByLampPoleId(@Param("lampPoleId")Integer lampPoleId);
  25. List<LampInfoDTO> getLampInfoListByDTO(LampInfoDTO dto);
  26. List<LampInfoDTO> getLampLocationByGroupId(@Param("id") Integer id);
  27. List<LampInfoDTO> getLampLocationByLoopId(@Param("id") Integer id);
  28. Integer getLampInstallTotalByDTO(LampInfoDTO dto);
  29. Integer getLampLightTotalByDTO(LampInfoDTO dto);
  30. Integer getLampOnlineTotalByDTO(LampInfoDTO dto);
  31. Integer getLampFaultTotalByDTO(LampInfoDTO dto);
  32. void changeLampLocationById(LampInfoDTO dto);
  33. Integer getSectionOfLampCountBySectionId(@Param("id") Integer id);
  34. String getNameOrNumber(@Param("type") Integer type,@Param("value") Integer value,@Param("version") Integer version);
  35. LampInfoDTO getLampInfoDTOById(@Param("id") Integer id);
  36. List<LampInfoDTO> getLampList(LampVO vo);
  37. Integer getLampTotal(LampVO vo);
  38. }