package com.ruoyi.web.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.web.domain.dto.warning.drowningWarning.DrowningWarningAddRequest;
import com.ruoyi.web.domain.dto.warning.drowningWarning.DrowningWarningEditRequest;
import com.ruoyi.web.domain.dto.warning.drowningWarning.DrowningWarningQueryRequest;
import com.ruoyi.web.domain.entity.DrowningWarning;
import com.ruoyi.web.domain.vo.DrowningWarningVO;

/**
 *
 */
public interface DrowningWarningService extends IService<DrowningWarning> {
    Integer addDrowningWarning(DrowningWarningAddRequest lotDataCollectionAddRequest);

    boolean deleteDrowningWarning(String ids);

    void editDrowningWarning(DrowningWarningEditRequest drowningWarningEditRequest);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    DrowningWarningVO getDrowningWarningById(int id);

    DrowningWarningVO getDrowningWarningVO(DrowningWarning lotDataCollection);

    /**
     * 分页获取列表
     *
     * @param drowningWarningQueryRequest
     * @return
     */
    Page<DrowningWarningVO> getListDrowningWarningByPage(DrowningWarningQueryRequest drowningWarningQueryRequest);

    /**
     * 获取查询条件
     *
     * @param drowningWarningQueryRequest
     * @return
     */
    QueryWrapper<DrowningWarning> getQueryWrapper(DrowningWarningQueryRequest drowningWarningQueryRequest);

}
