Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
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
黄奎
mall.oytour.com
Commits
f680ba76
Commit
f680ba76
authored
Aug 20, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出修改
parent
d343cae7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
37 deletions
+53
-37
ExcelTempLateHelper.cs
Mall.Common/Plugin/ExcelTempLateHelper.cs
+4
-2
UserController.cs
Mall.WebApi/Controllers/User/UserController.cs
+49
-35
No files found.
Mall.Common/Plugin/ExcelTempLateHelper.cs
View file @
f680ba76
...
...
@@ -245,6 +245,9 @@ namespace Mall.Common.Plugin
HSSFPalette
palette
=
workbook
.
GetCustomPalette
();
int
rowIndex
=
0
;
HSSFFont
ffont
=
(
HSSFFont
)
workbook
.
CreateFont
();
//单元格样式
HSSFCellStyle
fCellStyle
=
(
HSSFCellStyle
)
workbook
.
CreateCellStyle
();
//循环添加行
foreach
(
var
item
in
list
)
{
...
...
@@ -258,8 +261,7 @@ namespace Mall.Common.Plugin
dataRow
.
Height
=
50
*
10
;
//行高
}
int
columnsIndex
=
0
;
//单元格样式
HSSFCellStyle
fCellStyle
=
(
HSSFCellStyle
)
workbook
.
CreateCellStyle
();
//循环添加列
foreach
(
var
subItem
in
item
.
ExcelRows
)
{
...
...
Mall.WebApi/Controllers/User/UserController.cs
View file @
f680ba76
This diff is collapsed.
Click to expand it.
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