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
9009b50d
Commit
9009b50d
authored
Oct 22, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-sx' of
http://129.211.46.84:8800/platform/hg-smart
into master-dc
parents
93debeaf
4eb3ebd0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ServiceHGWD001D.java
...java/com/baosight/hggp/hg/wd/service/ServiceHGWD001D.java
+4
-2
No files found.
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD001D.java
View file @
9009b50d
...
@@ -308,12 +308,12 @@ public class ServiceHGWD001D extends TreeService {
...
@@ -308,12 +308,12 @@ public class ServiceHGWD001D extends TreeService {
* @return
* @return
*/
*/
public
List
queryChildNode
(
String
projCode
,
String
parentId
,
String
ename
)
{
public
List
queryChildNode
(
String
projCode
,
String
parentId
,
String
ename
)
{
List
<
Map
>
results
=
new
ArrayList
();
String
userId
=
UserSessionUtils
.
getLoginName
();
String
userId
=
UserSessionUtils
.
getLoginName
();
// 查询项目来源
// 查询项目来源
HGSC001
dbSc001
=
HGSCTools
.
Hgsc001
.
queryByCode
(
projCode
);
HGSC001
dbSc001
=
HGSCTools
.
Hgsc001
.
queryByCode
(
projCode
);
// true:需要权限
// true:需要权限
boolean
isSourceAuth
=
!
ProjectSourceEnum
.
SPARE
.
getCode
().
equals
(
dbSc001
.
getProjectSource
());
boolean
isSourceAuth
=
!
ProjectSourceEnum
.
SPARE
.
getCode
().
equals
(
dbSc001
.
getProjectSource
());
List
<
Map
>
results
=
new
ArrayList
();
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"parentId"
,
parentId
);
queryMap
.
put
(
"parentId"
,
parentId
);
queryMap
.
put
(
"ename"
,
ename
);
queryMap
.
put
(
"ename"
,
ename
);
...
@@ -321,6 +321,8 @@ public class ServiceHGWD001D extends TreeService {
...
@@ -321,6 +321,8 @@ public class ServiceHGWD001D extends TreeService {
if
(
CollectionUtils
.
isEmpty
(
dbWd001s
))
{
if
(
CollectionUtils
.
isEmpty
(
dbWd001s
))
{
return
results
;
return
results
;
}
}
// 是否文档管理员
boolean
isManager
=
HgWdUtils
.
HgWd009
.
isManager
();
List
<
String
>
fileIds
=
dbWd001s
.
stream
().
map
(
HGWD001:
:
getFileId
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
String
>
fileIds
=
dbWd001s
.
stream
().
map
(
HGWD001:
:
getFileId
).
distinct
().
collect
(
Collectors
.
toList
());
// 查询目录授权人数
// 查询目录授权人数
Map
<
String
,
List
<
HGWD003
>>
dbWd003Map
=
HGWDTools
.
HgWd003
.
map
(
fileIds
);
Map
<
String
,
List
<
HGWD003
>>
dbWd003Map
=
HGWDTools
.
HgWd003
.
map
(
fileIds
);
...
@@ -334,7 +336,7 @@ public class ServiceHGWD001D extends TreeService {
...
@@ -334,7 +336,7 @@ public class ServiceHGWD001D extends TreeService {
leafMap
.
put
(
"type"
,
dbWd001
.
getFileType
());
leafMap
.
put
(
"type"
,
dbWd001
.
getFileType
());
leafMap
.
put
(
"leafLevel"
,
dbWd001
.
getLeafLevel
());
leafMap
.
put
(
"leafLevel"
,
dbWd001
.
getLeafLevel
());
leafMap
.
put
(
"count"
,
dbWd003s
==
null
?
0
:
dbWd003s
.
size
());
leafMap
.
put
(
"count"
,
dbWd003s
==
null
?
0
:
dbWd003s
.
size
());
if
(
isSourceAuth
)
{
if
(
!
isManager
&&
isSourceAuth
)
{
leafMap
.
put
(
"isAuth"
,
"1"
);
leafMap
.
put
(
"isAuth"
,
"1"
);
// 从已授权的信息中查找出自己
// 从已授权的信息中查找出自己
HGWD003
dbWd003
=
dbWd003s
==
null
?
null
:
dbWd003s
.
stream
().
filter
(
item
HGWD003
dbWd003
=
dbWd003s
==
null
?
null
:
dbWd003s
.
stream
().
filter
(
item
...
...
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