cuijian
2025-06-16 ec1bf4658e36a17f971a54007920a44c5378b7dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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<ProductInfo> {
    /**
     * 根据用户id获取用户的产品数据
     * @param userId
     * @return
     */
    List<ProductInfo> getByUserPerms(@Param("userId") String userId);
 
    @Select("SELECT * FROM nc_product_info WHERE product_id = #{productId}")
    ProductInfo selectById(@Param("productId") String productId);
}