You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					125 lines
				
				6.6 KiB
			
		
		
			
		
	
	
					125 lines
				
				6.6 KiB
			| 
								 
											3 years ago
										 
									 | 
							
								package com.ynxbd.common.bean.enums;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import lombok.ToString;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * 微信电子健康卡异常信息
							 | 
						||
| 
								 | 
							
								 *
							 | 
						||
| 
								 | 
							
								 * @Author wsq
							 | 
						||
| 
								 | 
							
								 * @Date 2020/10/13 11:45
							 | 
						||
| 
								 | 
							
								 * @Copyright @ 2020 云南新八达科技有限公司 All rights reserved.
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								@ToString
							 | 
						||
| 
								 | 
							
								public enum HealthCardRespCodeEnum {
							 | 
						||
| 
								 | 
							
								    // 自定义
							 | 
						||
| 
								 | 
							
								    ERROR("500", "注册失败", true, false),
							 | 
						||
| 
								 | 
							
								    // 自定义防止没有的响应码带来的错误
							 | 
						||
| 
								 | 
							
								    CONTINUE("202", "注册失败[继续执行]", false, true),
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    // A0("0", "请求成功", false),
							 | 
						||
| 
								 | 
							
								    A1("1", "适配平台出错,联系工作人员协助排查", false, true),
							 | 
						||
| 
								 | 
							
								    _1("-1", "卡管系统异常,联系工作人员协助排查", false, true),
							 | 
						||
| 
								 | 
							
								    _2("-2", "HTTP服务异常,联系工作人员协助排查", false, true),
							 | 
						||
| 
								 | 
							
								    _110086("-110086", "卡管平台返回错误", false, true),
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    //
							 | 
						||
| 
								 | 
							
								    A10001("10001", "发生了异常", false, true),
							 | 
						||
| 
								 | 
							
								    A10002("10002", "请求参数req不能为空", false, true),
							 | 
						||
| 
								 | 
							
								    A10003("10003", "请求参数commonIn不能为空", false, true),
							 | 
						||
| 
								 | 
							
								    A10004("10004", "uid不能为空", false, true),
							 | 
						||
| 
								 | 
							
								    A10005("10005", "数据库错误,联系工作人员协助排查", false, true),
							 | 
						||
| 
								 | 
							
								    A10006("10006", "健康卡号不能为空", false, true),
							 | 
						||
| 
								 | 
							
								    A10007("10007", "健康卡授权码不能为空", false, true),
							 | 
						||
| 
								 | 
							
								    A10008("10008", "健康卡授权码不存在", false, true), // 可能是已使用或已失效
							 | 
						||
| 
								 | 
							
								    A10009("10009", "健康卡授权码不合法", false, true),
							 | 
						||
| 
								 | 
							
								    A10010("10010", "系统接口异常,请尝试刷新页面", false, true), // 微信身份码wechatCode不存在,可能是已使用或已失效
							 | 
						||
| 
								 | 
							
								    A10011("10011", "微信身份码不合法", false, true),
							 | 
						||
| 
								 | 
							
								    A10012("10012", "微信身份码不能为空", false, true),
							 | 
						||
| 
								 | 
							
								    //=====
							 | 
						||
| 
								 | 
							
								    A10013("10013", "姓名不能为空", true, true),
							 | 
						||
| 
								 | 
							
								    A10014("10014", "证件号不能为空", true, true),
							 | 
						||
| 
								 | 
							
								    A10015("10015", "核身不通过", true, true),
							 | 
						||
| 
								 | 
							
								    //
							 | 
						||
| 
								 | 
							
								    _10017("-10017", "获取健康卡失败", false, true),
							 | 
						||
| 
								 | 
							
								    A10018("10018", "二维码不能为空", false, true),
							 | 
						||
| 
								 | 
							
								    _10019("-10019", "健康卡不存在", true, true),
							 | 
						||
| 
								 | 
							
								    A10020("10020", "二维码识别失败", false, true),
							 | 
						||
| 
								 | 
							
								    A10021("10021", "健康卡授权码检验异常", false, true),
							 | 
						||
| 
								 | 
							
								    // =====
							 | 
						||
| 
								 | 
							
								    _10022("-10022", "该手机号码对应的电子卡已经存在,请勿重复申请", true, true),
							 | 
						||
| 
								 | 
							
								    _10023("-10023", "该证件号码对应的电子卡已经存在,请勿重复申请", true, true),
							 | 
						||
| 
								 | 
							
								    _10024("-10024", "终端信息不合法,调用失败", false, true),
							 | 
						||
| 
								 | 
							
								    _10025("-10025", "缺少参数(姓名、性别、民族、手机号码、证件类型、证件号码为必填项)", true, true),
							 | 
						||
| 
								 | 
							
								    // 禁止继续执行
							 | 
						||
| 
								 | 
							
								    _10026("-10026", "身份证格式不合法", true, false),
							 | 
						||
| 
								 | 
							
								    _10027("-10027", "身份证不合法", true, false),
							 | 
						||
| 
								 | 
							
								    _10028("-10028", "主索引合适身份证号码重复", false, true),
							 | 
						||
| 
								 | 
							
								    _10029("-10029", "请检查加密机链接", false, true),
							 | 
						||
| 
								 | 
							
								    //
							 | 
						||
| 
								 | 
							
								    A10030("10030", "没有电子健康卡号", false, true),
							 | 
						||
| 
								 | 
							
								    _10031("-10031", "该电子卡已被冻结或注销,无法绑定", true, true),
							 | 
						||
| 
								 | 
							
								    _10032("-10032", "该身份证号码对应的电子卡已经存在,请勿重复申请", false, true),
							 | 
						||
| 
								 | 
							
								    A10033("10033", "患者ID不能为空", false, true),
							 | 
						||
| 
								 | 
							
								    A10034("10034", "接口调用次数限制", false, true), // 扫码入驻七天后仍未上线的医院,限制接口调用次数,具体为100次/天/接口,上线后自动解除限制。
							 | 
						||
| 
								 | 
							
								    A10035("10035", "业务流水号不能为空", false, true),
							 | 
						||
| 
								 | 
							
								    A10036("10036", "消息推送时间不能为空或格式错误", false, true),
							 | 
						||
| 
								 | 
							
								    A10037("10037", "requestId字段长度超出限制(512byte)", false, true),
							 | 
						||
| 
								 | 
							
								    _10038("-10038", "核身异常", false, true),
							 | 
						||
| 
								 | 
							
								    _10039("-10039", "ocr识别失败", false, true),
							 | 
						||
| 
								 | 
							
								    _10040("-10040", "ocr失败异常", false, true),
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    A10041("10041", "ocr图片内容不得为空", false, true),
							 | 
						||
| 
								 | 
							
								    A10042("10042", "参数错误", false, true),
							 | 
						||
| 
								 | 
							
								    A10043("10043", "手机号不得为空", true, true),
							 | 
						||
| 
								 | 
							
								    _10044("-10044", "卡管平台返回错误,联系工作人员协助排查", false, true),
							 | 
						||
| 
								 | 
							
								    A10048("10048", "更新健康卡信息失败", false, true),
							 | 
						||
| 
								 | 
							
								    A10050("10050", "开始日期不能大于或等于结束日期", false, true),
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    A10051("10051", "日期格式错误", true, false),
							 | 
						||
| 
								 | 
							
								    A10053("10053", "订单号不存在", false, true),
							 | 
						||
| 
								 | 
							
								    A10054("10054", "重复请求", false, true),
							 | 
						||
| 
								 | 
							
								    A10055("10055", "模板ID不得为空", false, true),
							 | 
						||
| 
								 | 
							
								    A10056("10056", "输入的姓名与卡管保存的姓名不一致", true, true),
							 | 
						||
| 
								 | 
							
								    A10057("10057", "绑定人数已达上限,请前往卡包或电子居民健康卡小程序解绑", true, true),
							 | 
						||
| 
								 | 
							
								    _10058("-10058", "证件库中无此身份证记录", true, true),
							 | 
						||
| 
								 | 
							
								    _10059("-10059", "证件库服务异常", true, true),
							 | 
						||
| 
								 | 
							
								    //
							 | 
						||
| 
								 | 
							
								    _10060("-10060", "姓名和身份证号不一致", true, false),
							 | 
						||
| 
								 | 
							
								    _10061("-10061", "非法身份证号(长度、校验位等不正确)", true, false),
							 | 
						||
| 
								 | 
							
								    _10062("-10062", "非法姓名", true, false),
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    //
							 | 
						||
| 
								 | 
							
								    A100571("100571", "绑定微信数超过5个,请解绑不常用的微信后再重试", true, true), // 健康卡绑定超过5个微信
							 | 
						||
| 
								 | 
							
								    A100572("100572", "绑定非实名卡数超过2张非身份证卡,请解绑不常用的卡后再重试", true, true), // 微信绑定超过2张非身份证卡
							 | 
						||
| 
								 | 
							
								    A100573("100573", "绑定健康卡数超过10张卡,请解绑不常用的卡后再重试", true, true), // 微信绑定超过10张卡
							 | 
						||
| 
								 | 
							
								    //
							 | 
						||
| 
								 | 
							
								    A20000("20000", "鉴权失败", false, true),
							 | 
						||
| 
								 | 
							
								    A20001("20001", "参数格式错误", false, true),
							 | 
						||
| 
								 | 
							
								    A20002("20002", "无效参数", false, true),
							 | 
						||
| 
								 | 
							
								    A20003("20003", "业务服务响应格式错误", false, true),
							 | 
						||
| 
								 | 
							
								    A20004("20004", "请求参数过长", false, true),
							 | 
						||
| 
								 | 
							
								    A21001("21001", "appToken不能为空", false, false),
							 | 
						||
| 
								 | 
							
								    A21002("21002", "非法appId或appSecret", false, false),
							 | 
						||
| 
								 | 
							
								    A21003("21003", "appToken超时", false, false),
							 | 
						||
| 
								 | 
							
								    A21004("21004", "非法appToken或hospitalId", false, false),
							 | 
						||
| 
								 | 
							
								    A21005("21005", "无权操作该医院ID", false, true),
							 | 
						||
| 
								 | 
							
								    A21006("21006", "签名错误", false, true),
							 | 
						||
| 
								 | 
							
								    A21007("21007", "接口调用被限制", false, true);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    public final String STATUS;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    public final String MESSAGE;
							 | 
						||
| 
								 | 
							
								    // 是否返回前端
							 | 
						||
| 
								 | 
							
								    public final boolean IS_RESULT;
							 | 
						||
| 
								 | 
							
								    // 第三方错误-->是否继续执行
							 | 
						||
| 
								 | 
							
								    public final boolean IS_CONTINUE;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    HealthCardRespCodeEnum(String STATUS, String MESSAGE, boolean IS_RESULT, boolean IS_CONTINUE) {
							 | 
						||
| 
								 | 
							
								        this.STATUS = STATUS;
							 | 
						||
| 
								 | 
							
								        this.MESSAGE = MESSAGE;
							 | 
						||
| 
								 | 
							
								        this.IS_RESULT = IS_RESULT;
							 | 
						||
| 
								 | 
							
								        this.IS_CONTINUE = IS_CONTINUE;
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |