package com.welampiot.service.impl; import com.welampiot.dao.AreaDataDao; import com.welampiot.service.AreaDataService; import com.welampiot.vo.AreaDataVO; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * ClassName: AreaDataServiceImpl * Package: com.welampiot.service.impl * Description: * * @Author: zhj_Start * @Create: 2023/6/5 - 16:45 * @Version: v1.0 */ @Service public class AreaDataServiceImpl implements AreaDataService { @Autowired private AreaDataDao areaDataDao; @Override public AreaDataVO getAreaData(Integer areaId, List sectionList) { AreaDataVO areaDataVO = new AreaDataVO(); areaDataVO.setLampCount(areaDataDao.getLampCountByAreaId(areaId,sectionList)); areaDataVO.setGroupCount(areaDataDao.getGroupCountByAreaId(areaId,sectionList)); areaDataVO.setLoopCount(areaDataDao.getLoopCountByAreaId(areaId,sectionList)); areaDataVO.setNetworkCount(areaDataDao.getNetworkCountByAreaId(areaId,sectionList)); return areaDataVO; } }