|
@@ -48,11 +48,22 @@ public class UserAction {
|
|
|
List<Role> roles = userService.getAllRoles();
|
|
|
return JSONUtil.getJsonMap(200, true, HintMSG.QUERY_SUCCESS, roles);
|
|
|
} catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
return JSONUtil.getJsonMap(500, false, HintMSG.QUERY_FAIL+":"+e.getMessage(), null);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ @PostMapping(value = "queryUserIdMax")
|
|
|
+ public Map<String, Object> queryUserIdMax(){
|
|
|
+
|
|
|
+ try {
|
|
|
+
|
|
|
+ return JSONUtil.getJsonMap(200, true, HintMSG.QUERY_SUCCESS, null);
|
|
|
+ } catch (Exception e) {
|
|
|
+ return JSONUtil.getJsonMap(500, false, HintMSG.QUERY_FAIL+":"+e.getMessage(), null);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* { "user_id":"1001", "roleId":"3", "username":"", "personName":"" } 查看账户列表
|
|
@@ -161,7 +172,6 @@ public class UserAction {
|
|
|
return JSONUtil.getJsonMap(500, false, "用户已存在,添加失败", null);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
return JSONUtil.getJsonMap(500, false, "添加失败", null);
|
|
|
}
|
|
|
}
|