package org.jeecg.modules.dnc.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.jeecg.modules.dnc.entity.ProductInfo; import java.util.List; public interface ProductInfoMapper extends BaseMapper { /** * 根据用户id获取用户的产品数据 * @param userId * @return */ List getByUserPerms(@Param("userId") String userId); @Select("SELECT * FROM nc_product_info WHERE product_id = #{productId}") ProductInfo selectById(@Param("productId") String productId); }