Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gsc
/
gsc-vcp-web-facade
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 47977b60
authored
Nov 21, 2025
by
林冲
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:小程序统计二手车产值等
1 parent
ca35fbca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
src/main/java/com/gsc4cloud/gsc/facade/vpcweb/service/evalorder/EvalElectronicContractService.java
src/main/java/com/gsc4cloud/gsc/facade/vpcweb/service/evalorder/EvalElectronicContractService.java
View file @
47977b6
...
...
@@ -118,10 +118,7 @@ public class EvalElectronicContractService {
log
.
info
(
"开始导入合同数据"
);
// 阶段1: 导入Excel文件
long
excelStart
=
System
.
currentTimeMillis
();
List
<
ContractImportRow
>
excelRows
=
importExcel
(
file
);
long
excelEnd
=
System
.
currentTimeMillis
();
log
.
info
(
"Excel导入完成,耗时:{}ms,数据行数:{}"
,
(
excelEnd
-
excelStart
),
excelRows
!=
null
?
excelRows
.
size
()
:
0
);
ImportContractResDTO
resDTO
=
new
ImportContractResDTO
();
if
(
excelRows
==
null
||
excelRows
.
isEmpty
())
{
...
...
@@ -131,13 +128,10 @@ public class EvalElectronicContractService {
return
R
.
ok
(
resDTO
);
}
// LoginAccountResponse accountInfo = ThreadLocalCache.getLoginAccountInfo();
LoginAccountResponse
accountInfo
=
new
LoginAccountResponse
();
accountInfo
.
setUserName
(
"admin"
);
accountInfo
.
setUuid
(
"1213123"
);
LoginAccountResponse
accountInfo
=
ThreadLocalCache
.
getLoginAccountInfo
();
List
<
EvalElectronicContractImportDTO
>
toImportList
=
new
ArrayList
<>();
List
<
EvalElectronicContractImportFailDTO
>
failList
=
Collections
.
synchronizedList
(
new
ArrayList
<>());
AtomicInteger
successCount
=
new
AtomicInteger
(
0
);
// 使用AtomicInteger替代int
AtomicInteger
successCount
=
new
AtomicInteger
(
0
);
// 阶段2: 数据校验和转换
for
(
int
i
=
0
;
i
<
excelRows
.
size
();
i
++)
{
...
...
@@ -200,7 +194,7 @@ public class EvalElectronicContractService {
/**
* 导入 Excel,返回解析后的数据列
�?
* 导入 Excel,返回解析后的数据列
*/
public
List
<
ContractImportRow
>
importExcel
(
MultipartFile
file
)
{
if
(
file
==
null
||
file
.
isEmpty
())
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment