package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.DeviceGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 设备商品展示表 Mapper 接口
 * </p>
 *
 * @author Djh
 * @since 2020-11-11
 */
public interface DeviceGoodsMapper extends BaseMapper<DeviceGoods> {

    /**
     * 根据sn码查询商城展示基本信息
     * @param snNo
     * @return
     */
    DeviceGoods selectBySn(@Param("snNo") String snNo);

    @Select("SELECT * FROM tb_pluss_device_goods WHERE `code` = #{code}")
    DeviceGoods getByCode(String code);
}
