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
88894eff
Commit
88894eff
authored
Jun 16, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a08828e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
DailyServices.cs
AutoTurnOver.Services/DailyServices.cs
+0
-8
No files found.
AutoTurnOver.Services/DailyServices.cs
View file @
88894eff
...
@@ -54,19 +54,13 @@ namespace AutoTurnOver.Services
...
@@ -54,19 +54,13 @@ namespace AutoTurnOver.Services
return
DB
.
daily
.
ShortagePushList
(
platform
,
bailun_sku
,
offset
,
limit
,
ref
total
,
start_date
,
end_date
);
return
DB
.
daily
.
ShortagePushList
(
platform
,
bailun_sku
,
offset
,
limit
,
ref
total
,
start_date
,
end_date
);
}
}
private
static
int
export_shortage_count
=
0
;
public
MemoryStream
ExportShortagePush
(
string
platform
,
string
bailun_sku
,
DateTime
?
start_date
,
DateTime
?
end_date
,
UserData
user
)
public
MemoryStream
ExportShortagePush
(
string
platform
,
string
bailun_sku
,
DateTime
?
start_date
,
DateTime
?
end_date
,
UserData
user
)
{
{
try
try
{
{
export_shortage_count
++;
var
fileName
=
AppContext
.
BaseDirectory
+
$@"Result\RealtimeStock\
{
user
.
UserAccount
}
修改在线数量日志-
{
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
)}
.csv"
;
var
fileName
=
AppContext
.
BaseDirectory
+
$@"Result\RealtimeStock\
{
user
.
UserAccount
}
修改在线数量日志-
{
DateTime
.
Now
.
ToString
(
"yyyyMMddHHmmss"
)}
.csv"
;
int
page
=
1
;
int
page
=
1
;
int
rows
=
50000
;
int
rows
=
50000
;
if
(
export_shortage_count
==
1
)
{
rows
=
250000
;
}
while
(
true
)
while
(
true
)
{
{
...
@@ -106,12 +100,10 @@ namespace AutoTurnOver.Services
...
@@ -106,12 +100,10 @@ namespace AutoTurnOver.Services
stream
.
CopyTo
(
memory
);
stream
.
CopyTo
(
memory
);
}
}
memory
.
Position
=
0
;
memory
.
Position
=
0
;
export_shortage_count
--;
return
memory
;
return
memory
;
}
}
catch
(
Exception
)
catch
(
Exception
)
{
{
export_shortage_count
--;
throw
;
throw
;
}
}
...
...
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