Commit a332715b by wqc

111

parent 8f1741c5
......@@ -103,6 +103,9 @@ public class User extends BaseEntity implements Serializable {
@ApiModelProperty(value = "是否启用")
private Boolean enabled;
@ApiModelProperty(value = "是否为单点登录账号")
private Integer ssoType;
@ApiModelProperty(value = "是否为admin账号", hidden = true)
private Boolean isAdmin = false;
......
......@@ -136,7 +136,7 @@ public interface UserRepository extends JpaRepository<User, Long>, JpaSpecificat
* @param phone/
* @return /
*/
@Query(value = "SELECT * FROM sys_user u WHERE u.phone= ?1", nativeQuery = true)
@Query(value = "SELECT * FROM sys_user u WHERE u.phone= ?1 AND u.sso_type=1 ", nativeQuery = true)
User findBySysname(String phone);
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment