package com.yeejoin.equipmanage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.equipmanage.common.entity.WlSpareEquipment;
import org.apache.ibatis.annotations.Param;

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

public interface WlSpareEquipmentMapper extends BaseMapper<WlSpareEquipment> {

    Page<WlSpareEquipment> listByPage(@Param("page") Page page,
                                      @Param("dto") WlSpareEquipment dto,
                                      @Param("hierarchy") int hierarchy,
                                      @Param("codeHead") String codeHead);

    List<Map<String, Object>> countSpareEquip(@Param("bizOrgCode") String bizOrgCode);

    List<WlSpareEquipment> exportList(@Param("dto") WlSpareEquipment dto,
                                      @Param("hierarchy") int hierarchy,
                                      @Param("codeHead") String codeHead);

}
