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);