package com.dk.mdm.mapper.ivt;

import com.dk.mdm.model.pojo.ivt.IntoReturnItem;
import com.dk.common.mapper.BaseMapper;
import com.dk.mdm.model.pojo.pur.PurchaseItem;
import com.dk.mdm.model.query.ivt.IntoReturnItemQuery;
import com.dk.mdm.model.response.ivt.IntoReturnItemResponse;
import com.dk.mdm.model.response.pur.PurchaseResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
*  入库退货明细 Mapper
*/
@Repository
public interface IntoReturnItemMapper extends BaseMapper<IntoReturnItem>{
    /**
     * @desc   : 根据条件进行查询
     * @author : 于继渤
     * @date : 2024/2/26 10:36
     */
    List<IntoReturnItemResponse> selectByCond(IntoReturnItemQuery intoReturnItemQuery);
    /**
     * @desc   : 根据条件进行查询（数量）
     * @author : 于继渤
     * @date : 2024/2/26 10:36
     */
    Long countByCond(IntoReturnItemQuery intoReturnItemQuery);


    /**
     * @desc   : 根据id查询
     * @date   : 2024/3/11 14:59
     * @author : 寇珊珊
     */
    IntoReturnItemResponse selectById(@Param("id") String id);


}

