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
7226d331
Commit
7226d331
authored
Nov 12, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复文档库直接授权项目无法显示授权用户bug
parent
c010bf21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
ServiceHGWD003A.java
...java/com/baosight/hggp/hg/wd/service/ServiceHGWD003A.java
+11
-0
No files found.
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD003A.java
View file @
7226d331
...
@@ -3,6 +3,8 @@ package com.baosight.hggp.hg.wd.service;
...
@@ -3,6 +3,8 @@ package com.baosight.hggp.hg.wd.service;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.sc.domain.HGSC001
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.wd.domain.HGWD001
;
import
com.baosight.hggp.hg.wd.domain.HGWD001
;
import
com.baosight.hggp.hg.wd.domain.HGWD003
;
import
com.baosight.hggp.hg.wd.domain.HGWD003
;
import
com.baosight.hggp.hg.wd.tools.HGWDTools
;
import
com.baosight.hggp.hg.wd.tools.HGWDTools
;
...
@@ -73,9 +75,18 @@ public class ServiceHGWD003A extends ServiceEPBase {
...
@@ -73,9 +75,18 @@ public class ServiceHGWD003A extends ServiceEPBase {
// 获取FILE_ID
// 获取FILE_ID
String
fileId
=
MapUtils
.
getString
(
queryMap
,
HGWD003
.
FIELD_FILE_ID
);
String
fileId
=
MapUtils
.
getString
(
queryMap
,
HGWD003
.
FIELD_FILE_ID
);
AssertUtils
.
isEmpty
(
fileId
,
"请选择目录"
);
AssertUtils
.
isEmpty
(
fileId
,
"请选择目录"
);
// 确认是否是项目文件
HGSC001
sc001
=
HGSCTools
.
Hgsc001
.
queryByCode
(
fileId
);
List
<
Map
>
mapList
=
DaoBase
.
getInstance
().
query
(
"HGWD001.queryFileChild"
,
new
HashMap
<
String
,
String
>(){{
List
<
Map
>
mapList
=
DaoBase
.
getInstance
().
query
(
"HGWD001.queryFileChild"
,
new
HashMap
<
String
,
String
>(){{
put
(
"parentId"
,
fileId
);
put
(
"parentId"
,
fileId
);
}});
}});
if
(
sc001
!=
null
){
//给项目文件添加授权用户
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
HGWD001
.
FIELD_FILE_ID
,
sc001
.
getProjCode
());
map
.
put
(
HGWD001
.
FIELD_FILE_NAME
,
sc001
.
getProjName
());
mapList
.
add
(
map
);
}
List
<
String
>
fileIds
=
mapList
.
stream
().
map
(
map
->
MapUtils
.
getString
(
map
,
HGWD001
.
FIELD_FILE_ID
)).
collect
(
Collectors
.
toList
());
List
<
String
>
fileIds
=
mapList
.
stream
().
map
(
map
->
MapUtils
.
getString
(
map
,
HGWD001
.
FIELD_FILE_ID
)).
collect
(
Collectors
.
toList
());
List
<
HGWD003
>
hgwd003s
=
HGWDTools
.
HgWd003
.
list
(
fileIds
);
List
<
HGWD003
>
hgwd003s
=
HGWDTools
.
HgWd003
.
list
(
fileIds
);
// 判断是否是管理员或项目经理
// 判断是否是管理员或项目经理
...
...
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