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
c5831e5d
Commit
c5831e5d
authored
Dec 22, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4c5ca1fe
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
Program.cs
AutoTurnOver.DownloadService/Program.cs
+1
-1
DailyServices.cs
AutoTurnOver.Services/DailyServices.cs
+1
-1
TaskDownloadServices.cs
AutoTurnOver.Services/TaskDownloadServices.cs
+4
-0
No files found.
AutoTurnOver.DownloadService/Program.cs
View file @
c5831e5d
...
...
@@ -12,7 +12,7 @@ namespace AutoTurnOver.DownloadService
{
try
{
//
await new TaskDownloadServices().Download();
await
new
TaskDownloadServices
().
Download
();
}
catch
(
Exception
ex
)
{
...
...
AutoTurnOver.Services/DailyServices.cs
View file @
c5831e5d
...
...
@@ -147,7 +147,7 @@ namespace AutoTurnOver.Services
{
export_count
++;
var
services
=
new
DailyServices
();
var
fileName
=
AppContext
.
BaseDirectory
+
$@"
Result\RealtimeStock\
实时库存-
{
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
)}
.csv"
;
var
fileName
=
AppContext
.
BaseDirectory
+
$@"实时库存-
{
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
)}
.csv"
;
int
page
=
1
;
int
rows
=
50000
;
if
(
export_count
==
1
)
...
...
AutoTurnOver.Services/TaskDownloadServices.cs
View file @
c5831e5d
...
...
@@ -64,9 +64,13 @@ namespace AutoTurnOver.Services
/// </summary>
public
async
Task
<
string
>
DownloadStock
(
string
par_json
,
dc_task_download
download_data
)
{
dc_base_stock_search_dto
search_data
=
par_json
.
ToObject
<
dc_base_stock_search_dto
>();
Console
.
WriteLine
(
"DownloadStock - 开始生成文件"
);
var
memory
=
new
DailyServices
().
Export
(
search_data
);
Console
.
WriteLine
(
"DownloadStock - 开始生成上传文件"
);
var
fileData
=
await
AutoTurnOver
.
Utility
.
QiNiuCloudHelper
.
UploadSectioningAsync
(
memory
);
Console
.
WriteLine
(
"DownloadStock - 上传完毕"
);
return
fileData
;
}
/// <summary>
...
...
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