From b0932123072a837e376e64de2c3417f045462cc3 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期二, 08 四月 2025 17:27:32 +0800
Subject: [PATCH] 新增PDA一键收货功能
---
rsf-server/src/main/java/com/vincent/rsf/server/common/domain/PageParam.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/common/domain/PageParam.java b/rsf-server/src/main/java/com/vincent/rsf/server/common/domain/PageParam.java
index aaed56c..7f8604e 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/common/domain/PageParam.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/common/domain/PageParam.java
@@ -98,9 +98,9 @@
key = Utils.toSymbolCase(key, '_');
}
if (like) {
- queryWrapper.like(key, val);
+ queryWrapper.like("`" + key + "`", val);
} else {
- queryWrapper.eq(key, val);
+ queryWrapper.eq("`" + key + "`", val);
}
}
}
@@ -152,9 +152,9 @@
String condition = where.getCondition();
if (i == 0) {
- queryWrapper.and(wrapper -> wrapper.like(column, condition));
+ queryWrapper.and(wrapper -> wrapper.like("`" + column + "`", condition));
} else {
- queryWrapper.or().like(column, condition);
+ queryWrapper.or().like("`" + column + "`", condition);
}
}
}
--
Gitblit v1.9.1