package com.dk.mdm.mapper.mst;

import com.dk.mdm.model.pojo.mst.Warehouse;
import com.dk.common.mapper.BaseMapper;

import com.dk.mdm.model.query.mst.WarehouseQuery;

import com.dk.mdm.model.response.mst.WarehouseResponse;
import com.dk.mdm.model.vo.mst.WarehouseVO;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
*  仓库档案 Mapper
*/
@Repository
public interface WarehouseMapper extends BaseMapper<Warehouse>{
    /**
     * @desc   : 根据条件进行查询
     * @author : 于继渤
     * @date : 2024/2/26 10:36
     */
    List<WarehouseResponse> selectByCond(WarehouseQuery warehouseQuery);

    /**
     * @desc   : 根据条件进行查询（数量）
     * @author : 于继渤
     * @date : 2024/2/26 10:36
     */
    Long countByCond(WarehouseQuery warehouseQuery);




    /**
     * @desc : 批量编辑序号
     * @author : 于继渤
     * @date :  2023/1/4 9:39
     */
    Integer updateBatchWarehouseDisplayNo(List<Map<String,Object>> dataIds);
    /**
     * @desc : 修改默认
     * @author : 于继渤
     * @date :  2023/1/4 9:39
     */
    Integer updateFlgDefault(Integer id);

}

