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
816baf4f
Commit
816baf4f
authored
Mar 29, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出销量模板,如果没有带查询参数,则随便带一个上去
parent
b2856223
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
SkuAutoTurnServices.cs
AutoTurnOver.Services/SkuAutoTurnServices.cs
+1
-1
TaskDownloadServices.cs
AutoTurnOver.Services/TaskDownloadServices.cs
+3
-2
No files found.
AutoTurnOver.Services/SkuAutoTurnServices.cs
View file @
816baf4f
...
@@ -473,7 +473,7 @@ namespace AutoTurnOver.Services
...
@@ -473,7 +473,7 @@ namespace AutoTurnOver.Services
table
.
Columns
.
Add
(
"14日日均"
);
table
.
Columns
.
Add
(
"14日日均"
);
table
.
Columns
.
Add
(
"30日日均"
);
table
.
Columns
.
Add
(
"30日日均"
);
var
thisDate
=
DateTime
.
Now
;
var
thisDate
=
DateTime
.
Now
;
for
(
int
i
=
0
;
i
<
13
;
i
++)
for
(
int
i
=
0
;
i
<
22
;
i
++)
{
{
var
btime
=
thisDate
.
GetWeekFirstDayMon
();
var
btime
=
thisDate
.
GetWeekFirstDayMon
();
var
etime
=
btime
.
GetWeekLastDaySun
();
var
etime
=
btime
.
GetWeekLastDaySun
();
...
...
AutoTurnOver.Services/TaskDownloadServices.cs
View file @
816baf4f
...
@@ -342,11 +342,12 @@ namespace AutoTurnOver.Services
...
@@ -342,11 +342,12 @@ namespace AutoTurnOver.Services
/// </summary>
/// </summary>
public
async
Task
<
string
>
DownloadExportSalesTemplate
(
string
par_json
,
dc_task_download
download_data
)
public
async
Task
<
string
>
DownloadExportSalesTemplate
(
string
par_json
,
dc_task_download
download_data
)
{
{
Condition_AutoTurnOver
search_data
=
par_json
.
ToObject
<
Condition_AutoTurnOver
>();
if
(
string
.
IsNullOrWhiteSpace
(
download_data
.
parameter_show
))
if
(
string
.
IsNullOrWhiteSpace
(
download_data
.
parameter_show
))
{
{
throw
new
Exception
(
"数据过大,请带条件查询"
)
;
search_data
.
bailun_sku
=
"LM-EO-007"
;
}
}
Condition_AutoTurnOver
search_data
=
par_json
.
ToObject
<
Condition_AutoTurnOver
>();
Console
.
WriteLine
(
"DownloadStock - 开始生成文件"
);
Console
.
WriteLine
(
"DownloadStock - 开始生成文件"
);
int
rows
=
0
;
int
rows
=
0
;
var
memory
=
new
SkuAutoTurnServices
().
ExportSalesTemplate
(
search_data
,
""
,
""
,
out
rows
);
var
memory
=
new
SkuAutoTurnServices
().
ExportSalesTemplate
(
search_data
,
""
,
""
,
out
rows
);
...
...
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