package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.DeviceDetail;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * [设备展示表] Mapper 接口
 * </p>
 *
 * @author bzg
 * @since 2020-11-12
 */
public interface DeviceDetailMapper extends BaseMapper<DeviceDetail> {

    /**
     * 获取设备详情
     * @param wrapper
     * @return
     */
    List<DeviceDetail> selectListWithStock(@Param(Constants.WRAPPER) QueryWrapper<DeviceDetail> wrapper);

    /**
     * 获取设备详情
     * @param wrapper
     * @return
     */
    List<DeviceDetail> selectListWithStockWithNoDetail(@Param(Constants.WRAPPER) QueryWrapper<DeviceDetail> wrapper);
}
