package com.rongwei.bsentity.vo;

import lombok.Data;
import org.apache.commons.lang.StringUtils;

import java.util.Arrays;
import java.util.List;

/**
 * ProcessIdRelationvO class
 *
 * @author XH
 * @date 2024/03/26
 */
@Data
public class ProcessIdRelationVo {
    /**
     * 工序作业ID
     */
    private String id;
    /**
     *  下一个工序作业ID
     */
    private String nextprocessid;
    /**
     *   上一个工序作业ID
     */
    private String previousprocessid;
    /**
     *   工序作业明细表ID
     */
    private String processdetailid;

    private List<String> processdetailids;


    public void setProcessdetailid(String processdetailid) {
        if(StringUtils.isNotBlank(processdetailid)){
            this.processdetailids = Arrays.asList(processdetailid.split(","));
        }
        this.processdetailid = processdetailid;
    }
}
