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.environmentWarning.EnvironmentWarningAddRequest;
import com.ruoyi.web.domain.dto.warning.environmentWarning.EnvironmentWarningEditRequest;
import com.ruoyi.web.domain.dto.warning.environmentWarning.EnvironmentWarningQueryRequest;
import com.ruoyi.web.domain.entity.EnvironmentWarning;
import com.ruoyi.web.domain.vo.EnvironmentWarningVO;

/**
 *
 */
public interface EnvironmentWarningService extends IService<EnvironmentWarning> {
    Integer addEnvironmentWarning(EnvironmentWarningAddRequest lotDataCollectionAddRequest);

    boolean deleteEnvironmentWarning(String ids);

    void editEnvironmentWarning(EnvironmentWarningEditRequest environmentWarningEditRequest);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    EnvironmentWarningVO getEnvironmentWarningById(int id);

    EnvironmentWarningVO getEnvironmentWarningVO(EnvironmentWarning lotDataCollection);

    /**
     * 分页获取列表
     *
     * @param environmentWarningQueryRequest
     * @return
     */
    Page<EnvironmentWarningVO> getListEnvironmentWarningByPage(EnvironmentWarningQueryRequest environmentWarningQueryRequest);

    /**
     * 获取查询条件
     *
     * @param environmentWarningQueryRequest
     * @return
     */
    QueryWrapper<EnvironmentWarning> getQueryWrapper(EnvironmentWarningQueryRequest environmentWarningQueryRequest);
}
