package com.securitycontrol.screen.service.impl;

import com.securitycontrol.entity.screen.dto.ConstructionQualityDto;
import com.securitycontrol.entity.screen.dto.OperatingQualityDto;
import com.securitycontrol.entity.screen.vo.ConstructionQualityVo;
import com.securitycontrol.entity.screen.vo.OperatingQualityVo;
import com.securitycontrol.screen.mapper.ConstructionQualityMapper;
import com.securitycontrol.screen.mapper.OperatingMapper;
import com.securitycontrol.screen.service.ConstructionQualityService;
import com.securitycontrol.screen.service.OperatingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.YearMonth;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Lenovo
 */
@Slf4j
@Service(value = "OperatingService")
public class OperatingImpl implements OperatingService {

    @Resource(name = "OperatingMapper")
    private OperatingMapper mapper;

    /**
     * 作业环境-实时检测
     * @param dto
     * @return List<OperatingQualityVo>
     * &#064;description
     * @author jjLv
     * @date 2024/3/27 19:54
     */
    @Override
    public List<OperatingQualityVo> getRealTimeMonitoring(OperatingQualityDto dto) {
        return mapper.getRealTimeMonitoring(dto);
    }

    /**
     * 作业环境-有限空间检测设备查询
     * @param dto
     * @return List<OperatingQualityVo>
     * @description
     * @author jjLv
     * @date 2024/3/27 19:54
     */
    @Override
    public List<OperatingQualityVo> getFiniteSpace(OperatingQualityDto dto) {
        return mapper.getFiniteSpace(dto);
    }

    /**
     * 作业环境-边坡位移监测设备查询
     * @param dto
     * @return List<OperatingQualityVo>
     * @description
     * @author jjLv
     * @date 2024/3/27 19:54
     */
    @Override
    public List<OperatingQualityVo> getSlopeDisplacement(OperatingQualityDto dto) {
        return mapper.getSlopeDisplacement(dto);
    }


    /**
     * 作业环境-GPS安装检测设备查询
     * @param dto
     * @return List<OperatingQualityVo>
     * @description
     * @author jjLv
     * @date 2024/3/27 19:54
     */
    @Override
    public List<OperatingQualityVo> getGPSInstallation(OperatingQualityDto dto) {
        return mapper.getGPSInstallation(dto);
    }

    /**
     * 作业环境-有限空间检测环境
     * @param dto
     * @return List<OperatingQualityVo>
     * @description
     * @author jjLv
     * @date 2024/3/27 19:54
     */
    @Override
    public List<OperatingQualityVo> getFiniteSpaceEnvironment(OperatingQualityDto dto) {
        return mapper.getFiniteSpaceEnvironment(dto);
    }

    /**
     * 作业环境-GPS安装检测环境查询
     * @param dto
     * @return List<OperatingQualityVo>
     * @description
     * @author jjLv
     * @date 2024/3/27 19:54
     */
    @Override
    public List<OperatingQualityVo> getGPSInstallationEnvironment(OperatingQualityDto dto) {
        return mapper.getGPSInstallationEnvironment(dto);
    }

    /**
     * 作业环境-边坡位移监测列表
     * @param dto
     * @return List<OperatingQualityVo>
     * @description
     * @author jjLv
     * @date 2024/3/27 19:54
     */
    @Override
    public List<ConstructionQualityVo> getSlopeDisplacementList(ConstructionQualityDto dto) {
        return mapper.getSlopeDisplacementList(dto);
    }
}
