| | |
| | | package org.jeecg.modules.dnc.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import io.lettuce.core.dynamic.annotation.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.jeecg.modules.dnc.entity.ProcessStream; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface ProcessStreamMapper extends BaseMapper<ProcessStream> { |
| | | /** |
| | | * 查询工序信息 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | List<ProcessStream> getByUserPerms(String userId); |
| | | |
| | | /** |
| | | * 根据一组部件和零件查找工序 |
| | | * @param productId |
| | | * @param componentIds |
| | | * @param partsIds |
| | | * @return |
| | | */ |
| | | List<ProcessStream> findByPartsAndComponents(String productId, List<String> componentIds, List<String> partsIds); |
| | | |
| | | @Select("SELECT * FROM nc_process_stream WHERE process_id = #{processId}") |
| | | ProcessStream selectById(@Param("processId") String processId); |
| | | } |