Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
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
YZG
yzg-util
Commits
01ee1c77
Commit
01ee1c77
authored
Oct 10, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口文档的支持
parent
dc86262c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
ExcelConsole.java
...-db/src/main/java/com/yanzuoguang/excel/ExcelConsole.java
+2
-7
ExportData.java
...il-db/src/main/java/com/yanzuoguang/excel/ExportData.java
+2
-2
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/excel/ExcelConsole.java
View file @
01ee1c77
...
...
@@ -295,21 +295,16 @@ public class ExcelConsole<T extends Object> implements DbRow<T> {
String
columnName
=
column
.
getName
();
String
value
=
rowHandle
.
get
(
t
,
columnName
);
// 当不需要合并历史记录时,则创建新的内容
Cell
cell
=
createCell
(
row
,
columnPos
,
value
);
// 判断列是否需要合并
if
(
column
.
isMerger
())
{
ExcelMergerData
mergerData
=
mergerGroupData
.
get
(
column
.
getMegerGroup
());
// 判断是否需要合并历史记录
if
(
mergerData
.
getRowCell
()
>
1
)
{
// 合并历史记录单元格
mergerData
(
mergerData
,
columnPos
);
}
else
{
// 当不需要合并历史记录时,则创建新的内容
Cell
cell
=
createCell
(
row
,
columnPos
,
value
);
}
}
else
{
// 不合并时直接写入单元格内容
Cell
cell
=
createCell
(
row
,
columnPos
,
value
);
}
}
...
...
yzg-util-db/src/main/java/com/yanzuoguang/excel/ExportData.java
View file @
01ee1c77
...
...
@@ -24,10 +24,10 @@ public class ExportData {
public
static
final
short
SUB_TITLE_HEIGHT
=
40
;
@ApiModelProperty
(
notes
=
"头默认高度"
)
public
static
final
short
HEAD_HEIGHT
=
2
0
;
public
static
final
short
HEAD_HEIGHT
=
4
0
;
@ApiModelProperty
(
notes
=
"行默认高度"
)
public
static
final
short
ROW_HEIGHT
=
2
0
;
public
static
final
short
ROW_HEIGHT
=
3
0
;
@ApiModelProperty
(
notes
=
"列默认宽度"
)
public
static
final
short
COLUMN_WIDTH
=
120
;
...
...
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