package com.mortals.xhx.module.device.service.impl;

import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.xhx.module.device.dao.DeviceStatDao;
import com.mortals.xhx.module.device.model.DeviceStatEntity;
import com.mortals.xhx.module.device.service.DeviceStatService;
import org.springframework.stereotype.Service;

/**
* DeviceStatService
* 设备统计 service实现
*
* @author zxfei
* @date 2022-07-05
*/
@Service("deviceStatService")
public class DeviceStatServiceImpl extends AbstractCRUDServiceImpl<DeviceStatDao, DeviceStatEntity, Long> implements DeviceStatService {

//    @Autowired
//    private ISiteFeign siteFeign;
//
//
//    @Override
//    protected void findAfter(DeviceStatEntity params, PageInfo pageInfo, Context context, List<DeviceStatEntity> list) throws AppException {
//        SitePdu sitePdu = new SitePdu();
//        sitePdu.setSize(-1);
//        Map<Long, SitePdu> collect = siteFeign.list(sitePdu).getData().getData().stream().collect(Collectors.toMap(x -> x.getId(), y -> y));
//
//        list.stream().forEach(item->{
//            if(ObjectUtils.isEmpty())
//        });
//
//
//
//        super.findAfter(params, pageInfo, context, list);
//    }
}