wangwei 6 年之前
父节点
当前提交
8515f3082c

+ 5 - 16
examcloud-core-basic-dao/src/main/java/cn/com/qmth/examcloud/core/basic/dao/entity/Student.java

@@ -6,7 +6,6 @@ import javax.persistence.GeneratedValue;
 import javax.persistence.Id;
 import javax.persistence.Index;
 import javax.persistence.Table;
-import javax.validation.constraints.NotNull;
 
 import cn.com.qmth.examcloud.commons.web.jpa.JpaEntity;
 
@@ -25,29 +24,27 @@ public class Student extends JpaEntity {
 	@GeneratedValue
 	private Long id;
 
-	private Long userId;
-
-	@NotNull
+	@Column(nullable = false)
 	private String name;
 
-	@NotNull
+	@Column(nullable = false)
 	private String password;
 
 	private String studentCode;
 
-	@NotNull
+	@Column(nullable = false)
 	private String identityNumber;
 
 	private String photoPath;
 
 	private String remark;
 
-	@NotNull
+	@Column(nullable = false)
 	private Boolean enable;
 
 	private Long orgId;
 
-	@NotNull
+	@Column(nullable = false)
 	private Long rootOrgId;
 
 	/**
@@ -76,14 +73,6 @@ public class Student extends JpaEntity {
 		this.id = id;
 	}
 
-	public Long getUserId() {
-		return userId;
-	}
-
-	public void setUserId(Long userId) {
-		this.userId = userId;
-	}
-
 	public String getName() {
 		return name;
 	}

+ 0 - 1
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/AuthServiceImpl.java

@@ -163,7 +163,6 @@ public class AuthServiceImpl implements AuthService {
 			}
 
 			user.setStudentId(student.getId());
-			user.setUserId(student.getUserId());
 			user.setUserType(UserType.STUDENT.getCode());
 			user.setStudentCode(student.getStudentCode());
 			user.setIdentityNumber(student.getIdentityNumber());