Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dataC_api
Project
Project
Details
Activity
Releases
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
高宇
dataC_api
Commits
347d9eb4
Commit
347d9eb4
authored
Apr 29, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.导出Dto类
parent
9cdbd322
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
24 deletions
+34
-24
RoleDto.java
src/main/java/org/rcisoft/bus/jnsp7xtm/entity/RoleDto.java
+32
-22
ExportToExcelUtil.java
src/main/java/org/rcisoft/util/ExportToExcelUtil.java
+2
-2
No files found.
src/main/java/org/rcisoft/bus/jnsp7xtm/entity/RoleDto.java
View file @
347d9eb4
...
...
@@ -16,62 +16,72 @@ public class RoleDto extends CyIdIncreEntity<RoleDto> {
private
String
nqy
;
@Excel
(
name
=
"ddh"
,
orderNum
=
"3"
,
width
=
20
)
private
String
ddh
;
@Excel
(
name
=
"khdm"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"khdm"
,
orderNum
=
"
4
"
,
width
=
20
)
private
String
khdm
;
@Excel
(
name
=
"khm"
,
orderNum
=
"
4
"
,
width
=
20
)
@Excel
(
name
=
"khm"
,
orderNum
=
"
5
"
,
width
=
20
)
private
String
khm
;
@Excel
(
name
=
"khqf"
,
orderNum
=
"5"
,
width
=
20
)
@Excel
(
name
=
"gc"
,
orderNum
=
"6"
,
width
=
20
)
private
String
gc
;
@Excel
(
name
=
"co"
,
orderNum
=
"7"
,
width
=
20
)
private
String
co
;
@Excel
(
name
=
"seqno"
,
orderNum
=
"8"
,
width
=
20
)
private
String
seqno
;
@Excel
(
name
=
"khqf"
,
orderNum
=
"8"
,
width
=
20
)
private
String
khqf
;
@Excel
(
name
=
"pn"
,
orderNum
=
"
7
"
,
width
=
20
)
@Excel
(
name
=
"pn"
,
orderNum
=
"
11
"
,
width
=
20
)
private
String
pn
;
@Excel
(
name
=
"mksqf"
,
orderNum
=
"
6
"
,
width
=
20
)
@Excel
(
name
=
"mksqf"
,
orderNum
=
"
9
"
,
width
=
20
)
private
String
mksqf
;
@Excel
(
name
=
"xsjg"
,
orderNum
=
"1
2
"
,
width
=
20
,
type
=
10
)
@Excel
(
name
=
"xsjg"
,
orderNum
=
"1
6
"
,
width
=
20
,
type
=
10
)
private
String
xsjg
;
@Excel
(
name
=
"zzc"
,
orderNum
=
"9"
,
width
=
20
,
type
=
10
)
@Excel
(
name
=
"zzc"
,
orderNum
=
"
1
9"
,
width
=
20
,
type
=
10
)
private
String
zzc
;
@Excel
(
name
=
"rmb"
,
orderNum
=
"
13
"
,
width
=
20
,
type
=
10
)
@Excel
(
name
=
"rmb"
,
orderNum
=
"
21
"
,
width
=
20
,
type
=
10
)
private
String
rmb
;
@Excel
(
name
=
"chzsa"
,
orderNum
=
"
10
"
,
width
=
20
,
type
=
10
)
@Excel
(
name
=
"chzsa"
,
orderNum
=
"
22
"
,
width
=
20
,
type
=
10
)
private
String
chzsa
;
@Excel
(
name
=
"szzt"
,
orderNum
=
"8"
,
width
=
20
)
@Excel
(
name
=
"szzt"
,
orderNum
=
"
1
8"
,
width
=
20
)
private
String
szzt
;
@Excel
(
name
=
"chzsb"
,
orderNum
=
"
14
"
,
width
=
20
,
type
=
10
)
@Excel
(
name
=
"chzsb"
,
orderNum
=
"
23
"
,
width
=
20
,
type
=
10
)
private
String
chzsb
;
@Excel
(
name
=
"ddjsr"
,
orderNum
=
"
10
"
,
width
=
20
)
@Excel
(
name
=
"ddjsr"
,
orderNum
=
"
24
"
,
width
=
20
)
private
String
ddjsr
;
@Excel
(
name
=
"ddzdnq"
,
orderNum
=
"
11
"
,
width
=
20
)
@Excel
(
name
=
"ddzdnq"
,
orderNum
=
"
25
"
,
width
=
20
)
private
String
ddzdnq
;
@Excel
(
name
=
"zd"
,
orderNum
=
"1"
,
width
=
20
)
private
String
zd
;
@Excel
(
name
=
"fnq"
,
orderNum
=
"15"
,
width
=
20
)
@Excel
(
name
=
"fnq"
,
orderNum
=
"17"
,
width
=
20
)
private
String
fnq
;
@Excel
(
name
=
"l24"
,
orderNum
=
"15"
,
width
=
20
)
private
String
ltw
;
@Excel
(
name
=
"yy
ydd"
,
orderNum
=
"1
6"
,
width
=
20
)
@Excel
(
name
=
"yy
dd"
,
orderNum
=
"2
6"
,
width
=
20
)
private
String
yydd
;
@Excel
(
name
=
"zzcg"
,
orderNum
=
"
16
"
,
width
=
20
,
type
=
10
)
@Excel
(
name
=
"zzcg"
,
orderNum
=
"
20
"
,
width
=
20
,
type
=
10
)
private
String
zzcg
;
@Excel
(
name
=
"bz"
,
orderNum
=
"1
7
"
,
width
=
20
)
@Excel
(
name
=
"bz"
,
orderNum
=
"1
4
"
,
width
=
20
)
private
String
bz
;
@Excel
(
name
=
"jypn"
,
orderNum
=
"1
7
"
,
width
=
20
)
@Excel
(
name
=
"jypn"
,
orderNum
=
"1
3
"
,
width
=
20
)
private
String
jypn
;
@Excel
(
name
=
"fzdm"
,
orderNum
=
"1
7
"
,
width
=
20
)
@Excel
(
name
=
"fzdm"
,
orderNum
=
"1
2
"
,
width
=
20
)
private
String
fzdm
;
@Excel
(
name
=
"xslj"
,
orderNum
=
"1
7
"
,
width
=
20
)
@Excel
(
name
=
"xslj"
,
orderNum
=
"1
0
"
,
width
=
20
)
private
String
xslj
;
@Excel
(
name
=
"jlpm"
,
orderNum
=
"
17
"
,
width
=
20
)
@Excel
(
name
=
"jlpm"
,
orderNum
=
"
9
"
,
width
=
20
)
private
String
jlpm
;
@Excel
(
name
=
"hl"
,
orderNum
=
"15"
,
width
=
20
)
private
String
hl
;
private
String
person
;
private
String
month_one_total
;
...
...
src/main/java/org/rcisoft/util/ExportToExcelUtil.java
View file @
347d9eb4
...
...
@@ -34,7 +34,7 @@ public class ExportToExcelUtil extends CyEpExcelUtil {
// 1、创建一个Workbook(XSSFWorkbook)
Workbook
workbook
=
new
XSSFWorkbook
();
// 3、定义标题和sheetName
ExportParams
exportParams
=
new
ExportParams
(
"导出统计"
,
"sheet1"
);
ExportParams
exportParams
=
new
ExportParams
();
exportParams
.
setStyle
(
ExcelExportStatisticStyler
.
class
);
// 默认未 ExcelType.HSSF导出失败
exportParams
.
setType
(
ExcelType
.
XSSF
);
...
...
@@ -46,7 +46,7 @@ public class ExportToExcelUtil extends CyEpExcelUtil {
public
static
void
exportExcel
(
List
<?>
list
,
String
title
,
String
sheetName
,
Class
<?>
pojoClass
,
String
fileName
,
HttpServletResponse
response
)
{
ExportParams
exportParams
=
new
ExportParams
(
title
,
sheetName
);
ExportParams
exportParams
=
new
ExportParams
();
exportParams
.
setStyle
(
ExcelExportStatisticStyler
.
class
);
String
[]
format
=
fileName
.
split
(
"\\."
);
if
(
format
[
1
].
equals
(
"xlsx"
))
{
...
...
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