package com.muyu.service.impl;

import java.util.List;

import com.muyu.common.core.utils.StringUtils;
import com.muyu.domain.resp.WarnLogsResp;
import com.muyu.mapper.WarnLogsMapper;
import com.muyu.service.WarnLogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.domain.WarnLogs ;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.util.Assert;

/**
 * 预警日志Service业务层处理
 *
 * @author muyu
 * @date 2024-09-20
 */
@Service
public class WarnLogsServiceImpl
        extends ServiceImpl<WarnLogsMapper, WarnLogs>
        implements WarnLogsService {
    @Autowired
    private WarnLogsMapper warnLogsMapper;

    /**
     * 精确查询预警日志
     *
     * @param id 预警日志主键
     * @return 预警日志
     */
    @Override
    public WarnLogsResp selectWarnLogsById(Long id)
    {
       return warnLogsMapper.selectWarnLogs(id);
    }


    /**
     * 查询预警日志列表
     * @return 预警日志
     */
    @Override
    public  List<WarnLogsResp> selectWarnLogsList()
    {
        return warnLogsMapper.selectWarnLogsList();
    }

    @Override
    public Integer addWarnLogs(WarnLogs warnLogs) {
        return warnLogsMapper.insert(warnLogs);
    }


}
