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
4c5ca1fe
Commit
4c5ca1fe
authored
Dec 22, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b0608934
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
SkuAutoTurnServices.cs
AutoTurnOver.Services/SkuAutoTurnServices.cs
+2
-2
TaskDownloadServices.cs
AutoTurnOver.Services/TaskDownloadServices.cs
+4
-1
No files found.
AutoTurnOver.Services/SkuAutoTurnServices.cs
View file @
4c5ca1fe
...
...
@@ -279,9 +279,9 @@ namespace AutoTurnOver.Services
return
DB
.
dc_auto_turnover
.
SkuNewSupplierDeliveryList
();
}
public
string
Export
(
UserData
user
,
Condition_AutoTurnOver
m
,
string
order
,
string
sort
)
public
string
Export
(
Condition_AutoTurnOver
m
,
string
order
,
string
sort
)
{
var
fileName
=
AppContext
.
BaseDirectory
+
$@"Result\RealtimeStock\
{
user
.
UserAccount
}
周转表.csv"
;
var
fileName
=
AppContext
.
BaseDirectory
+
$@"Result\RealtimeStock\周转表.csv"
;
...
...
AutoTurnOver.Services/TaskDownloadServices.cs
View file @
4c5ca1fe
...
...
@@ -37,6 +37,9 @@ namespace AutoTurnOver.Services
case
"实时库存"
:
item
.
result_file_url
=
await
DownloadStock
(
item
.
parameter
,
item
);
break
;
case
"周转表"
:
item
.
result_file_url
=
await
DownloadAuto
(
item
.
parameter
,
item
);
break
;
default
:
throw
new
Exception
(
"无法识别的任务"
);
}
item
.
end_date
=
DateTime
.
Now
;
...
...
@@ -72,7 +75,7 @@ namespace AutoTurnOver.Services
public
async
Task
<
string
>
DownloadAuto
(
string
par_json
,
dc_task_download
download_data
)
{
Condition_AutoTurnOver
search_data
=
par_json
.
ToObject
<
Condition_AutoTurnOver
>();
var
memory
=
new
SkuAutoTurnServices
().
Export
(
search_data
);
var
memory
=
new
SkuAutoTurnServices
().
Export
(
search_data
,
""
,
""
);
var
fileData
=
await
AutoTurnOver
.
Utility
.
QiNiuCloudHelper
.
UploadSectioningAsync
(
memory
);
return
fileData
;
}
...
...
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