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
fdd827e5
Commit
fdd827e5
authored
Oct 11, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-10-11 修复文档管理员文档浏览
parent
7e9a44e4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
20 deletions
+18
-20
HPWD099.java
src/main/java/com/baosight/hpjx/hp/wd/domain/HPWD099.java
+1
-1
ServiceHPWD001.java
.../java/com/baosight/hpjx/hp/wd/service/ServiceHPWD001.java
+3
-0
ServiceHPWD002.java
.../java/com/baosight/hpjx/hp/wd/service/ServiceHPWD002.java
+7
-0
HPWD009.xml
src/main/java/com/baosight/hpjx/hp/wd/sql/HPWD009.xml
+0
-1
HPWD099.xml
src/main/java/com/baosight/hpjx/hp/wd/sql/HPWD099.xml
+1
-1
HPWD001.js
src/main/webapp/HP/WD/HPWD001.js
+4
-16
HPWD001.jsp
src/main/webapp/HP/WD/HPWD001.jsp
+2
-1
No files found.
src/main/java/com/baosight/hpjx/hp/wd/domain/HPWD099.java
View file @
fdd827e5
...
@@ -84,7 +84,7 @@ public class HPWD099 extends DaoEPBase {
...
@@ -84,7 +84,7 @@ public class HPWD099 extends DaoEPBase {
private
Integer
previewNum
=
new
Integer
(
0
);
/* 预览次数*/
private
Integer
previewNum
=
new
Integer
(
0
);
/* 预览次数*/
private
Integer
downloadNum
=
new
Integer
(
0
);
/* 下载次数*/
private
Integer
downloadNum
=
new
Integer
(
0
);
/* 下载次数*/
private
String
releaseDate
=
" "
;
/* 发布时间*/
private
String
releaseDate
=
" "
;
/* 发布时间*/
private
Integer
docVersion
=
new
Integer
(
0
);
/* 文件版本号*/
private
Integer
docVersion
=
new
Integer
(
1
);
/* 文件版本号*/
private
String
docType
=
" "
;
/* 文件类型*/
private
String
docType
=
" "
;
/* 文件类型*/
private
Integer
operStatus
=
new
Integer
(
0
);
private
Integer
operStatus
=
new
Integer
(
0
);
...
...
src/main/java/com/baosight/hpjx/hp/wd/service/ServiceHPWD001.java
View file @
fdd827e5
...
@@ -206,6 +206,9 @@ public class ServiceHPWD001 extends ServiceEPBase {
...
@@ -206,6 +206,9 @@ public class ServiceHPWD001 extends ServiceEPBase {
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
HPWD099
hgwd099
=
new
HPWD099
();
HPWD099
hgwd099
=
new
HPWD099
();
hgwd099
.
fromMap
(
map
);
hgwd099
.
fromMap
(
map
);
if
(
hgwd099
.
getOperStatus
()
==
0
){
hgwd099
.
setDocVersion
(
hgwd099
.
getDocVersion
()
+
1
);
}
hgwd099
.
setStatus
(
HpWdConstant
.
FileStatus
.
S_1
);
hgwd099
.
setStatus
(
HpWdConstant
.
FileStatus
.
S_1
);
hgwd099
.
setReleaseDate
(
DateUtils
.
shortDateTime
());
hgwd099
.
setReleaseDate
(
DateUtils
.
shortDateTime
());
hgwd099
.
setOperStatus
(
HpWdConstant
.
OperStatus
.
S_0
);
hgwd099
.
setOperStatus
(
HpWdConstant
.
OperStatus
.
S_0
);
...
...
src/main/java/com/baosight/hpjx/hp/wd/service/ServiceHPWD002.java
View file @
fdd827e5
...
@@ -6,6 +6,8 @@ import com.baosight.hpjx.core.security.UserSessionUtils;
...
@@ -6,6 +6,8 @@ import com.baosight.hpjx.core.security.UserSessionUtils;
import
com.baosight.hpjx.hp.wd.constant.HpWdConstant
;
import
com.baosight.hpjx.hp.wd.constant.HpWdConstant
;
import
com.baosight.hpjx.hp.wd.domain.HPWD001
;
import
com.baosight.hpjx.hp.wd.domain.HPWD001
;
import
com.baosight.hpjx.hp.wd.domain.HPWD002
;
import
com.baosight.hpjx.hp.wd.domain.HPWD002
;
import
com.baosight.hpjx.hp.wd.domain.HPWD099
;
import
com.baosight.hpjx.hp.wd.utils.HpWdUtils
;
import
com.baosight.hpjx.hp.xs.domain.User
;
import
com.baosight.hpjx.hp.xs.domain.User
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.EiInfoUtils
;
import
com.baosight.hpjx.util.EiInfoUtils
;
...
@@ -56,7 +58,12 @@ public class ServiceHPWD002 extends ServiceEPBase {
...
@@ -56,7 +58,12 @@ public class ServiceHPWD002 extends ServiceEPBase {
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
// 仅查询已发布的文件
// 仅查询已发布的文件
queryRow
.
put
(
HPWD001
.
FIELD_STATUS
,
HpWdConstant
.
FileStatus
.
S_1
);
queryRow
.
put
(
HPWD001
.
FIELD_STATUS
,
HpWdConstant
.
FileStatus
.
S_1
);
// 非管理员仅查询自己有权限的项目
String
userId
=
UserSessionUtils
.
getLoginName
();
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
User
.
FIELD_USER_ID
,
UserSessionUtils
.
getUserId
());
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
User
.
FIELD_USER_ID
,
UserSessionUtils
.
getUserId
());
if
(
HpWdUtils
.
HpWd009
.
isManager
(
userId
))
{
queryRow
.
remove
(
HPWD001
.
FIELD_PARENT_ID
);
}
builder
(
inInfo
);
builder
(
inInfo
);
inInfo
=
super
.
query
(
inInfo
,
HPWD002
.
QUERY
,
new
HPWD002
());
inInfo
=
super
.
query
(
inInfo
,
HPWD002
.
QUERY
,
new
HPWD002
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/wd/sql/HPWD009.xml
View file @
fdd827e5
...
@@ -78,7 +78,6 @@
...
@@ -78,7 +78,6 @@
<include
refid=
"columnD"
/>
<include
refid=
"columnD"
/>
FROM ${hpjxSchema}.T_HPWD009 T
FROM ${hpjxSchema}.T_HPWD009 T
INNER JOIN ${platSchema}.XS_USER B ON T.USER_ID = B.LOGIN_NAME
INNER JOIN ${platSchema}.XS_USER B ON T.USER_ID = B.LOGIN_NAME
LEFT JOIN ${platSchema}.TXSOG02 C ON B.USER_ID = C.USER_ID
LEFT JOIN ${platSchema}.TXSOG01 D ON D.ORG_ID = T.FACTORY_CODE
LEFT JOIN ${platSchema}.TXSOG01 D ON D.ORG_ID = T.FACTORY_CODE
WHERE 1=1
WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"condition"
/>
...
...
src/main/java/com/baosight/hpjx/hp/wd/sql/HPWD099.xml
View file @
fdd827e5
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
UPDATE ${hpjxSchema}.T_HPWD099
UPDATE ${hpjxSchema}.T_HPWD099
SET
SET
RELEASE_DATE = #releaseDate#,
<!--发布时间-->
RELEASE_DATE = #releaseDate#,
<!--发布时间-->
DOC_VERSION =
DOC_VERSION + 1
,
<!--版本号-->
DOC_VERSION =
#docVersion#
,
<!--版本号-->
STATUS = #status#,
<!-- 状态 -->
STATUS = #status#,
<!-- 状态 -->
OPER_STATUS = #operStatus#,
OPER_STATUS = #operStatus#,
<include
refid=
"SqlBase.updateRevise"
/>
<include
refid=
"SqlBase.updateRevise"
/>
...
...
src/main/webapp/HP/WD/HPWD001.js
View file @
fdd827e5
...
@@ -123,25 +123,13 @@ $(function () {
...
@@ -123,25 +123,13 @@ $(function () {
var
title
=
item
.
text
;
var
title
=
item
.
text
;
let
icon
=
'fa fa-globe'
let
icon
=
'fa fa-globe'
if
(
item
.
label
!==
'root'
)
{
if
(
item
.
label
!==
'root'
)
{
switch
(
item
.
type
)
{
switch
(
item
.
leafType
)
{
case
'company'
:
case
'P'
:
// title = title + ' [公司]';
icon
=
'fa fa-building'
break
;
case
'dept'
:
// title = title + ' [部门]';
icon
=
'fa fa-users'
break
;
case
'post'
:
// title = title + ' [岗位]';
icon
=
'fa fa-user'
break
;
case
'1'
:
icon
=
'fa fa-clipboard'
icon
=
'fa fa-clipboard'
break
;
break
;
default
:
case
'C'
:
icon
=
'fa fa-folder'
icon
=
'fa fa-folder'
//icon = 'fa fa-home'
break
;
}
}
}
}
return
' <span class="'
+
icon
+
'" style="padding-right: 8px"> </span> <span class="titleClass" title="'
+
item
.
label
+
'">'
+
title
+
'</span>'
return
' <span class="'
+
icon
+
'" style="padding-right: 8px"> </span> <span class="titleClass" title="'
+
item
.
label
+
'">'
+
title
+
'</span>'
...
...
src/main/webapp/HP/WD/HPWD001.jsp
View file @
fdd827e5
...
@@ -195,7 +195,8 @@
...
@@ -195,7 +195,8 @@
<EF:EFWindow id="releaseWindow" title="发布变更" width="50%" height="30%">
<EF:EFWindow id="releaseWindow" title="发布变更" width="50%" height="30%">
<EF:EFRegion id="inqu2" title="">
<EF:EFRegion id="inqu2" title="">
<EF:EFInput blockId="inqu_status" row="0" ename="changeContent" cname="变更内容" type="textarea" colWidth="12" ratio="2:10" required="true"/>
<EF:EFInput blockId="inqu_status" row="0" ename="changeContent" cname="变更内容" type="textarea"
colWidth="12" ratio="2:10" required="true" style="height:100px"/>
</EF:EFRegion>
</EF:EFRegion>
<div style="display: flex;justify-content: flex-end;">
<div style="display: flex;justify-content: flex-end;">
<EF:EFButton ename="confirmRelease" cname="确认发布"/>
<EF:EFButton ename="confirmRelease" cname="确认发布"/>
...
...
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