package com.ruoyi.web.stock.mapper;

import com.ruoyi.web.stock.domain.WarehouseStockIssue;
import com.ruoyi.web.stock.domain.WarehouseStockIssueGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WarehouseStockIssueMapper {
    WarehouseStockIssue selectById(Long id);
    List<WarehouseStockIssue> selectList(WarehouseStockIssue query);
    int insert(WarehouseStockIssue entity);
    int updateTotalSubtotal(@Param("id") Long id, @Param("totalSubtotal") java.math.BigDecimal totalSubtotal, @Param("updateBy") String updateBy);
    int deleteById(@Param("id") Long id, @Param("updateBy") String updateBy);
    List<WarehouseStockIssueGoods> selectGoodsByIssueId(Long issueId);
    int insertGoodsBatch(@Param("list") List<WarehouseStockIssueGoods> list);
    int deleteGoodsByIssueId(@Param("issueId") Long issueId, @Param("updateBy") String updateBy);
    Integer selectTodayMaxSeq(@Param("orgId") String orgId, @Param("dateText") String dateText);
}
