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
3f13d5b0
Commit
3f13d5b0
authored
Oct 16, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-10-16 文档库可预览未发布附件
parent
8b205365
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
ServiceHGWD002A.java
...java/com/baosight/hggp/hg/wd/service/ServiceHGWD002A.java
+8
-2
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD002A.java
View file @
3f13d5b0
...
...
@@ -10,6 +10,7 @@ import com.baosight.hggp.hg.wd.utils.HgWdUtils;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.MapUtils
;
import
com.baosight.hggp.util.StringUtils
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
org.springframework.util.CollectionUtils
;
...
...
@@ -52,10 +53,11 @@ public class ServiceHGWD002A extends ServiceEPBase {
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
fileId
=
MapUtils
.
getString
(
queryMap
,
HGWD001
.
FIELD_FILE_ID
);
String
node
=
MapUtils
.
getString
(
queryMap
,
CommonConstant
.
Field
.
NODE
);
String
status
=
MapUtils
.
getString
(
queryMap
,
HGWD001
.
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
));
inInfo
.
addBlock
(
node
).
setRows
(
queryChildNode
(
node
,
status
));
}
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"查询节点失败"
);
...
...
@@ -91,7 +93,7 @@ public class ServiceHGWD002A extends ServiceEPBase {
* @param parentId
* @return
*/
public
List
queryChildNode
(
String
parentId
)
{
public
List
queryChildNode
(
String
parentId
,
String
status
)
{
List
<
Map
>
results
=
new
ArrayList
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"fileId"
,
parentId
);
...
...
@@ -101,6 +103,10 @@ public class ServiceHGWD002A extends ServiceEPBase {
if
(!(
isSpare
||
HgWdUtils
.
HgWd009
.
isManager
()))
{
queryMap
.
put
(
"userId"
,
UserSessionUtils
.
getLoginName
());
}
if
(
StringUtils
.
isEmpty
(
status
)
||
!
status
.
equals
(
HgWdConstant
.
FileStatus
.
S_0
.
toString
())){
queryMap
.
put
(
HGWD001
.
FIELD_STATUS
,
HgWdConstant
.
FileStatus
.
S_1
);
}
queryMap
.
put
(
HGWD001
.
FIELD_STATUS
,
HgWdConstant
.
FileStatus
.
S_1
);
queryMap
.
put
(
"orderBy"
,
"B.DOC_TYPE ASC, B.DOC_NAME ASC"
);
List
<
HGWD002
>
dbWd002s
=
dao
.
query
(
HGWD002
.
QUERY
,
queryMap
);
...
...
src/main/webapp/HG/WD/HGWD001.js
View file @
3f13d5b0
...
...
@@ -1017,7 +1017,7 @@ function saveProtFunc() {
*/
let
preview
=
function
()
{
let
fileId
=
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileId
;
let
url
=
"HGWD002A?inqu_status-0-fileId="
+
fileId
;
let
url
=
"HGWD002A?inqu_status-0-fileId="
+
fileId
+
"&inqu_status-0-status=0"
;
window
.
open
(
url
,
'_blank'
);
}
...
...
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