package com.base.plan.service;

import com.base.plan.mapper.AlgSchemeStepWindowMapper;
import com.base.plan.model.entity.AlgSchemeStepWindow;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: server
 * @description: 条带窗口业务逻辑类
 * @author: jojo
 * @create: 2024-10-08 15:22
 **/
@Service
public class AlgSchemeStepWindowService {

    @Resource
    AlgSchemeStepWindowMapper algSchemeStepWindowMapper;


    /**
     * 根据parentId查询条带窗口
     * @param parentIdSubstring: 目标parentId的截取串
     * @return 满足条件的条带窗口列表
     */
    public List<AlgSchemeStepWindow> getAlgSchemeStepWindowByParentIdSubstring(String parentIdSubstring) {
        return algSchemeStepWindowMapper.getAlgSchemeStepWindowByParentIdSubstring(parentIdSubstring);
    }

    /**
     * 根据parentIds查询条带窗口
     * @param parentIds: 目标parentId列表
     * @return 满足条件的条带窗口列表
     */
    public List<AlgSchemeStepWindow> getAlgSchemeStepWindowByParentIds(List<String> parentIds) {
        return algSchemeStepWindowMapper.getAlgSchemeStepWindowByParentIds(parentIds);
    }
}
