package com.ruoyi.personnel.enumeration; public enum AttachmentType { // 设备校准表名 SBJZ(1,"device_metric_record"), // 培训计划 明细表 PXJH(2,"cnas_person_training_detailed"), // 入职授权记录 RZSQ(3,"cnas_person_post_authorization_record"), ; private Integer type; private String value; AttachmentType(Integer type, String value) { this.type = type; this.value = value; } public Integer getType() { return type; } public void setType(Integer type) { this.type = type; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public static String getTypeValue(Integer type) { AttachmentType.values(); for(AttachmentType attachmentType : AttachmentType.values()) { if(attachmentType.getType().equals(type)) return attachmentType.getValue(); } return ""; } }