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
21
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.PartsInfo;
 
import java.util.List;
 
public interface PartsInfoMapper extends BaseMapper<PartsInfo> {
 
    /**
     * 根据用户id获取授权的零件信息
     * @param userId
     * @return
     */
    List<PartsInfo> getByUserPerms(@Param("userId") String userId);
 
    @Select("SELECT * FROM nc_parts_info WHERE parts_id = #{partsId}")
    PartsInfo selectById(@Param("partsId") String partsId);
}