WANG 6 gadi atpakaļ
vecāks
revīzija
fa69c7ac43

+ 10 - 0
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/UserController.java

@@ -337,6 +337,16 @@ public class UserController extends ControllerSupport {
 		Long rootOrgId = userForm.getRootOrgId();
 		Long orgId = userForm.getOrgId();
 
+		if (StringUtils.isBlank(userForm.getName())) {
+			throw new StatusException("B-130001", "用户名不能为空");
+		}
+		if (StringUtils.isBlank(userForm.getLoginName())) {
+			throw new StatusException("B-130002", "登陆名不能为空");
+		}
+		if (StringUtils.isBlank(userForm.getPassword())) {
+			throw new StatusException("B-130003", "密码不能为空");
+		}
+
 		if (null == rootOrgId) {
 			throw new StatusException("B-150002", "rootOrgId is null");
 		}