package org.dromara.common.core.constant;

import java.util.Map;

public interface WflowContants {
    String NORMAL_MISSION_DEFAULT_CODE = "wf67fdbee6c717f47dcf804ac8";
    String NORMAL_MISSION_DEFAULT_TITLE_FIELD = "field4997982661951";
    String NORMAL_MISSION_DEFAULT_TYPE_FIELD = "field9166682677829";
    String NORMAL_MISSION_DEFAULT_LEVEL_FIELD = "field5722983622486";
    String NORMAL_MISSION_DEFAULT_CONTENT_FIELDID = "field4812283627149";
    String NORMAL_MISSION_DEFAULT_FILEID = "field4385824969331";
    String NORMAL_MISSION_DEFAULT_IMAGEID = "field3232724933592";

    //添加完成之后初始待审批状态
    String BIZ_TASK_STATUS_START = "10";
    //退回
    String BIZ_TASK_STATUS_RECALL = "11";
    //待中心下发
    String BIZ_TASK_STATUS_TO_CENTER_XIAFA = "30";
    //情指中心已下发，待基层民警分配
    String BIZ_TASK_STATUS_TO_DEPT_FENPEI = "31";
    //待民警签收
    String BIZ_TASK_STATUS_TO_POLICE_QIANSHOU = "40";
    //待民警反馈
    String BIZ_TASK_STATUS_TO_POLICE_FEEDBACK = "41";
    ///民警已反馈，待中心审批
    String BIZ_TASK_STATUS_TO_CENTER_SP = "50";
    String BIZ_TASK_STATUS_CENTER_SP_PASS = "51";
    String BIZ_TASK_STATUS_CENTER_ALL_DWON = "60";


    //待基层单位下发
    String BIZ_TASK_WORK_STATUS_TO_DEPT_FENPEI = "0";
    //待民警签收
    String BIZ_TASK_WORK_STATUS_TO_POLICE_QIANSHOU = "1";
    //待民警反馈
    String BIZ_TASK_WORK_STATUS_TO_POLICE_FEEDBACK = "2";
    //民警已反馈
    String BIZ_TASK_WORK_STATUS_TO_POLICE_COMPLETE = "3";
    //中心已签收
    String BIZ_TASK_WORK_STATUS_CENTER_ALREADY_QIANSHOU  = "4";
    //中心已拒绝
    String BIZ_TASK_WORK_STATUS_CENTER_ALREADY_REFUSED  = "5";

    //roke_key,合成中心民警角色
    String ROLE_KEY_CENTER_POLICE = "hezhanzhongxin";

    public static final Map<String, Integer> STATUS_PERCENT_MAP = Map.of(
            "10", 15,
            "11", 15,
            "30", 30,
            "31", 40,
            "40", 50,
            "41", 60,
            "50", 85,
            "51", 85,
            "52", 95,
            "60", 100
    );

    public static int getPercentByStatus(String status) {
        return STATUS_PERCENT_MAP.getOrDefault(status, 0);
    }
}
