package org.jeecg.modules.newWarning.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.newWarning.dto.WarnLogComprehensiveDto;
import org.jeecg.modules.newWarning.dto.WarnLogStatisticsDto;
import org.jeecg.modules.newWarning.entity.PumpingPressureWarnLog;
import org.jeecg.modules.newWarning.params.WarnLogCountParams;
import org.jeecg.modules.newWarning.service.PumpingPressureWarnLogService;
import org.jeecg.modules.newWarning.mapper.PumpingPressureWarnLogMapper;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
* @author 费玉泉
* @description 针对表【PUMPING_PRESSURE_WARN_LOG(泵压预警数据)】的数据库操作Service实现
* @createDate 2024-06-07 11:17:38
*/
@Service
public class PumpingPressureWarnLogServiceImpl extends ServiceImpl<PumpingPressureWarnLogMapper, PumpingPressureWarnLog>
    implements PumpingPressureWarnLogService{

    @Override
    public List<WarnLogComprehensiveDto> getWarnLogList(HashMap<String, Object> params){
        return baseMapper.getWarnLogList(params);
    }

    @Override
    public List<WarnLogStatisticsDto> getWarnLogCount(WarnLogCountParams params){
        QueryWrapper<WarnLogCountParams> wrapper=new QueryWrapper<>();
        return baseMapper.getWarnLogCount(wrapper);
    }
}




