lyh
2025-06-16 24e0bdd24a10449c98013cdb5bcc5e37735f5a91
lxzn-module-dnc/src/main/java/org/jeecg/modules/dnc/mapper/ProcessStreamMapper.java
@@ -1,7 +1,29 @@
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);
}