From 2d147f816129aeda050929657050fbd057b603e5 Mon Sep 17 00:00:00 2001 From: bayuzhen Date: Mon, 26 Aug 2024 16:05:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=8B=9FuKey=E7=99=BB=E5=BD=95?= =?UTF-8?q?=EF=BC=8C=E5=9C=BA=E6=99=AF=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/bocloud/sms/repository/UserRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bocloud.sms.storage/src/main/java/com/bocloud/sms/repository/UserRepository.java b/bocloud.sms.storage/src/main/java/com/bocloud/sms/repository/UserRepository.java index 97987f6..3aa6892 100644 --- a/bocloud.sms.storage/src/main/java/com/bocloud/sms/repository/UserRepository.java +++ b/bocloud.sms.storage/src/main/java/com/bocloud/sms/repository/UserRepository.java @@ -137,7 +137,7 @@ public class UserRepository extends JdbcGenericDao { public User getByUserId(String userId) { String sql = "select u.*, t.account tenant_account,t.name tenant_name, t.discount discount from users u left join tenant t on u.tenant_id = t.id where u.is_deleted = 0 and u.user_id = :userId "; - Map params = MapTools.simpleMap("user_id", userId); + Map params = MapTools.simpleMap("userId", userId); List list = this.list(User.class, sql, params); // Assert.isTrue(list.size() <= 1, "该天融信用户已存在"); return list.isEmpty() ? null : list.get(0);