package com.rongwei.bscommon.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rongwei.bsentity.domain.ApsProcessOperationOutMaterDo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Entity com.rongwei.training.domain.ApsProcessOperationOutMater
 */
public interface ApsProcessOperationOutMaterDao extends BaseMapper<ApsProcessOperationOutMaterDo> {

    @Select("SELECT * FROM aps_process_operation_out_mater WHERE DELETED = 0 AND MAINID = #{mainid}")
    List<ApsProcessOperationOutMaterDo> getProcessOperationOutMaterByMainId(@Param("mainid") String mainid);

    void reportCheckUpdateAboutVolumesNum(@Param("id") String id,
                                          @Param("unqualifiedQuantity") long unqualifiedQuantity,
                                          @Param("qualifiedQuantity") long qualifiedQuantity,
                                          @Param("inspectQuantity") int inspectQuantity);
}




