Commit 6ae903bd authored by 喻春霖's avatar 喻春霖

添加eduid

parent d7a6ffb7
......@@ -10,6 +10,7 @@ import lombok.Data;
public class AuthUserInfo {
private String id;//uuid
private String eduId;
private String realName;//姓名
private UserType userType;//教师、学生
private String source;//来源
......
......@@ -26,10 +26,17 @@ public class ConvertMessageMapToBean {
});
}
AuthUserInfo authUserInfo = new AuthUserInfo();
if(StringUtils.isNotBlank(map.get("ID")))
if(StringUtils.isNotBlank(map.get("ID"))) {
authUserInfo.setId(map.get("ID").toString());
if(StringUtils.isNotBlank(map.get("XM")))
}
if(StringUtils.isNotBlank(map.get("EDUID"))) {
authUserInfo.setEduId(map.get("EDUID").toString());
}
if(StringUtils.isNotBlank(map.get("XM"))) {
authUserInfo.setRealName(map.get("XM").toString());
}
if(StringUtils.isNotBlank(map.get("ROLE"))) {
if (map.get("ROLE").toString().equals("1001"))
authUserInfo.setUserType(UserType.STUDENT);
......
......@@ -24,6 +24,7 @@
<div style="height: 100%;">
<form th:action="${successPostUrl}" method="post" th:object="${clientDataInfo}">
<input type="hidden" th:value="${clientDataInfo.authUserInfo.id}" name="authUserInfo.id"/>
<input type="hidden" th:value="${clientDataInfo.authUserInfo.eduId}" name="authUserInfo.eduId"/>
<input type="hidden" th:value="${clientDataInfo.authUserInfo.realName}" name="authUserInfo.realName"/>
<input type="hidden" th:value="${clientDataInfo.authUserInfo.userType}" name="authUserInfo.userType"/>
<input type="hidden" th:value="${clientDataInfo.authUserInfo.source}" name="authUserInfo.source"/>
......
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