package cn.iocoder.yudao.module.inspection.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.iocoder.yudao.module.inspection.entity.WarnMessage;

/**
 * warnMsgService接口
 *
 * @author zcy
 * @date 2023-10-13
 */
public interface IWarnMessageService  extends IService<WarnMessage>
{
    /**
     * 查询warnMsg
     *
     * @param id warnMsg主键
     * @return warnMsg
     */
    public WarnMessage selectWarnMessageById(Long id);

    /**
     * 查询warnMsg列表
     *
     * @param warnMessage warnMsg
     * @return warnMsg集合
     */
    public List<WarnMessage> selectWarnMessageList(WarnMessage warnMessage) throws Exception;
    IPage<WarnMessage> pageList(Page page,WarnMessage warnMessage) throws Exception;

    /**
     * 新增warnMsg
     *
     * @param warnMessage warnMsg
     * @return 结果
     */
    public int insertWarnMessage(WarnMessage warnMessage);

    /**
     * 修改warnMsg
     *
     * @param warnMessage warnMsg
     * @return 结果
     */
    public int updateWarnMessage(WarnMessage warnMessage);

    /**
     * 批量删除warnMsg
     *
     * @param ids 需要删除的warnMsg主键集合
     * @return 结果
     */
    public int deleteWarnMessageByIds(Long[] ids);

    /**
     * 删除warnMsg信息
     *
     * @param id warnMsg主键
     * @return 结果
     */
    public int deleteWarnMessageById(Long id);
}
