This commit is contained in:
Vinjor 2024-10-18 16:37:31 +08:00
parent 328c865bb6
commit b0df9941d9

View File

@ -64,7 +64,7 @@ public enum RecordTypeEnum {
* @param code code * @param code code
* @return cn.iocoder.yudao.common.SystemEnum * @return cn.iocoder.yudao.common.SystemEnum
**/ **/
public static RecordTypeEnum getRepairRole(String code) { public static RecordTypeEnum getEnumByCode(String code) {
for (RecordTypeEnum thisEnum : RecordTypeEnum.values()) { for (RecordTypeEnum thisEnum : RecordTypeEnum.values()) {
if (thisEnum.getCode().equalsIgnoreCase(code)) { if (thisEnum.getCode().equalsIgnoreCase(code)) {
// 找到对应的枚举 // 找到对应的枚举