package com.chinaztt.mes.production.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.chinaztt.mes.production.dto.ProductInputDTO;
|
import com.chinaztt.mes.production.entity.ProductInput;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* 报工投入表
|
*
|
* @author cxf
|
* @date 2020-11-17 10:12:30
|
*/
|
@Mapper
|
public interface ProductInputMapper extends BaseMapper<ProductInput> {
|
|
/**
|
* 根据报工主表,或零件id查询
|
* @param mainId
|
* @param partId
|
* @return
|
*/
|
List<ProductInputDTO> queryList(@Param("mainId") Long mainId, @Param("partId") Long partId);
|
|
Integer countPartNumber(Long productMainId);
|
|
/**
|
* 根据报工主表排除零件id查询
|
* @param mainId
|
* @param iId
|
* @return
|
*/
|
List<ProductInputDTO> queryListByDelete(@Param("mainId") Long mainId, @Param("iId") Long iId);
|
}
|