forked from gzzfw/backEnd/gz-dyh

wangwh
2024-10-25 0d514ca5405b42b3d31e2e68d7a1e9e834cae706
dyh-service/dyh-mediate/src/main/java/cn/huge/module/flow/consts/FlowableConsts.java
@@ -1,5 +1,7 @@
package cn.huge.module.flow.consts;
import cn.huge.module.mediate.constant.CaseBaseConstsEnum;
/**
 * @title: 用户相关常量类
 * @description: 用户相关常量
@@ -13,9 +15,13 @@
     * 两个默认流程定义编号
     * 自行受理:GZDYH_ZXSL_3LEVEL_V1
     * 来访登记:GZDYH_LFDJ_3LEVEL_V1
     * 联合处置:GZDYH_LHCZ_3LEVEL_V1
     */
    public static final String FLOWABLE_ID_LFDJ = "GZDYH_LFDJ_3LEVEL_V1";
    public static final String FLOWABLE_ID_ZXSL = "GZDYH_ZXSL_3LEVEL_V1";
    public static final String GZDYH_JB_LFDJ_V1 = "GZDYH_JB_LFDJ_V1";
    public static final String GZDYH_JB_ZXPC_V1 = "GZDYH_JB_ZXPC_V1";
    public static final String GZDYH_ZXSL_LFDJ_V1 = "GZDYH_ZXSL_LFDJ_V1";
    public static final String GZDYH_ZXSL_ZXPC_V1 = "GZDYH_ZXSL_ZXPC_V1";
    public static final String GZDYH_LHCZ_V1 = "GZDYH_LHCZ_V1";
    /**
     * 工作流通用任务条件,
@@ -29,9 +35,9 @@
     * 自行受理:zxsl
     * 交办给直属组织:jb_zszz,交办给综治中心:jb_zzzx
     * 受理:sl
     * 回退申请:htsq,回退审核同意:htsh_ty,回退审核不同意:htsh_bty,htsh_bty_zj,htsh_bty_qj
     * 上报:sb,上报审核同意:htsq_ty,上报审核不同意:htsq_bty
     * 结案审核同意:jash_ty,结案审核不同意:jash_bty,htsh_bty_zj,htsh_bty_qj
     * 回退申请:htsq,回退审核同意:htsh_ty,回退审核不同意:htsh_bty,htsh_bty_qj,htsh_bty_sj
     * 上报:sb,上报审核同意:sbsh_ty,上报审核不同意:sbsh_bty
     * 结案审核同意:jash_ty,同意申请上级审核:jash_ty_sq,结案审核不同意:jash_bty,
     */
    public static final String OPERATION_jb_zszz = "jb_zszz";
    public static final String OPERATION_jb_zzzx = "jb_zzzx";
@@ -45,7 +51,34 @@
    public static final String OPERATION_sbsh_ty = "sbsh_ty";
    public static final String OPERATION_sbsh_bty = "sbsh_bty";
    public static final String OPERATION_jash_ty = "jash_ty";
    public static final String OPERATION_jash_ty_sq = "jash_ty_sq";
    public static final String OPERATION_jash_bty = "jash_bty";
    /**
     * 根据事项来源获取交办流程
     * @param canal
     * @return
     */
    public static String getJbFlow(String canal){
        if (CaseBaseConstsEnum.CASE_CANAL_3.getIndex().equals(canal)){
            return GZDYH_JB_ZXPC_V1;
        }else {
            return GZDYH_JB_LFDJ_V1;
        }
    }
    /**
     * 根据事项来源获取自行受理流程
     * @param canal
     * @return
     */
    public static String getZxslFlow(String canal){
        if (CaseBaseConstsEnum.CASE_CANAL_3.getIndex().equals(canal)){
            return GZDYH_ZXSL_ZXPC_V1;
        }else {
            return GZDYH_ZXSL_LFDJ_V1;
        }
    }
}
/**
 * -------------------_ooOoo_-------------------