package com.zcloud.flow.xgf;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeSwitchComponent;
import com.zcloud.flow.xgf.util.XgfFlowDto;

@LiteflowComponent("InitCompany")
public class InitCompany extends NodeSwitchComponent {
    @Override
    public String processSwitch() throws Exception {
        XgfFlowDto info = this.getRequestData();
        // 0-一般单位处理流程
        // 1-集团单位处理流程
        // 2-股份端单位处理流程
        if ("0".equals(info.getFLOWS_TYPE())) {
            return "YiBan";
        }
        if ("1".equals(info.getFLOWS_TYPE())){
            return "JiTuan";
        }
        if ("2".equals(info.getFLOWS_TYPE())){
            return "GuFen";
        }
        throw new RuntimeException("系统异常,请联系管理员");
    }
}