Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
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
platform
hg-smart
Commits
01a8fb3e
Commit
01a8fb3e
authored
Oct 16, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.fixBug:admin无需校验部门
parent
1253b76a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
DaoUtils.java
src/main/java/com/baosight/hggp/core/dao/DaoUtils.java
+2
-2
No files found.
src/main/java/com/baosight/hggp/core/dao/DaoUtils.java
View file @
01a8fb3e
...
...
@@ -189,7 +189,7 @@ public class DaoUtils {
// 创建人组织机构
try
{
String
depCode
=
BeanUtils
.
getProperty
(
bean
,
"depCode"
);
if
(
StringUtils
.
isBlank
(
depCode
))
{
if
(
StringUtils
.
isBlank
(
depCode
)
&&
!
"admin"
.
equals
(
userId
)
)
{
List
<
String
>
orgIds
=
UserSessionUtils
.
getOrgId
();
AssertUtils
.
isEmpty
(
orgIds
,
"当前用户未绑定部门,无法操作数据,请联系管理员!"
);
depCode
=
orgIds
.
get
(
0
);
...
...
@@ -257,7 +257,7 @@ public class DaoUtils {
// 创建人部门编码
try
{
String
depCode
=
MapUtils
.
getString
(
map
,
"depCode"
);
if
(
ObjectUtils
.
isNullBlank
(
depCode
))
{
if
(
ObjectUtils
.
isNullBlank
(
depCode
)
&&
!
"admin"
.
equals
(
userId
)
)
{
List
<
String
>
orgIds
=
UserSessionUtils
.
getOrgId
();
AssertUtils
.
isEmpty
(
orgIds
,
"当前用户未绑定部门,无法操作数据,请联系管理员!"
);
depCode
=
orgIds
.
get
(
0
);
...
...
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