diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..73f69e0
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..38d573b
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/dictionaries b/.idea/dictionaries
new file mode 100644
index 0000000..dee037e
--- /dev/null
+++ b/.idea/dictionaries
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..9b6c85f
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..731bc8e
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/nl-sso-server.iml b/.idea/nl-sso-server.iml
new file mode 100644
index 0000000..d6ebd48
--- /dev/null
+++ b/.idea/nl-sso-server.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/nladmin-system/nlsso-server/src/main/java/org/nl/modules/common/base/BaseDTO.java b/nladmin-system/nlsso-server/src/main/java/org/nl/modules/common/base/BaseDTO.java
index 644d8b1..1cab58a 100644
--- a/nladmin-system/nlsso-server/src/main/java/org/nl/modules/common/base/BaseDTO.java
+++ b/nladmin-system/nlsso-server/src/main/java/org/nl/modules/common/base/BaseDTO.java
@@ -1,5 +1,6 @@
package org.nl.modules.common.base;
+import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -24,9 +25,11 @@ public class BaseDTO implements Serializable {
private Long update_optid;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ @JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date create_time;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ @JSONField(format = "yyyy-MM-dd HH:mm:ss")
private Date update_time;
}
diff --git a/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/domain/User.java b/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/domain/User.java
index a7f34d1..2da09c5 100644
--- a/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/domain/User.java
+++ b/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/domain/User.java
@@ -15,6 +15,8 @@
*/
package org.nl.modules.system.domain;
+import com.alibaba.fastjson.annotation.JSONField;
+import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
@@ -37,7 +39,7 @@ public class User extends BaseDTO implements Serializable {
private Long id;
private Long user_id;
-
+ @JsonFormat
private String roles;
private String depts;
diff --git a/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/domain/vo/RoleVo.java b/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/domain/vo/RoleVo.java
new file mode 100644
index 0000000..4d464c7
--- /dev/null
+++ b/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/domain/vo/RoleVo.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2019-2020 Zheng Jie
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.nl.modules.system.domain.vo;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
+import org.nl.modules.system.domain.Menu;
+import org.nl.modules.system.domain.User;
+
+import javax.validation.constraints.NotBlank;
+import java.io.Serializable;
+import java.util.Objects;
+import java.util.Set;
+
+/**
+ * 角色
+ * @author Zheng Jie
+ * @date 2018-11-22
+ */
+@Getter
+@Setter
+public class RoleVo implements Serializable {
+
+
+ @ApiModelProperty(value = "ID", hidden = true)
+ private Long role_id;
+
+ @NotBlank
+ @ApiModelProperty(value = "名称", hidden = true)
+ private String name;
+
+ @ApiModelProperty(value = "级别,数值越小,级别越大")
+ private Integer level = 3;
+
+ @ApiModelProperty(value = "描述")
+ private String remark;
+
+ @ApiModelProperty(value = "描述")
+ private String order_seq;
+
+ @ApiModelProperty(value = "描述")
+ private String is_used;
+
+}
diff --git a/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/rest/UserController.java b/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/rest/UserController.java
index db6ec6d..a200b1f 100644
--- a/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/rest/UserController.java
+++ b/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/rest/UserController.java
@@ -29,6 +29,7 @@ import org.nl.modules.common.utils.RsaUtils;
import org.nl.modules.common.utils.SecurityUtils;
import org.nl.modules.logging.annotation.Log;
import org.nl.modules.system.domain.User;
+import org.nl.modules.system.service.UserRelateService;
import org.nl.modules.system.service.UserService;
import org.nl.modules.system.service.dto.UserQueryCriteria;
import org.springframework.data.domain.Pageable;
@@ -54,7 +55,7 @@ public class UserController {
@ApiOperation("查询用户")
@GetMapping
- @SaCheckPermission("user:list")
+// @SaCheckPermission("user:list")
public ResponseEntity