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
43081f8e
Commit
43081f8e
authored
Aug 20, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.页面显示增加数量
parent
eb572f0b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
HGWD001.xml
src/main/java/com/baosight/hggp/hg/wd/sql/HGWD001.xml
+1
-1
HGWDTools.java
src/main/java/com/baosight/hggp/hg/wd/tools/HGWDTools.java
+3
-6
HGWD002.js
src/main/webapp/HG/WD/HGWD002.js
+1
-1
HGWD002.jsp
src/main/webapp/HG/WD/HGWD002.jsp
+2
-0
No files found.
src/main/java/com/baosight/hggp/hg/wd/sql/HGWD001.xml
View file @
43081f8e
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
$orderBy$
$orderBy$
</isNotEmpty>
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
<isEmpty
property=
"orderBy"
>
ID
asc
ID
DESC
</isEmpty>
</isEmpty>
</dynamic>
</dynamic>
</sql>
</sql>
...
...
src/main/java/com/baosight/hggp/hg/wd/tools/HGWDTools.java
View file @
43081f8e
package
com
.
baosight
.
hggp
.
hg
.
wd
.
tools
;
package
com
.
baosight
.
hggp
.
hg
.
wd
.
tools
;
import
com.baosight.hggp.core.constant.CommonConstant
;
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.sb.domain.HGSB002
;
import
com.baosight.hggp.hg.wd.constant.HgWdSqlConstant
;
import
com.baosight.hggp.hg.wd.constant.HgWdSqlConstant
;
import
com.baosight.hggp.hg.wd.domain.HGWD001
;
import
com.baosight.hggp.hg.wd.domain.HGWD001
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.AssertUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -31,7 +28,7 @@ public class HGWDTools {
...
@@ -31,7 +28,7 @@ public class HGWDTools {
* @return
* @return
*/
*/
public
static
HGWD001
get
(
String
fileId
)
{
public
static
HGWD001
get
(
String
fileId
)
{
AssertUtils
.
is
Null
(
fileId
,
"文件ID不能为空"
);
AssertUtils
.
is
Empty
(
fileId
,
"文件ID不能为空"
);
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
HGWD001
.
FIELD_FILE_ID
,
fileId
);
queryMap
.
put
(
HGWD001
.
FIELD_FILE_ID
,
fileId
);
List
<
HGWD001
>
results
=
DaoBase
.
getInstance
().
query
(
HGWD001
.
QUERY
,
queryMap
);
List
<
HGWD001
>
results
=
DaoBase
.
getInstance
().
query
(
HGWD001
.
QUERY
,
queryMap
);
...
@@ -44,7 +41,7 @@ public class HGWDTools {
...
@@ -44,7 +41,7 @@ public class HGWDTools {
* @param fileId
* @param fileId
*/
*/
public
static
void
previewIncr
(
String
fileId
)
{
public
static
void
previewIncr
(
String
fileId
)
{
AssertUtils
.
is
Null
(
fileId
,
"文件ID不能为空"
);
AssertUtils
.
is
Empty
(
fileId
,
"文件ID不能为空"
);
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
HGWD001
.
FIELD_FILE_ID
,
fileId
);
queryMap
.
put
(
HGWD001
.
FIELD_FILE_ID
,
fileId
);
DaoUtils
.
update
(
HgWdSqlConstant
.
HgWd001
.
PREVIEW_INCR
,
queryMap
);
DaoUtils
.
update
(
HgWdSqlConstant
.
HgWd001
.
PREVIEW_INCR
,
queryMap
);
...
@@ -56,7 +53,7 @@ public class HGWDTools {
...
@@ -56,7 +53,7 @@ public class HGWDTools {
* @param fileId
* @param fileId
*/
*/
public
static
void
downloadIncr
(
String
fileId
)
{
public
static
void
downloadIncr
(
String
fileId
)
{
AssertUtils
.
is
Null
(
fileId
,
"文件ID不能为空"
);
AssertUtils
.
is
Empty
(
fileId
,
"文件ID不能为空"
);
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
HGWD001
.
FIELD_FILE_ID
,
fileId
);
queryMap
.
put
(
HGWD001
.
FIELD_FILE_ID
,
fileId
);
DaoUtils
.
update
(
HgWdSqlConstant
.
HgWd001
.
DOWNLOAD_INCR
,
queryMap
);
DaoUtils
.
update
(
HgWdSqlConstant
.
HgWd001
.
DOWNLOAD_INCR
,
queryMap
);
...
...
src/main/webapp/HG/WD/HGWD002.js
View file @
43081f8e
...
@@ -21,7 +21,7 @@ $(function () {
...
@@ -21,7 +21,7 @@ $(function () {
},
{
},
{
field
:
"docVersion"
,
field
:
"docVersion"
,
template
:
function
(
model
)
{
template
:
function
(
model
)
{
return
"
V
"
+
model
.
docVersion
;
return
"
v
"
+
model
.
docVersion
;
}
}
}],
}],
loadComplete
:
function
(
grid
)
{
loadComplete
:
function
(
grid
)
{
...
...
src/main/webapp/HG/WD/HGWD002.jsp
View file @
43081f8e
...
@@ -34,6 +34,8 @@
...
@@ -34,6 +34,8 @@
<EF:EFColumn
ename=
"docVersion"
cname=
"版本号"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"docVersion"
cname=
"版本号"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"docId"
cname=
"文件号"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"docId"
cname=
"文件号"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"docName"
cname=
"文件附件名称"
enable=
"false"
width=
"100"
align=
"left"
/>
<EF:EFColumn
ename=
"docName"
cname=
"文件附件名称"
enable=
"false"
width=
"100"
align=
"left"
/>
<EF:EFColumn
ename=
"previewNum"
cname=
"预览次数"
enable=
"false"
width=
"100"
align=
"right"
/>
<EF:EFColumn
ename=
"downloadNum"
cname=
"下载次数"
enable=
"false"
width=
"100"
align=
"right"
/>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
...
...
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