LampDao.java 1.1 KB

1234567891011121314151617181920212223242526
  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 org.apache.ibatis.annotations.Param;
  7. import java.util.List;
  8. public interface LampDao {
  9. Integer getCountByVO(LampCountVO lampCountVO); // 查询灯控数量
  10. Float getDayConsumptionByVO(LampCountVO lampCountVO);
  11. Float getConsumptionByVO(LampCountVO lampCountVO);
  12. List<LampLogVO> getConsumptionListByVO(LampCountVO lampCountVO);
  13. List<LampInfoDTO> getListByVO(LampListResponseVO lampListResponseVO);
  14. LampInfoDTO getDetailsById(@Param("id")Integer id,@Param("version")Integer version);
  15. LampInfoDTO getDetailsByAddress(@Param("address")String address,@Param("version")Integer version);
  16. Integer findByVO(LampInfoDTO lampInfoDTO);
  17. Integer checkData(LampInfoDTO lampInfoDTO);
  18. Integer add(LampInfoDTO lampInfoDTO);
  19. Integer update(LampInfoDTO lampInfoDTO);
  20. Integer deleteById(@Param("id")Integer id);
  21. List<LampInfoDTO> groupSelectLamp(LampListResponseVO lampListResponseVO);
  22. }