admin
2021-09-30 1a1a315efb1b5dc294013126f35819e36565040c
src/main/java/org/yeshi/utils/generater/util/FormAnotationValidUtil.java
@@ -67,8 +67,8 @@
        }
        for (String st : checkBox.values()) {
            if (!st.contains(",")) {
                throw new AnotationException("复选框的内容格式错误,键值对要用逗号分隔");
            if (!st.contains(":")) {
                throw new AnotationException("复选框的内容格式错误,键值对要用:分隔");
            }
        }
    }
@@ -94,8 +94,8 @@
        }
        for (String st : radioGroup.values()) {
            if (!st.contains(",")) {
                throw new AnotationException("单选框的内容格式错误,键值对要用逗号分隔");
            if (!st.contains(":")) {
                throw new AnotationException("单选框的内容格式错误,键值对要用:分隔");
            }
        }
@@ -111,8 +111,8 @@
            }
        } else {
            for (String st : select.values()) {
                if (!st.contains(",")) {
                    throw new AnotationException("下拉框的内容格式错误,键值对要用逗号分隔");
                if (!st.contains(":")) {
                    throw new AnotationException("下拉框的内容格式错误,键值对要用:分隔");
                }
            }
        }