RuoYi
2023-04-10 a4c35cecaab01c211e7ba077e63a0941ef4335b2
src/main/java/com/ruoyi/common/core/text/Convert.java
@@ -562,17 +562,12 @@
        switch (valueStr)
        {
            case "true":
                return true;
            case "false":
                return false;
            case "yes":
                return true;
            case "ok":
                return true;
            case "no":
                return false;
            case "1":
                return true;
            case "false":
            case "no":
            case "0":
                return false;
            default:
@@ -718,7 +713,7 @@
        }
        if (value instanceof Double)
        {
            return new BigDecimal((Double) value);
            return BigDecimal.valueOf((Double) value);
        }
        if (value instanceof Integer)
        {
@@ -899,7 +894,7 @@
     */
    public static String toSBC(String input, Set<Character> notConvertSet)
    {
        char c[] = input.toCharArray();
        char[] c = input.toCharArray();
        for (int i = 0; i < c.length; i++)
        {
            if (null != notConvertSet && notConvertSet.contains(c[i]))
@@ -941,7 +936,7 @@
     */
    public static String toDBC(String text, Set<Character> notConvertSet)
    {
        char c[] = text.toCharArray();
        char[] c = text.toCharArray();
        for (int i = 0; i < c.length; i++)
        {
            if (null != notConvertSet && notConvertSet.contains(c[i]))