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
9a6b92a9
Commit
9a6b92a9
authored
Feb 18, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9a72600f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
dc_auto_turnover.cs
AutoTurnOver.DB/dc_auto_turnover.cs
+1
-1
Program.cs
ResetOutofstock/Program.cs
+1
-1
ResetOutofstockBackgrounService.cs
ResetOutofstock/ResetOutofstockBackgrounService.cs
+1
-1
No files found.
AutoTurnOver.DB/dc_auto_turnover.cs
View file @
9a6b92a9
...
...
@@ -494,7 +494,7 @@ from dc_auto_turnover as dat
var
init_now
=
DateTime
.
Now
.
ToDayHome
();
var
end_date
=
DateTime
.
Parse
(
now
.
ToString
(
"yyyy-MM-dd 23:00:00"
));
var
total
=
_connection
.
QueryFirstOrDefault
<
int
>(
" select count(1) from dc_auto_turnover where gmt_modified<@init_now "
,
new
{
init_now
});
var
rows
=
(
int
)
Math
.
Floor
(
total
/
((
end_date
-
init_now
).
TotalMinutes
-
5
));
var
rows
=
(
int
)
Math
.
Floor
(
total
/
((
end_date
-
init_now
).
TotalMinutes
/
11
));
var
datas
=
_connection
.
Query
<
ResetHistoryDto
>(
" select bailun_sku,warehouse_code from dc_auto_turnover where gmt_modified<@init_now limit @rows "
,
new
{
init_now
,
rows
}).
ToList
();
if
(
datas
!=
null
)
{
...
...
ResetOutofstock/Program.cs
View file @
9a6b92a9
...
...
@@ -32,8 +32,8 @@ namespace ResetOutofstock
//dc_aims_transfer_warehouse_dao.TransferWarehouseTask();
//daily.ResetFbaExtendReview(DateTime.Now);
//report.PurchaseWeekBackUp();
//dc_auto_turnover.ResetHistory();
}
catch
(
Exception
ex
)
{
...
...
ResetOutofstock/ResetOutofstockBackgrounService.cs
View file @
9a6b92a9
...
...
@@ -252,7 +252,7 @@ namespace ResetOutofstock
Console
.
WriteLine
(
ex
.
Message
);
}
Thread
.
Sleep
(
55
*
1000
);
Thread
.
Sleep
(
10
*
60
*
1000
);
}
});
...
...
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