package com.hz.pm.api.dashboard.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hz.pm.api.dashboard.mapper.CockpitStatsMapper;
import com.hz.pm.api.dashboard.model.entity.CockpitStats;
import com.hz.pm.api.dashboard.model.po.SecrecyPasswordGradePO;
import com.hz.pm.api.dashboard.service.ICockpitStatsService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zpf
 * @since 2023-02-05
 */
@Service
@RequiredArgsConstructor
public class CockpitStatsServiceImpl extends ServiceImpl<CockpitStatsMapper, CockpitStats>
        implements ICockpitStatsService {

    private final CockpitStatsMapper cockpitStatsMapper;

    @Override
    public SecrecyPasswordGradePO getSecrecyPasswordGrade(String regionCode, Integer year) {
        return cockpitStatsMapper.getSecrecyPasswordGrade(regionCode,year);
    }
}
