From 4770b0d3e33f27f58ad0ccc1cfb70ab223018b25 Mon Sep 17 00:00:00 2001
From: hewenqiang <1527468660@qq.com>
Date: 星期三, 16 三月 2022 16:53:17 +0800
Subject: [PATCH] fix 修复根据用户ID查询菜单信息SQL报错。`status`字段为char类型,应该传字符类型,此处存在隐式转换问题。(MySQL能自动转换,PostgreSQL转换报错)。

---
 ruoyi-oss/src/main/java/com/ruoyi/oss/enumd/OssEnumd.java |   21 +++++----------------
 1 files changed, 5 insertions(+), 16 deletions(-)

diff --git a/ruoyi-oss/src/main/java/com/ruoyi/oss/enumd/OssEnumd.java b/ruoyi-oss/src/main/java/com/ruoyi/oss/enumd/OssEnumd.java
index 57f232a..e16a673 100644
--- a/ruoyi-oss/src/main/java/com/ruoyi/oss/enumd/OssEnumd.java
+++ b/ruoyi-oss/src/main/java/com/ruoyi/oss/enumd/OssEnumd.java
@@ -1,6 +1,5 @@
 package com.ruoyi.oss.enumd;
 
-import com.ruoyi.common.utils.StringUtils;
 import com.ruoyi.oss.service.impl.AliyunOssStrategy;
 import com.ruoyi.oss.service.impl.MinioOssStrategy;
 import com.ruoyi.oss.service.impl.QcloudOssStrategy;
@@ -39,25 +38,15 @@
 
     private final String value;
 
-    private final Class<?> serviceClass;
+    private final Class<?> beanClass;
 
-    public static Class<?> getServiceClass(String value) {
-        for (OssEnumd clazz : values()) {
-            if (clazz.getValue().equals(value)) {
-                return clazz.getServiceClass();
+    public static OssEnumd find(String value) {
+        for (OssEnumd enumd : values()) {
+            if (enumd.getValue().equals(value)) {
+                return enumd;
             }
         }
         return null;
     }
-
-    public static String getServiceName(String value) {
-        for (OssEnumd clazz : values()) {
-            if (clazz.getValue().equals(value)) {
-                return StringUtils.uncapitalize(clazz.getServiceClass().getSimpleName());
-            }
-        }
-        return null;
-    }
-
 
 }

--
Gitblit v1.9.3