Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
Overview
Overview
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
bltdc
data-center-auto
Commits
d7edeeb4
Commit
d7edeeb4
authored
Jun 20, 2019
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化周转导出,分页算法
parent
e544d356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
SkuAutoTurnController.cs
AutoTurnOver/Controllers/SkuAutoTurnController.cs
+3
-3
No files found.
AutoTurnOver/Controllers/SkuAutoTurnController.cs
View file @
d7edeeb4
...
...
@@ -122,11 +122,11 @@ namespace AutoTurnOver.Controllers
var
service
=
new
Services
.
SkuAutoTurnServices
();
int
page
=
0
;
int
page
=
1
;
int
rows
=
10000
;
while
(
true
)
{
var
list
=
service
.
List
(
m
,
page
,
rows
,
ref
total
,
order
,
sort
);
var
list
=
service
.
List
(
m
,
(
page
-
1
)*
rows
,
rows
,
ref
total
,
order
,
sort
);
if
(
list
==
null
||
list
.
Count
<=
0
)
break
;
DataTable
table
=
new
DataTable
();
string
[]
cols
=
new
string
[]
{
"Sku"
,
"商品编码"
,
"内部编码"
,
"sku标题"
,
"仓库编码"
,
"仓库名称"
,
"MOQ"
,
...
...
@@ -186,7 +186,7 @@ namespace AutoTurnOver.Controllers
}
DataTableHelper
.
SaveCSV
(
table
,
fileName
,
page
>
0
);
DataTableHelper
.
SaveCSV
(
table
,
fileName
,
page
>
1
);
page
++;
}
...
...
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