模拟uKey登录,场景测试

develop
bayuzhen 2024-08-26 16:05:37 +08:00
parent 50d67ff66f
commit 2d147f8161
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ public class UserRepository extends JdbcGenericDao<User, Long> {
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<String, Object> params = MapTools.simpleMap("user_id", userId);
Map<String, Object> params = MapTools.simpleMap("userId", userId);
List<User> list = this.list(User.class, sql, params);
// Assert.isTrue(list.size() <= 1, "该天融信用户已存在");
return list.isEmpty() ? null : list.get(0);