Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
emport-api
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
刘泽志
emport-api
Commits
2e545a80
Commit
2e545a80
authored
Sep 26, 2023
by
liuzz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常信息统计bug
parent
5d612191
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
20 deletions
+4
-20
ExcelDataServiceImpl.java
...his/web/dataImport/service/impl/ExcelDataServiceImpl.java
+4
-20
No files found.
admin-api/src/main/java/com/tbyf/his/web/dataImport/service/impl/ExcelDataServiceImpl.java
View file @
2e545a80
...
@@ -528,7 +528,7 @@ public class ExcelDataServiceImpl extends ServiceImpl<ExcelDataMapper, ExcelData
...
@@ -528,7 +528,7 @@ public class ExcelDataServiceImpl extends ServiceImpl<ExcelDataMapper, ExcelData
.
replaceAll
(
"\\("
,
""
)
.
replaceAll
(
"\\("
,
""
)
.
replaceAll
(
"\\)"
,
""
)
.
replaceAll
(
"\\)"
,
""
)
.
split
(
","
);
.
split
(
","
);
b
=
Convert
.
toInt
(
split
[
1
]);
b
=
split
.
length
==
1
?
0
:
Convert
.
toInt
(
split
[
1
]);
a
=
Convert
.
toInt
(
split
[
0
])
-
b
;
a
=
Convert
.
toInt
(
split
[
0
])
-
b
;
}
else
if
(
StringUtils
.
containsIgnoreCase
(
vo
.
getFieldType
(),
"char"
)){
}
else
if
(
StringUtils
.
containsIgnoreCase
(
vo
.
getFieldType
(),
"char"
)){
c
=
Convert
.
toInt
(
StrUtil
.
replaceIgnoreCase
(
c
=
Convert
.
toInt
(
StrUtil
.
replaceIgnoreCase
(
...
@@ -541,8 +541,8 @@ public class ExcelDataServiceImpl extends ServiceImpl<ExcelDataMapper, ExcelData
...
@@ -541,8 +541,8 @@ public class ExcelDataServiceImpl extends ServiceImpl<ExcelDataMapper, ExcelData
.
replaceAll
(
"\\("
,
""
)
.
replaceAll
(
"\\("
,
""
)
.
replaceAll
(
"\\)"
,
""
)
.
replaceAll
(
"\\)"
,
""
)
.
split
(
","
);
.
split
(
","
);
y
=
Convert
.
toInt
(
split
[
1
]);
y
=
split
.
length
==
1
?
0
:
Convert
.
toInt
(
split
[
1
]);
x
=
Convert
.
toInt
(
split
[
0
])
-
b
;
x
=
Convert
.
toInt
(
split
[
0
])
-
y
;
}
else
if
(
StringUtils
.
containsIgnoreCase
(
vo
.
getColumnType
(),
"char"
)){
}
else
if
(
StringUtils
.
containsIgnoreCase
(
vo
.
getColumnType
(),
"char"
)){
z
=
Convert
.
toInt
(
StrUtil
.
replaceIgnoreCase
(
z
=
Convert
.
toInt
(
StrUtil
.
replaceIgnoreCase
(
StrUtil
.
replaceIgnoreCase
(
vo
.
getColumnType
(),
"varchar2"
,
""
),
"varchar"
,
""
)
StrUtil
.
replaceIgnoreCase
(
vo
.
getColumnType
(),
"varchar2"
,
""
),
"varchar"
,
""
)
...
@@ -677,22 +677,6 @@ public class ExcelDataServiceImpl extends ServiceImpl<ExcelDataMapper, ExcelData
...
@@ -677,22 +677,6 @@ public class ExcelDataServiceImpl extends ServiceImpl<ExcelDataMapper, ExcelData
@SneakyThrows
@SneakyThrows
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
ExecutorService
executorService
=
Executors
.
newFixedThreadPool
(
10
);
System
.
out
.
println
(
"1,"
.
split
(
","
).
length
);
List
<
Integer
>
taskList
=
Arrays
.
asList
(
1
,
1
,
3
,
3
,
5
,
6
,
9
,
9
,
9
,
9
);
CompletableFuture
<?>[]
array
=
taskList
.
stream
()
.
map
(
i
->
CompletableFuture
.
runAsync
(()
->
{
try
{
TimeUnit
.
SECONDS
.
sleep
(
i
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
"休眠异常:"
+
i
);
}
System
.
out
.
println
(
StrUtil
.
format
(
"当前线程:{}:当前数据:{}"
,
Thread
.
currentThread
().
getName
(),
i
));
if
(
i
==
6
){
throw
new
RuntimeException
(
"指定错误:"
+
i
);
}
},
executorService
))
.
toArray
(
CompletableFuture
<?>[]::
new
);
CompletableFuture
.
allOf
(
array
).
get
();
System
.
out
.
println
(
"结束"
);
}
}
}
}
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