package com.patzn.lims.consume.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.patzn.lims.consume.dto.LmsChemicalStockDTO;
import com.patzn.lims.consume.entity.LmsChemical;
import com.patzn.lims.consume.enums.StockUserecordEnum;
import com.patzn.lims.core.web.IBaseService;
import com.patzn.lims.consume.entity.LmsChemicalStock;

/**
 * <p>
 * 试验耗材库存表 服务类
 * </p>
 *
 * @author wwd
 * @since 2020-03-24
 */
public interface ILmsChemicalStockService extends IBaseService<LmsChemicalStock> {

    Page<LmsChemicalStockDTO> page(Page<LmsChemicalStockDTO> page, LmsChemicalStockDTO lmsChemicalStock);


    boolean saveDTO( LmsChemicalStockDTO dto);

    boolean updateDTOById(LmsChemicalStockDTO dto);


    boolean updateStockRecord(LmsChemical chemical, LmsChemicalStockDTO dto, StockUserecordEnum stockUserecordEnum);
}
