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
583e24e4
Commit
583e24e4
authored
Feb 20, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c2b5ade7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
TaskDownloadServices.cs
AutoTurnOver.Services/TaskDownloadServices.cs
+18
-0
ReportsController.cs
AutoTurnOver/Controllers/ReportsController.cs
+1
-2
No files found.
AutoTurnOver.Services/TaskDownloadServices.cs
View file @
583e24e4
...
@@ -68,6 +68,9 @@ namespace AutoTurnOver.Services
...
@@ -68,6 +68,9 @@ namespace AutoTurnOver.Services
case
"供应链调拨在途"
:
case
"供应链调拨在途"
:
item
.
result_file_url
=
await
DownloadFullLinkTransfer
(
item
.
parameter
,
item
);
item
.
result_file_url
=
await
DownloadFullLinkTransfer
(
item
.
parameter
,
item
);
break
;
break
;
case
"商品销量报表(仓库维度)"
:
item
.
result_file_url
=
await
DownloadReportGoods
(
item
.
parameter
,
item
);
break
;
default
:
throw
new
Exception
(
"无法识别的任务"
);
default
:
throw
new
Exception
(
"无法识别的任务"
);
}
}
item
.
end_date
=
DateTime
.
Now
;
item
.
end_date
=
DateTime
.
Now
;
...
@@ -101,6 +104,21 @@ namespace AutoTurnOver.Services
...
@@ -101,6 +104,21 @@ namespace AutoTurnOver.Services
Console
.
WriteLine
(
"DownloadStock - 上传完毕"
);
Console
.
WriteLine
(
"DownloadStock - 上传完毕"
);
return
fileData
;
return
fileData
;
}
}
/// <summary>
/// 商品销售情况统计
/// </summary>
public
async
Task
<
string
>
DownloadReportGoods
(
string
par_json
,
dc_task_download
download_data
)
{
dc_report_goods_search_dto
search_data
=
par_json
.
ToObject
<
dc_report_goods_search_dto
>();
Console
.
WriteLine
(
"DownloadStock - 开始生成文件"
);
var
memory
=
new
ReportServices
().
ReportGoodsExport
(
search_data
,
""
,
""
);
Console
.
WriteLine
(
"DownloadStock - 开始生成上传文件"
);
var
fileData
=
await
AutoTurnOver
.
Utility
.
QiNiuCloudHelper
.
UploadSectioningAsync
(
memory
);
Console
.
WriteLine
(
"DownloadStock - 上传完毕"
);
return
fileData
;
}
/// <summary>
/// <summary>
/// 下载改在线记录
/// 下载改在线记录
...
...
AutoTurnOver/Controllers/ReportsController.cs
View file @
583e24e4
...
@@ -270,8 +270,7 @@ namespace AutoTurnOver.Controllers
...
@@ -270,8 +270,7 @@ namespace AutoTurnOver.Controllers
return
new
JsonResult
(
list
==
null
||
list
.
Count
<=
0
?
new
quantity_out_stock_dto
()
:
list
[
0
]);
return
new
JsonResult
(
list
==
null
||
list
.
Count
<=
0
?
new
quantity_out_stock_dto
()
:
list
[
0
]);
}
}
/// <summary>
/// <summary>
/// 导出实时缺货
/// 导出实时缺货
/// </summary>
/// </summary>
/// <param name="sku"></param>
/// <param name="sku"></param>
...
...
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