Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
e1935976
Commit
e1935976
authored
Oct 22, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):监管查询,使用登记证列表导出字段超过Excel单元格限制问题处理
parent
cad671e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
JgTableDataExportServiceImpl.java
...ule/jg/biz/service/impl/JgTableDataExportServiceImpl.java
+17
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgTableDataExportServiceImpl.java
View file @
e1935976
...
@@ -436,12 +436,29 @@ public class JgTableDataExportServiceImpl implements IJgTableDataExportService {
...
@@ -436,12 +436,29 @@ public class JgTableDataExportServiceImpl implements IJgTableDataExportService {
}
}
List
<
RegistrationVo
>
exportData
=
registrationMapper
.
queryRegistrationInIds
(
dto
,
client
);
List
<
RegistrationVo
>
exportData
=
registrationMapper
.
queryRegistrationInIds
(
dto
,
client
);
for
(
RegistrationVo
vo
:
exportData
)
{
for
(
RegistrationVo
vo
:
exportData
)
{
vo
.
setEquCode
(
limitByComma
(
vo
.
getEquCode
()));
vo
.
setSupervisoryCode
(
limitByComma
(
vo
.
getSupervisoryCode
()));
vo
.
setRegType
(
RegTypeEnum
.
getNameByCode
(
vo
.
getRegType
()).
orElse
(
RegTypeEnum
.
REGISTRATION_NEW
.
getName
()));
vo
.
setRegType
(
RegTypeEnum
.
getNameByCode
(
vo
.
getRegType
()).
orElse
(
RegTypeEnum
.
REGISTRATION_NEW
.
getName
()));
}
}
ExcelUtil
.
createTemplate
(
response
,
"使用登记列表数据"
,
"使用登记列表"
,
exportData
,
RegistrationVo
.
class
,
null
,
false
);
ExcelUtil
.
createTemplate
(
response
,
"使用登记列表数据"
,
"使用登记列表"
,
exportData
,
RegistrationVo
.
class
,
null
,
false
);
}
}
/**
/**
* 截取逗号分隔字符串,只保留前100项,多余用 "..." 代替
*/
private
String
limitByComma
(
String
equCode
)
{
if
(
equCode
==
null
||
equCode
.
trim
().
isEmpty
())
{
return
""
;
}
String
[]
parts
=
equCode
.
split
(
","
);
if
(
parts
.
length
<=
100
)
{
return
equCode
;
}
// 只保留前100项并添加省略号
return
String
.
join
(
","
,
Arrays
.
copyOf
(
parts
,
100
))
+
"..."
;
}
/**
* 单位变更列表数据导出
* 单位变更列表数据导出
*
*
* @param response 响应
* @param response 响应
...
...
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