package com.welampiot.dao; import com.welampiot.dto.LampInfoDTO; import com.welampiot.vo.LampCountVO; import com.welampiot.vo.LampListResponseVO; import com.welampiot.vo.LampLogVO; import com.welampiot.vo.LampVO; import org.apache.ibatis.annotations.Param; import java.util.List; public interface LampDao { Integer getCountByVO(LampCountVO lampCountVO); // 查询灯控数量 Float getDayConsumptionByVO(LampCountVO lampCountVO); Float getConsumptionByVO(LampCountVO lampCountVO); List getConsumptionListByVO(LampCountVO lampCountVO); List getListByVO(LampListResponseVO lampListResponseVO); LampInfoDTO getDetailsById(@Param("id")Integer id,@Param("version")Integer version); LampInfoDTO getDetailsByAddress(@Param("address")String address,@Param("version")Integer version); Integer findByVO(LampInfoDTO lampInfoDTO); Integer checkData(LampInfoDTO lampInfoDTO); Integer add(LampInfoDTO lampInfoDTO); Integer update(LampInfoDTO lampInfoDTO); Integer deleteById(@Param("id")Integer id); List groupSelectLamp(LampListResponseVO lampListResponseVO); List getNavByVO(LampListResponseVO lampListResponseVO); List getLampPoleDetailListByLampPoleId(@Param("lampPoleId")Integer lampPoleId); List getLampInfoListByDTO(LampInfoDTO dto); List getLampLocationByGroupId(@Param("id") Integer id); List getLampLocationByLoopId(@Param("id") Integer id); Integer getLampInstallTotalByDTO(LampInfoDTO dto); Integer getLampLightTotalByDTO(LampInfoDTO dto); Integer getLampOnlineTotalByDTO(LampInfoDTO dto); Integer getLampFaultTotalByDTO(LampInfoDTO dto); void changeLampLocationById(LampInfoDTO dto); Integer getSectionOfLampCountBySectionId(@Param("id") Integer id); String getNameOrNumber(@Param("type") Integer type,@Param("value") Integer value,@Param("version") Integer version); LampInfoDTO getLampInfoDTOById(@Param("id") Integer id); List getLampList(LampVO vo); Integer getLampTotal(LampVO vo); }