package com.dk.mdm.mapper.ivt;

import com.dk.mdm.model.pojo.ivt.InOutRecord;
import com.dk.common.mapper.BaseMapper;
import com.dk.mdm.model.pojo.ivt.InventoryBatch;
import com.dk.mdm.model.query.ivt.InOutRecordQuery;
import com.dk.mdm.model.query.ivt.InboundQuery;
import com.dk.mdm.model.response.ivt.InOutRecordResponse;
import com.dk.mdm.model.response.ivt.InboundResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
*  存货流水 Mapper
*/
@Repository
public interface InOutRecordMapper extends BaseMapper<InOutRecord>{
    /**
     * @desc   : 根据id查询
     * @date   : 2024/3/9 9:14
     * @author : 寇珊珊
     */
    InOutRecordResponse selectById(@Param("id") String id);

    /**
     * @desc   : 条件查询
     * @date   : 2024/3/20 9:39
     * @author : 寇珊珊
     */
    List<InOutRecordResponse> selectByCond(InOutRecordQuery inOutRecordQuery);

    /**
     * @desc   : 条件查询个数
     * @date   : 2024/3/20 9:39
     * @author : 寇珊珊
     */
    Long countByCond(InOutRecordQuery inOutRecordQuery);


    /**
     * @desc   : 删除数据
     * @date   : 2024/4/10 13:46
     * @author : 寇珊珊
     */
    int deleteData(InOutRecord inOutRecord);



}

