package com.zioinfo.mes.bom.mapper;

import com.zioinfo.mes.bom.MesBom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BomMapper {
    List<MesBom> findByParent(@Param("parentItemCode") String parentItemCode,
                              @Param("bomVersion") String bomVersion);
    List<MesBom> findAll(@Param("status") String status);
    MesBom findById(@Param("id") Long id);
    int insert(MesBom bom);
    int update(MesBom bom);
    int delete(@Param("id") Long id);
}
