package com.ruoyi.web.stock.mapper;

import com.ruoyi.web.stock.domain.WarehouseCheck;
import com.ruoyi.web.stock.domain.WarehouseCheckGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 仓库盘点 Mapper。
 */
public interface WarehouseCheckMapper {

    WarehouseCheck selectWarehouseCheckById(Long id);

    List<WarehouseCheck> selectWarehouseCheckList(WarehouseCheck query);

    int insertWarehouseCheck(WarehouseCheck entity);

    int deleteWarehouseCheckById(@Param("id") Long id, @Param("updateBy") String updateBy);

    List<WarehouseCheckGoods> selectWarehouseCheckGoodsByCheckId(Long checkId);

    int insertWarehouseCheckGoodsBatch(@Param("list") List<WarehouseCheckGoods> list);

    int deleteWarehouseCheckGoodsByCheckId(@Param("checkId") Long checkId, @Param("updateBy") String updateBy);

    Integer selectTodayMaxSeq(@Param("orgId") String orgId, @Param("dateText") String dateText);
}
