Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-enterprise-base
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
base_platform_enterprise
gic-enterprise-base
Commits
306043ad
Commit
306043ad
authored
Apr 29, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二级表头下载,不再处理日期类型,直接返回
parent
c58141a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
DownloadUtils.java
...d/src/main/java/com/gic/download/utils/DownloadUtils.java
+0
-22
No files found.
gic-enterprise-download/src/main/java/com/gic/download/utils/DownloadUtils.java
View file @
306043ad
...
...
@@ -125,31 +125,9 @@ public class DownloadUtils {
if
(
property
==
null
)
{
return
""
;
}
try
{
Class
clazz
=
getPropertyTypeOfDouble
(
bean
,
propertyName
);
if
(
Date
.
class
.
equals
(
clazz
))
{
//如果是日期类型
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"E MMM dd hh:mm:ss z yyyy"
,
Locale
.
US
);
SimpleDateFormat
resultFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
return
resultFormat
.
format
(
format
.
parse
(
property
.
toString
()));
}
}
catch
(
Exception
e
)
{
LOGGER
.
info
(
"bean:"
+
bean
+
",Property:"
+
propertyName
+
e
.
getMessage
(),
e
);
return
null
;
}
return
property
.
toString
();
}
protected
Class
getPropertyTypeOfDouble
(
Object
bean
,
String
propertyName
)
{
try
{
return
new
PropertyUtilsBean
().
getPropertyType
(
bean
,
propertyName
);
}
catch
(
Throwable
e
)
{
LOGGER
.
info
(
"bean:"
+
bean
+
",Property:"
+
propertyName
+
e
.
getMessage
(),
e
);
return
null
;
}
}
/**
* 数据获取接口
* @param pageNum -- 从0计数
...
...
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