Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-health-science
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐俊
yn-health-science
Commits
64b3f1b8
Commit
64b3f1b8
authored
Dec 04, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
9ccf43de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
loginUser.java
...n/java/com/yiboshi/science/config/security/loginUser.java
+1
-3
AuthorizationController.java
.../com/yiboshi/science/rest/v1/AuthorizationController.java
+3
-0
No files found.
science-admin/src/main/java/com/yiboshi/science/config/security/loginUser.java
View file @
64b3f1b8
...
@@ -10,14 +10,12 @@ public class loginUser implements Serializable {
...
@@ -10,14 +10,12 @@ public class loginUser implements Serializable {
private
String
loginName
;
private
String
loginName
;
/** 角色Id */
/** 角色Id */
private
String
roles
;
private
String
roles
;
/** 单位Id */
//private String unitId;
/** 单位编码 */
/** 单位编码 */
private
String
unitCode
;
private
String
unitCode
;
/** 单位名称 */
/** 单位名称 */
private
String
unitName
;
private
String
unitName
;
/** 申报类型 1 申报科研项目 2申报重点学科项目 3 同时申报*/
/** 申报类型 1 申报科研项目 2申报重点学科项目 3 同时申报*/
private
String
type
;
private
String
type
;
/** 项目类型 1
科研项目 2重点学科项目
*/
/** 项目类型 1
申报科研项目 2申报重点学科项目
*/
private
String
projType
;
private
String
projType
;
}
}
science-admin/src/main/java/com/yiboshi/science/rest/v1/AuthorizationController.java
View file @
64b3f1b8
...
@@ -188,6 +188,9 @@ public class AuthorizationController {
...
@@ -188,6 +188,9 @@ public class AuthorizationController {
loginUser
user
=
new
loginUser
();
loginUser
user
=
new
loginUser
();
StringUtil
.
copyObj2Obj
(
SecurityUserHolder
.
getCurrentUser
(),
user
);
StringUtil
.
copyObj2Obj
(
SecurityUserHolder
.
getCurrentUser
(),
user
);
user
.
setType
(
systemSetService
.
getByKey
(
SystemSetKey
.
SysProjectType
));
user
.
setType
(
systemSetService
.
getByKey
(
SystemSetKey
.
SysProjectType
));
if
(!
user
.
getType
().
equals
(
"3"
)){
user
.
setProjType
(
systemSetService
.
getByKey
(
SystemSetKey
.
SysProjectType
));
}
boolean
finalIsComplete
=
isComplete
;
boolean
finalIsComplete
=
isComplete
;
List
<
UserMenuDTO
>
menuList
=
systemMenuService
.
findByRoleId
(
SecurityUserHolder
.
getRoles
());
List
<
UserMenuDTO
>
menuList
=
systemMenuService
.
findByRoleId
(
SecurityUserHolder
.
getRoles
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment