Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
c21d7724
Commit
c21d7724
authored
Oct 29, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.文档库未发布可预览附加
parent
cd66ddf2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
ServiceHPWD002A.java
...java/com/baosight/hpjx/hp/wd/service/ServiceHPWD002A.java
+8
-3
No files found.
src/main/java/com/baosight/hpjx/hp/wd/service/ServiceHPWD002A.java
View file @
c21d7724
...
...
@@ -52,11 +52,12 @@ public class ServiceHPWD002A extends ServiceEPBase {
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
fileId
=
MapUtils
.
getString
(
queryMap
,
HPWD001
.
FIELD_FILE_ID
);
String
node
=
MapUtils
.
getString
(
queryMap
,
CommonConstant
.
Field
.
NODE
);
String
source
=
MapUtils
.
getString
(
queryMap
,
"source"
);
String
status
=
MapUtils
.
getString
(
queryMap
,
HPWD001
.
FIELD_STATUS
);
if
(
CommonConstant
.
Field
.
ROOT
.
equals
(
node
)
||
CommonConstant
.
Field
.
ROOT2
.
equals
(
node
))
{
inInfo
.
addBlock
(
node
).
setRows
(
queryTopNode
(
node
,
fileId
));
}
else
{
inInfo
.
addBlock
(
node
).
setRows
(
queryChildNode
(
node
,
s
tatus
));
inInfo
.
addBlock
(
node
).
setRows
(
queryChildNode
(
node
,
s
ource
));
}
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询节点失败"
);
...
...
@@ -90,9 +91,10 @@ public class ServiceHPWD002A extends ServiceEPBase {
* 查询叶子节点
*
* @param parentId
* @param source 1=文档库,2=文件浏览
* @return
*/
public
List
queryChildNode
(
String
parentId
,
String
s
tatus
)
{
public
List
queryChildNode
(
String
parentId
,
String
s
ource
)
{
List
<
Map
>
results
=
new
ArrayList
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"fileId"
,
parentId
);
...
...
@@ -101,9 +103,12 @@ public class ServiceHPWD002A extends ServiceEPBase {
if
(!
HpWdUtils
.
HpWd009
.
isManager
())
{
queryMap
.
put
(
"userId"
,
UserSessionUtils
.
getLoginName
());
}
if
(
StringUtils
.
isEmpty
(
status
)
||
!
status
.
equals
(
HpWdConstant
.
FileStatus
.
S_0
.
toString
()))
{
if
(
!
"0"
.
equals
(
source
))
{
queryMap
.
put
(
HPWD001
.
FIELD_STATUS
,
HpWdConstant
.
FileStatus
.
S_1
);
}
/*if (StringUtils.isEmpty(status) || !status.equals(HpWdConstant.FileStatus.S_0.toString())){
queryMap.put(HPWD001.FIELD_STATUS, HpWdConstant.FileStatus.S_1);
}*/
queryMap
.
put
(
"orderBy"
,
"B.DOC_TYPE ASC, B.DOC_NAME ASC"
);
List
<
HPWD002
>
dbWd002s
=
dao
.
query
(
HPWD002
.
QUERY
,
queryMap
);
...
...
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