mirror of https://gitee.com/xiaonuobase/snowy
【修复】修复 #I6X76X 排序字段验证bug
parent
3ff79b2c40
commit
4870ad6028
|
@ -37,7 +37,7 @@ public enum CommonSortOrderEnum {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void validate(String value) {
|
public static void validate(String value) {
|
||||||
boolean flag = ASC.getValue().toLowerCase().equals(value) || DESC.getValue().toLowerCase().equals(value);
|
boolean flag = ASC.getValue().equals(value) || DESC.getValue().equals(value);
|
||||||
if(!flag) {
|
if(!flag) {
|
||||||
throw new CommonException("不支持该排序方式:{}", value);
|
throw new CommonException("不支持该排序方式:{}", value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue