package com.dk.mdm.mapper.ivt;

import com.dk.mdm.model.pojo.ivt.IntoReturn;
import com.dk.common.mapper.BaseMapper;
import com.dk.mdm.model.pojo.pur.Purchase;
import com.dk.mdm.model.query.ivt.InboundQuery;
import com.dk.mdm.model.query.ivt.IntoReturnQuery;
import com.dk.mdm.model.query.pur.PurchaseQuery;
import com.dk.mdm.model.response.ivt.InboundResponse;
import com.dk.mdm.model.response.ivt.IntoReturnItemResponse;
import com.dk.mdm.model.response.ivt.IntoReturnResponse;
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 IntoReturnMapper extends BaseMapper<IntoReturn>{
    /**
     * @desc   : 查询
     * @author : 于继渤
     * @date   : 2024/2/28 9:48
     */
    List<IntoReturnResponse> selectByCond(IntoReturnQuery intoReturnQuery);


    /**
     * @desc   : 查询个数
     * @author : 于继渤
     * @date   : 2024/2/28 9:48
     */
    Long countByCond(IntoReturnQuery intoReturnQuery);

    List<IntoReturn> selectReturnList(List<String> intoReturnIdList);
    IntoReturn selectReturnByRighting(String returnId);

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


    IntoReturnResponse selectByIntoReturnQuery(IntoReturnQuery intoReturnQuery);
    int updateByUuId(@Param("et")IntoReturn intoReturn);
}

