package com.bonus.core.pay.common.constants;

public enum LeRetCodeEnum {
   SUCC(10000, "成功"),
   SUCC_MAC_ORD(10001, "设备单号重复,特殊成功标识"),
   FAIL(40004, "失败"),
   PAY_BALANCE_NO_ENOUGH(50001, "余额不足"),
   PAY_PERSONAL_NO_EXIT(50002, "人员不存在"),
   PAY_CARD_NO_EXIT(50003, "卡号不正确"),
   PAY_CARD_STATE_ABNORMAL(50004, "卡片异常"),
   PAY_ACC_STATE_ABNORMAL(50005, "账户异常"),
   PAY_MACHINE_NO_EXIT(50006, "设备不存在"),
   PAY_MACHINE_NO_ALLOW(50007, "不允许当前设备消费"),
   PAY_PERSONAL_NO_ALLOWTYPE(50008, "当前人员未设置类别消费"),
   PAY_TIME_NO_EXIT(50009, "时间段错误"),
   PAY_TIME_QUOTA_LIMIT(50010, "超出限额限次"),
   PAY_SELECT_ORD_NO_EXIT(50011, "订单号不存在"),
   PAY_QRCODE_ORD_ERROR(50012, "扫码支付失败"),
   PAY_QRCODE_ING(50013, "扫码支付中"),
   PAY_TYPE_NO_OPEN(50014, "支付方式未开通"),
   PAY_ORD_ID_EXIT(50015, "该订单已存在"),
   PAY_RECHARGE_NO_EXIT(50016, "充值记录不存在"),
   PAY_THIRD_PAY_FAIL(50017, "第三方支付失败"),
   PAY_QR_ILLEGAL(50018, "非法二维码"),
   PAY_QR_NOT_PAY(50019, "费支付二维码"),
   PAY_COUPON_UNIVERSAL_DISABLED(50020, "通用券不可用"),
   PAY_ORD_LOSE(50021, "该订单已失效"),
   PAY_ORD_CANCEL(50022, "该订单已取消"),
   PAY_ORD_ING(50023, "订单进行中"),
   PAY_ORD_END(50024, "该订单已完结"),
   PAY_ORD_EXISTS_UN_PAY(50025, "存在未支付订单"),
   PAY_ORD_LESS_THAN_DELIVERY_MIN_AMOUNT(50026, "未达到起送金额"),
   CORE_PARAM_ERROR(50501, "上送参数错误"),
   BAS_CONF_NOT_SET(50502, "基础配置没有设置"),
   CORE_DATE_START_GREATER_END(50503, "开始时间大于结束时间"),
   BAS_INTERVAL_NO_EXIT(50504, "餐次信息不存在"),
   CORE_IMPORT_FORMAT_ERR(50601, "导入格式错误"),
   CORE_IMPORT_EMPTY(50602, "导入对象为空"),
   CORE_IMPORT_FIELD_EMPTY(50603, "导入字段为空"),
   ACC_CRAD_NUM_EXIST(51001, "餐卡卡序列号已经存在"),
   ACC_STATE_EXCEPTION(51002, "账户状态异常"),
   ACC_CARD_NUM_MAX_LIMIT(51003, "卡号已经达到最大限制"),
   ACC_DATA_ALREADY_EXIST(51004, "数据已经存在"),
   ACC_SUBRULE_ALREADY_EXIST(51005, "存在其他类型的补贴规则"),
   RECHARGE_NO_AUTH(51006, "充值没有权限"),
   ACC_INFO_NO_EXIT(51007, "账户信息不存在"),
   RECHARGE_NO_EXIST(51008, "充值记录不存在"),
   REFUND_AMOUNT_GREATER(51009, "退款金额大于对应金额"),
   PAY_FAIL_REFUSE_REFUND(51010, "未支付成功,不允许退款"),
   CUST_CLOSE_REFUSE_REFUND(51011, "人员注销,不允许退款"),
   NOT_REPEAT_REFUND(51012, "不允许重复退款"),
   ACC_BAL_NOT_ENOUGH(51013, "账户余额不足"),
   BAS_TABLE_IN_USE(51501, "餐桌正在使用中"),
   BAS_TABLE_NOT_IN_USE(51502, "餐桌非使用中"),
   BAS_TABLE_NOT_BIND_ORD(51503, "餐桌没有绑定订单"),
   BAS_CANTEEN_NO_EXIT(51504, "食堂信息不存在"),
   BAS_NO_SYS_CARDINFO(51505, "系统卡信息为空"),
   CUST_PERSONAL_NO_EXIT(52001, "人员不存在"),
   CUST_CASUAL_NO_BIND(52002, "临时人员没有绑定"),
   CUSTINFO_ALREADY_EXISTS(52003, "人员信息已经存在"),
   CUST_ROOT_DEL_NOT_ALLOW(52004, "根节点不允许删除"),
   CUST_EXIST_RELAT(52005, "存在人员关联"),
   CUST_PHOTO_FACE_FAIL(52006, "生成失败"),
   CUST_STATE_EXCEPTION(52007, "人员状态异常"),
   CUST_LIMIT_ID_MAX_LIMIT(52008, "人员限制id已经达到最大限制"),
   CUST_PSN_TYPE_OUT_RANGE(52009, "人员类别超出范围"),
   CUST_CASUAL_UNABLE_BIND(52010, "临时人员无法绑定"),
   CUST_IMPORT_FORMAT_ERR(52011, "导入字段格式错误"),
   MAC_NO_HEADER_SN(53001, "缺少SN"),
   MAC_APP_VERSION_NOEXIT(53002, "未找到更新包"),
   MAC_APP_VERSION_NOTUP(53003, "APP已是最新版本"),
   MAC_IS_NOT_EMPTY_MEALS_COUNTER(53004, "取餐柜不是空的"),
   MAC_NO_PARAM_LIST(53005, "list参数为空"),
   MAC_NO_PARAM_ENTITY(53006, "实体参数为空"),
   MAC_NO_PARAM_VARIABLE(53007, "变量参数为空"),
   MAC_ERR_SQL_DATE(53008, "数据库数据错误"),
   MAC_ERR_BIND(53009, "绑定餐盘失败"),
   MAC_MACHINE_NO_EXIT(53010, "设备资料不存在"),
   MAC_MACHINE_NO_BIND_CANTEEN(53011, "该设备没有绑定食堂"),
   MENU_NO_RECIPE(53501, "传入菜谱不存在"),
   MENU_NO_RECIPE_TYPE(53502, "传入菜谱类型不存在"),
   MENU_REPEAT_NAME(53503, "名称重复"),
   MENU_IS_USED_DISHES_COOK(53504, "菜品灶类已使用"),
   MENU_REPEAT_DISHES_LABEL(53505, "菜品标签名称重复"),
   MENU_IS_USED_DISHES_LABEL(53506, "菜品标签已使用"),
   MENU_EXCEED_MAX_LIMIT(53507, "超出数量限制"),
   MENU_NO_MATERIAL(53508, "菜品没有原材料"),
   MENU_IS_USED_DISHES(53509, "菜品已使用"),
   MENU_NOT_EXIST_DISHES(53510, "菜品不存在"),
   MENU_NOT_EXIST_RECIPE_DETAIL(53511, "菜谱详情不存在"),
   MENU_NOT_EXIST_RECIPE(53512, "菜谱不存在"),
   MENU_REPEAT_DISHES_TASTE(53513, "菜品口味名称重复"),
   MENU_IS_USED_DISHES_TASTE(53514, "菜品口味已使用"),
   MENU_REPEAT_DISHES_TYPE(53515, "菜品类型名称重复"),
   MENU_IS_USED_DISHES_TYPE(53516, "菜品类型已使用"),
   MENU_IS_USED_MATERIAL(53517, "菜品原料已使用"),
   MENU_NO_DISHES(53518, "没有菜品"),
   MENU_NOT_EXIST_PACKAGE_MEAL(53519, "套餐不存在"),
   MENU_NO_PROPORTION(53520, "没有占比"),
   MENU_IS_USED_PRODUCT(53521, "商品已使用"),
   MENU_NOT_EXIST_PRODUCT(53522, "商品不存在"),
   MENU_ERR_RECIPE_TYPE(53523, "菜谱类型错误"),
   MENU_ERR_RECIPE_DEFAULT_LIMIT(53524, "默认菜谱数量错误"),
   MENU_REPEAT_DISHES(53525, "菜品重复"),
   MENU_REPEAT_PRODUCT(53526, "商品重复"),
   MENU_REPEAT_PACKAGE_MEAL(53527, "套餐重复"),
   MENU_NO_APPLY_DATE(53528, "没有启用日期"),
   MENU_NO_PARAM_LIST(53529, "list参数为空"),
   MENU_NO_PARAM_ENTITY(53530, "实体参数为空"),
   MENU_NO_PARAM_VARIABLE(53531, "变量参数为空"),
   MENU_ERR_SQL_DATE(53532, "数据库数据错误"),
   MENU_EXCEED_RESTRICT_NUM(53533, "超出个人限购数量"),
   MENU_EXCEED_SURPLUS_NUM(53534, "库存不足或者超出个人限购数量"),
   MENU_NOT_EXIST_TIME_INTERVAL(53535, "餐次不存在"),
   MENU_REPEAT_RECIPE(53536, "菜谱重复"),
   MENU_NOT_IN_TIME_INTERVAL(53537, "不在时间段内"),
   MENU_REPEAT_DISHES_COOK(53538, "名称重复"),
   MENU_IS_USED_DISHES_CLASSIFY(53539, "菜品分类已使用"),
   MENU_IS_USED_DISHES_EFFECT(53540, "菜品功效已使用"),
   MENU_IS_USED_DISHES_STYLE(53541, "菜系已使用"),
   MENU_IS_USED_DISHES_SUIT(53542, "适宜人群已使用"),
   MERCHANT_NOT_REGISTER(54001, "商家未注册"),
   MKT_ERROR_PARAM(54501, "入参错误"),
   MGR_REPEAT_ROLE_NAME(57001, "角色名称重复"),
   MGR_REPEAT_USER_NAME(57002, "用户名称重复"),
   DRP_NO_SUPPLIER_ID(57501, "传入的供应商id为空"),
   DRP_NO_WAREHOUSE_ID(57502, "传入的仓库id为空"),
   DRP_NO_UNIT_ID(57503, "传入的计量单位id为空"),
   DRP_REPEAT_UNIT(53504, "计量单位名称重复"),
   DRP_REPEAT_HOUSE_MATERIAL(53505, "仓库原料重复"),
   DRP_EXIST_MATERIAL_NUM(53506, "库存不为0"),
   DRP_NOT_EXIST_HOUSE_MATERIAL(53507, "库存配置不存在"),
   DRP_IS_USED_HOUSE_MATERIAL(53508, "库存配置已使用"),
   DRP_ERR_SQL_DATE(53509, "数据库数据错误"),
   DRP_NOT_EXIST_INTO_INVENTORY(53521, "入库记录不存在"),
   DRP_ALREADY_INTO_INVENTORY(53511, "已入库"),
   DRP_INVENTORY_DEFICIENCY(53512, "原料库存不足"),
   DRP_NOT_EXIST_OUT_INVENTORY(53513, "出库记录不存在"),
   DRP_ALREADY_OUT_INVENTORY(53514, "已入库"),
   DRP_NOT_EXIST_PURCHASE_ORDER(53515, "采购订单不存在"),
   DRP_NOT_EXIST_PURCHASE_PLAN(53516, "采购计划不存在"),
   DRP_NOT_EXIST_ISSUE(53517, "采购计划不存在"),
   DRP_REPEAT_MATERIAL_CATEGORY(53518, "原料类别名称重复"),
   DRP_NOT_EXIST_CHECK_INVENTORY(53519, "盘点记录不存在"),
   DRP_ALREADY_CHECK_INVENTORY(53520, "已盘点"),
   ORD_TRADE_ASSEM_ERR(55001, "组装交易明细数据错误"),
   ORD_REFUND_FAIL(55002, "订单退款失败"),
   ORD_INFO_NO_EXIT(55003, "订单信息不存在"),
   ORD_UNABLE_SUBSCRIBE(55004, "不能预订订单"),
   ORD_STATE_ERR(55005, "订单状态错误"),
   PRE_ORDER_FAIL(56501, "预下单失败"),
   PRE_API_FAIL(56502, "API调用失败"),
   CUSTOM_FLOW_EXE_FAIL(56503, "流程执行结果失败"),
   CUSTOM_FLOW_EXE_EXCEPTION(56504, "流程执行异常（非自定义异常）"),
   MENUAI_NO_CONFIG(57051, "该档口菜品识别服务未配置!"),
   MENUAI_NO_UPLOAD_DTO(57052, "菜品图片上传接口缺少入参"),
   MENUAI_NO_RECIPE(57053, "今日菜谱该餐次无菜，请先配置菜谱"),
   MENUAI_REGIST_EXCEPTION(57080, "注册异常"),
   MENUAI_REGISTING(57081, "注册中..."),
   DD_LACK_DD_CONFIG_PARAM(57151, "缺少公司id和应用id入参!"),
   DD_NOT_EXIT_SOURCE(57152, "不存在此来源!"),
   FACE_REGISTER_FAIL(59000, "人脸照片上传注册失败!");

   private final Integer key;
   private final String desc;

   private LeRetCodeEnum(Integer key, String desc) {
      this.key = key;
      this.desc = desc;
   }

   public static boolean ifSuccess(Integer code) {
      return SUCC.getKey().equals(code);
   }

   public Integer getKey() {
      return this.key;
   }

   public String getDesc() {
      return this.desc;
   }

   // $FF: synthetic method
   private static LeRetCodeEnum[] $values() {
      return new LeRetCodeEnum[]{SUCC, SUCC_MAC_ORD, FAIL, PAY_BALANCE_NO_ENOUGH, PAY_PERSONAL_NO_EXIT, PAY_CARD_NO_EXIT, PAY_CARD_STATE_ABNORMAL, PAY_ACC_STATE_ABNORMAL, PAY_MACHINE_NO_EXIT, PAY_MACHINE_NO_ALLOW, PAY_PERSONAL_NO_ALLOWTYPE, PAY_TIME_NO_EXIT, PAY_TIME_QUOTA_LIMIT, PAY_SELECT_ORD_NO_EXIT, PAY_QRCODE_ORD_ERROR, PAY_QRCODE_ING, PAY_TYPE_NO_OPEN, PAY_ORD_ID_EXIT, PAY_RECHARGE_NO_EXIT, PAY_THIRD_PAY_FAIL, PAY_QR_ILLEGAL, PAY_QR_NOT_PAY, PAY_COUPON_UNIVERSAL_DISABLED, PAY_ORD_LOSE, PAY_ORD_CANCEL, PAY_ORD_ING, PAY_ORD_END, PAY_ORD_EXISTS_UN_PAY, PAY_ORD_LESS_THAN_DELIVERY_MIN_AMOUNT, CORE_PARAM_ERROR, BAS_CONF_NOT_SET, CORE_DATE_START_GREATER_END, BAS_INTERVAL_NO_EXIT, CORE_IMPORT_FORMAT_ERR, CORE_IMPORT_EMPTY, CORE_IMPORT_FIELD_EMPTY, ACC_CRAD_NUM_EXIST, ACC_STATE_EXCEPTION, ACC_CARD_NUM_MAX_LIMIT, ACC_DATA_ALREADY_EXIST, ACC_SUBRULE_ALREADY_EXIST, RECHARGE_NO_AUTH, ACC_INFO_NO_EXIT, RECHARGE_NO_EXIST, REFUND_AMOUNT_GREATER, PAY_FAIL_REFUSE_REFUND, CUST_CLOSE_REFUSE_REFUND, NOT_REPEAT_REFUND, ACC_BAL_NOT_ENOUGH, BAS_TABLE_IN_USE, BAS_TABLE_NOT_IN_USE, BAS_TABLE_NOT_BIND_ORD, BAS_CANTEEN_NO_EXIT, BAS_NO_SYS_CARDINFO, CUST_PERSONAL_NO_EXIT, CUST_CASUAL_NO_BIND, CUSTINFO_ALREADY_EXISTS, CUST_ROOT_DEL_NOT_ALLOW, CUST_EXIST_RELAT, CUST_PHOTO_FACE_FAIL, CUST_STATE_EXCEPTION, CUST_LIMIT_ID_MAX_LIMIT, CUST_PSN_TYPE_OUT_RANGE, CUST_CASUAL_UNABLE_BIND, CUST_IMPORT_FORMAT_ERR, MAC_NO_HEADER_SN, MAC_APP_VERSION_NOEXIT, MAC_APP_VERSION_NOTUP, MAC_IS_NOT_EMPTY_MEALS_COUNTER, MAC_NO_PARAM_LIST, MAC_NO_PARAM_ENTITY, MAC_NO_PARAM_VARIABLE, MAC_ERR_SQL_DATE, MAC_ERR_BIND, MAC_MACHINE_NO_EXIT, MAC_MACHINE_NO_BIND_CANTEEN, MENU_NO_RECIPE, MENU_NO_RECIPE_TYPE, MENU_REPEAT_NAME, MENU_IS_USED_DISHES_COOK, MENU_REPEAT_DISHES_LABEL, MENU_IS_USED_DISHES_LABEL, MENU_EXCEED_MAX_LIMIT, MENU_NO_MATERIAL, MENU_IS_USED_DISHES, MENU_NOT_EXIST_DISHES, MENU_NOT_EXIST_RECIPE_DETAIL, MENU_NOT_EXIST_RECIPE, MENU_REPEAT_DISHES_TASTE, MENU_IS_USED_DISHES_TASTE, MENU_REPEAT_DISHES_TYPE, MENU_IS_USED_DISHES_TYPE, MENU_IS_USED_MATERIAL, MENU_NO_DISHES, MENU_NOT_EXIST_PACKAGE_MEAL, MENU_NO_PROPORTION, MENU_IS_USED_PRODUCT, MENU_NOT_EXIST_PRODUCT, MENU_ERR_RECIPE_TYPE, MENU_ERR_RECIPE_DEFAULT_LIMIT, MENU_REPEAT_DISHES, MENU_REPEAT_PRODUCT, MENU_REPEAT_PACKAGE_MEAL, MENU_NO_APPLY_DATE, MENU_NO_PARAM_LIST, MENU_NO_PARAM_ENTITY, MENU_NO_PARAM_VARIABLE, MENU_ERR_SQL_DATE, MENU_EXCEED_RESTRICT_NUM, MENU_EXCEED_SURPLUS_NUM, MENU_NOT_EXIST_TIME_INTERVAL, MENU_REPEAT_RECIPE, MENU_NOT_IN_TIME_INTERVAL, MENU_REPEAT_DISHES_COOK, MENU_IS_USED_DISHES_CLASSIFY, MENU_IS_USED_DISHES_EFFECT, MENU_IS_USED_DISHES_STYLE, MENU_IS_USED_DISHES_SUIT, MERCHANT_NOT_REGISTER, MKT_ERROR_PARAM, MGR_REPEAT_ROLE_NAME, MGR_REPEAT_USER_NAME, DRP_NO_SUPPLIER_ID, DRP_NO_WAREHOUSE_ID, DRP_NO_UNIT_ID, DRP_REPEAT_UNIT, DRP_REPEAT_HOUSE_MATERIAL, DRP_EXIST_MATERIAL_NUM, DRP_NOT_EXIST_HOUSE_MATERIAL, DRP_IS_USED_HOUSE_MATERIAL, DRP_ERR_SQL_DATE, DRP_NOT_EXIST_INTO_INVENTORY, DRP_ALREADY_INTO_INVENTORY, DRP_INVENTORY_DEFICIENCY, DRP_NOT_EXIST_OUT_INVENTORY, DRP_ALREADY_OUT_INVENTORY, DRP_NOT_EXIST_PURCHASE_ORDER, DRP_NOT_EXIST_PURCHASE_PLAN, DRP_NOT_EXIST_ISSUE, DRP_REPEAT_MATERIAL_CATEGORY, DRP_NOT_EXIST_CHECK_INVENTORY, DRP_ALREADY_CHECK_INVENTORY, ORD_TRADE_ASSEM_ERR, ORD_REFUND_FAIL, ORD_INFO_NO_EXIT, ORD_UNABLE_SUBSCRIBE, ORD_STATE_ERR, PRE_ORDER_FAIL, PRE_API_FAIL, CUSTOM_FLOW_EXE_FAIL, CUSTOM_FLOW_EXE_EXCEPTION, MENUAI_NO_CONFIG, MENUAI_NO_UPLOAD_DTO, MENUAI_NO_RECIPE, MENUAI_REGIST_EXCEPTION, MENUAI_REGISTING, DD_LACK_DD_CONFIG_PARAM, DD_NOT_EXIT_SOURCE, FACE_REGISTER_FAIL};
   }
}
