模拟uKey登录,场景测试
parent
50d67ff66f
commit
2d147f8161
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue