package com.fjhx.purchase.mapper.quality;

import com.fjhx.purchase.entity.quality.po.QualityDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjhx.purchase.entity.quality.vo.QualityDetailVo;
import com.ruoyi.common.utils.wrapper.IWrapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;


/**
 * <p>
 * 质检明细单 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2023-04-11
 */
public interface QualityDetailMapper extends BaseMapper<QualityDetail> {

    /**
     * 质检明细单分页
     */
    Page<QualityDetailVo> getPage(@Param("page") Page<Object> page, @Param("ew") IWrapper<QualityDetail> wrapper);

    /**
     * 获取当前到货明细总质检数量
     * @param arrivalDetailId
     * @return
     */
    BigDecimal getSumQualityCount(@Param("arrivalDetailId")Long arrivalDetailId);
}
