商品模块代码提交
This commit is contained in:
@@ -32,7 +32,7 @@ public class SqlUtil {
|
|||||||
*/
|
*/
|
||||||
public static String escapeOrderBySql(String value) {
|
public static String escapeOrderBySql(String value) {
|
||||||
if (StrUtil.isNotEmpty(value)) {
|
if (StrUtil.isNotEmpty(value)) {
|
||||||
if (!check(value)) {
|
if (check(value)) {
|
||||||
throw new IllegalArgumentException("参数不符合规范,不能进行查询");
|
throw new IllegalArgumentException("参数不符合规范,不能进行查询");
|
||||||
}
|
}
|
||||||
if (value.length() > ORDER_BY_MAX_LENGTH) {
|
if (value.length() > ORDER_BY_MAX_LENGTH) {
|
||||||
|
|||||||
Reference in New Issue
Block a user