package org.stm.page.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import org.stm.page.entity.PageMetricconfig;
import org.stm.page.mapper.PageMetricconfigMapper;
import org.stm.page.service.IPageMetricconfigService;
import org.stm.page.vo.PageMetricMoniVo;

import java.util.ArrayList;
import java.util.List;
/**
 * @Description: 风险监测指标配置
 * @Author: jeecg-boot
 * @Date:   2024-01-10
 * @Version: V1.0
 */
@Service
public class PageMetricconfigServiceImpl extends ServiceImpl<PageMetricconfigMapper, PageMetricconfig> implements IPageMetricconfigService {

    @Override
    public List<PageMetricMoniVo> queryPageMetricconfig() {
        QueryWrapper<PageMetricconfig> rateStdQueryWrapper  = new QueryWrapper<>();
        List<PageMetricMoniVo> list  = this.baseMapper.queryPageMetricconfig();
        if(CollectionUtils.isEmpty(list)){
            return new ArrayList<>();
        }
        return list;
    }
}
