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
39e5f542
Commit
39e5f542
authored
Feb 11, 2022
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时日志
parent
4fb43846
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
CsvResultSetHelper.java
...ic/cloud/data/hook/service/entity/CsvResultSetHelper.java
+3
-1
No files found.
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/entity/CsvResultSetHelper.java
View file @
39e5f542
...
@@ -149,6 +149,7 @@ public class CsvResultSetHelper implements ResultSetHelper {
...
@@ -149,6 +149,7 @@ public class CsvResultSetHelper implements ResultSetHelper {
doDecrypt
=
true
;
doDecrypt
=
true
;
}
}
}
}
System
.
out
.
println
(
"doDecrypt = "
+
doDecrypt
);
// 数据处理
// 数据处理
if
(
doDesensi
)
{
// 如果需要脱敏处理
if
(
doDesensi
)
{
// 如果需要脱敏处理
if
(
allFields
!=
null
&&
isName
(
columnName
)){
if
(
allFields
!=
null
&&
isName
(
columnName
)){
...
@@ -170,12 +171,13 @@ public class CsvResultSetHelper implements ResultSetHelper {
...
@@ -170,12 +171,13 @@ public class CsvResultSetHelper implements ResultSetHelper {
}
}
}
}
}
else
if
(
doDecrypt
)
{
// 如果需要解密处理
}
else
if
(
doDecrypt
)
{
// 如果需要解密处理
//
System.out.println("CSV 解密字段名 " + columnName);
System
.
out
.
println
(
"CSV 解密字段名 "
+
columnName
);
String
tmpResult
=
resultSet
.
getString
(
i
+
1
);
String
tmpResult
=
resultSet
.
getString
(
i
+
1
);
if
(
tmpResult
!=
null
&&
tmpResult
.
length
()
>
0
)
{
if
(
tmpResult
!=
null
&&
tmpResult
.
length
()
>
0
)
{
//tmpResult = DecryptUtils.getInstance().decrypt(tmpResult);
//tmpResult = DecryptUtils.getInstance().decrypt(tmpResult);
tmpResult
=
DecryptUtils
.
getInstance
().
decrypt
(
tmpResult
);
tmpResult
=
DecryptUtils
.
getInstance
().
decrypt
(
tmpResult
);
}
// IF OVER
}
// IF OVER
System
.
out
.
println
(
"tmpResult = "
+
tmpResult
);
result
.
add
(
tmpResult
);
result
.
add
(
tmpResult
);
}
else
{
}
else
{
int
columnType
=
resultSet
.
getMetaData
().
getColumnType
(
i
+
1
);
int
columnType
=
resultSet
.
getMetaData
().
getColumnType
(
i
+
1
);
...
...
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