Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-cloud
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
data-hook
gic-cloud
Commits
4aa8a588
Commit
4aa8a588
authored
Jul 04, 2022
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:时间格式hh-》HH
parent
06d8e682
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
CsvResultSetHelper.java
...ic/cloud/data/hook/service/entity/CsvResultSetHelper.java
+6
-6
FlatQueryResultServiceImpl.java
...ud/data/hook/service/impl/FlatQueryResultServiceImpl.java
+1
-1
FreeQueryServiceImpl.java
...ic/cloud/data/hook/service/impl/FreeQueryServiceImpl.java
+4
-4
No files found.
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/entity/CsvResultSetHelper.java
View file @
4aa8a588
...
...
@@ -213,12 +213,12 @@ public class CsvResultSetHelper implements ResultSetHelper {
result
.
add
(
resultSet
.
getTimestamp
(
i
+
1
)
!=
null
?
timeFormatter_threadLocal
.
get
().
format
(
resultSet
.
getTimestamp
(
i
+
1
))
:
""
);
break
;
default
:
String
s2
=
String
.
valueOf
(
resultSet
.
getObject
(
i
+
1
));
//
Object val = resultSet.getObject(i + 1);
//
String s2="";
//
if (val != null) {
//
s2 = String.valueOf(val);
//
}
//
String s2 = String.valueOf(resultSet.getObject(i + 1));
Object
val
=
resultSet
.
getObject
(
i
+
1
);
String
s2
=
""
;
if
(
val
!=
null
)
{
s2
=
String
.
valueOf
(
val
);
}
// if(org.apache.commons.lang3.StringUtils.isNotBlank(s2)){
// if(s2.contains("E0") || s2.startsWith("0")){
// s2 = s2 + "\t";
...
...
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FlatQueryResultServiceImpl.java
View file @
4aa8a588
...
...
@@ -995,7 +995,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
Integer
type
=
columnMate
.
get
(
j
).
getValue
();
Cell
midCell
=
row
.
createCell
(
j
);
String
columnValue
=
columnValues
[
j
];
if
(
columnValue
.
equals
(
"null"
))
{
if
(
StringUtils
.
isBlank
(
columnValue
))
{
midCell
.
setCellValue
(
columnValue
);
continue
;
}
...
...
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FreeQueryServiceImpl.java
View file @
4aa8a588
...
...
@@ -660,7 +660,7 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
case
Types
.
INTEGER
:
String
intStr
=
rs
.
getString
(
j
+
1
);
if
(
StringUtils
.
isBlank
(
intStr
)){
midCell
.
setCellValue
(
intStr
);
midCell
.
setCellValue
(
0
);
}
else
{
midCell
.
setCellValue
(
Integer
.
valueOf
(
intStr
));
}
...
...
@@ -668,7 +668,7 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
case
Types
.
BIGINT
:
String
bigintStr
=
rs
.
getString
(
j
+
1
);
if
(
StringUtils
.
isBlank
(
bigintStr
)){
midCell
.
setCellValue
(
bigintStr
);
midCell
.
setCellValue
(
0
);
}
else
{
midCell
.
setCellValue
(
Long
.
valueOf
(
bigintStr
));
}
...
...
@@ -677,7 +677,7 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
case
Types
.
DECIMAL
:
String
doubleStr
=
rs
.
getString
(
j
+
1
);
if
(
StringUtils
.
isBlank
(
doubleStr
))
{
midCell
.
setCellValue
(
doubleStr
);
midCell
.
setCellValue
(
0
);
}
else
{
midCell
.
setCellValue
(
Double
.
valueOf
(
doubleStr
));
}
...
...
@@ -685,7 +685,7 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
case
Types
.
FLOAT
:
String
floatStr
=
rs
.
getString
(
j
+
1
);
if
(
StringUtils
.
isBlank
(
floatStr
))
{
midCell
.
setCellValue
(
floatStr
);
midCell
.
setCellValue
(
0
);
}
else
{
midCell
.
setCellValue
(
Float
.
valueOf
(
floatStr
));
}
...
...
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