package com.njcn.prepare.harmonic.service.mysql.dim.impl;


import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.njcn.common.pojo.enums.common.DataStateEnum;
import com.njcn.device.biz.commApi.CommTerminalGeneralClient;
import com.njcn.device.biz.pojo.dto.DeptGetChildrenDTO;
import com.njcn.device.biz.pojo.param.DeptGetLineParam;
import com.njcn.device.pms.pojo.po.Monitor;
import com.njcn.device.pms.pojo.po.ROperatingIndexM;
import com.njcn.event.pojo.po.PmsMonitorPO;
import com.njcn.harmonic.pojo.po.dim.RDimStationBaseD;
import com.njcn.prepare.harmonic.mapper.mysql.dim.RDimStationBaseDMapper;
import com.njcn.prepare.harmonic.mapper.mysql.line.PmsMonitorMapper;
import com.njcn.prepare.harmonic.mapper.mysql.line.ROperatingMonitorDMapper;
import com.njcn.prepare.harmonic.pojo.bo.CalculatedParam;
import com.njcn.prepare.harmonic.pojo.mysql.ROperatingMonitorDPO;
import com.njcn.prepare.harmonic.service.mysql.dim.IRDimStationBaseDService;
import com.njcn.system.api.DicDataFeignClient;
import com.njcn.system.enums.DicDataTypeEnum;
import com.njcn.system.pojo.po.DictData;
import com.njcn.user.api.DeptFeignClient;
import com.njcn.user.pojo.po.Dept;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cdf
 * @since 2023-11-21
 */
@Service
@RequiredArgsConstructor
public class RDimStationBaseDServiceImpl extends ServiceImpl<RDimStationBaseDMapper, RDimStationBaseD> implements IRDimStationBaseDService {

    private final DeptFeignClient deptFeignClient;
    private final CommTerminalGeneralClient commTerminalGeneralClient;

    private final ROperatingMonitorDMapper rOperatingMonitorDMapper;

    private final DicDataFeignClient dicDataFeignClient;

    private final PmsMonitorMapper pmsMonitorMapper;



    @Override
    public void stationStatisticDay(CalculatedParam<DeptGetChildrenDTO> calculatedParam) {
        List<RDimStationBaseD> poList = new ArrayList<>();


        LocalDate date = LocalDate.parse(calculatedParam.getDataDate());




    }
}
