package com.welampiot.service; import com.welampiot.common.BaseResult; import com.welampiot.dto.LampInfoDTO; import com.welampiot.dto.LampInfoLogNewDTO; import com.welampiot.vo.*; import org.apache.ibatis.annotations.Param; import java.text.ParseException; import java.util.List; public interface LampService { Integer getCountByVO(LampCountVO lampCountVO); // 查询灯控数量 Float getDayConsumptionByVO(LampCountVO lampCountVO); // 查询用电量 Float getConsumptionByVO(LampCountVO lampCountVO); // 查询当天用电量 List getConsumptionListByVO(LampCountVO lampCountVO); List getListByVO(LampListResponseVO lampListResponseVO); LampInfoDTO getDetailsById(Integer id,Integer version); Integer findByVO(LampInfoDTO lampInfoDTO); Integer checkData(LampInfoDTO lampInfoDTO); BaseResult add(LampInfoDTO lampInfoDTO); BaseResult update(LampInfoDTO lampInfoDTO); Integer deleteById(@Param("id")Integer id); Integer updateLight(LampInfoDTO lampInfoDTO); List getListByIdList(@Param("idList")List idList); Integer getLampPoleCountByVO(LampCountVO lampCountVO); List areaInfoLampList(LampListResponseVO lampListResponseVO); LampInfoDTO getDetailsByAddress(@Param("address")String address,@Param("version")Integer version); List groupSelectLamp(LampListResponseVO lampListResponseVO); List getNavByVO(LampListResponseVO lampListResponseVO); List getLampPoleDetailListByLampPoleId(@Param("lampPoleId")Integer lampPoleId); List getLampInfoListByDTO(LampInfoDTO dto); List getLampLocationByGroupId(Integer id); List getLampLocationByLoopId(Integer id); Integer getLampInstallTotalByDTO(LampInfoDTO dto); Integer getLampLightTotalByDTO(LampInfoDTO dto); Integer getLampOnlineTotalByDTO(LampInfoDTO dto); Integer getLampFaultTotalByDTO(LampInfoDTO dto); void changeLampLocationById(LampInfoDTO dto); Integer getSectionOfLampCountBySectionId(Integer id); String getNameOrNumber(Integer type,Integer value,Integer version); LampInfoDTO getLampInfoDTOById(Integer id); List getLampList(LampVO vo); Integer getLampTotal(LampVO vo); List getLampDataByLampIds(List lampIds); List getLampListByLampPoleId(Integer lampPoleId); Integer getLampPoleIdByLampId(Integer id); Integer getLampCountByLampPoleId(Integer lampPoleId); void updateLampInfoForLoopId(LampInfoDTO dto); List getLampInfoListForGroup(LampVO vo); LampInfoLogNewDTO getComBySectionList(LampVO vo); LampInfoVO getLampConsumptionData(LampInfoDataVO vo) throws ParseException; List getAlarmAreaCountTop(LampInfoDTO dto); List getLampEleUseSectionTop(LampInfoDTO dto); List getLampInfoAlarmList(LampInfoDTO dto); List getLampAlarmTotal(LampInfoDTO dto); int getAlarmCountByVO(LampVO lampVO); int getOnlineCountByVO(LampVO lampVO); List getLampSectionAlarmCountTop(LampVO vo); }