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
2cb0d1e5
Commit
2cb0d1e5
authored
Feb 20, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
77bef398
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
dc_auto_turnover.cs
AutoTurnOver.DB/dc_auto_turnover.cs
+1
-1
report.cs
AutoTurnOver.DB/report.cs
+13
-3
Program.cs
ResetOutofstock/Program.cs
+1
-1
No files found.
AutoTurnOver.DB/dc_auto_turnover.cs
View file @
2cb0d1e5
...
...
@@ -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
/
11
));
var
rows
=
(
int
)
Math
.
Floor
(
total
/
((
end_date
-
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
)
{
...
...
AutoTurnOver.DB/report.cs
View file @
2cb0d1e5
...
...
@@ -4503,9 +4503,19 @@ truncate table dc_report_goods_platform_temp;
}
if
(!
string
.
IsNullOrWhiteSpace
(
searchData
.
platform_type
))
{
sql
+=
" and t1.platform_type=@platform_type "
;
countSql
+=
" and t1.platform_type=@platform_type "
;
parameters
.
Add
(
"platform_type"
,
searchData
.
platform_type
);
if
(
"amzon"
.
Equals
(
searchData
.
platform_type
,
StringComparison
.
OrdinalIgnoreCase
))
{
sql
+=
" and t1.platform_type in @platform_types "
;
countSql
+=
" and t1.platform_type in @platform_types "
;
parameters
.
Add
(
"platform_types"
,
new
List
<
string
>
{
"Amazon"
,
"FBA"
});
}
else
{
sql
+=
" and t1.platform_type=@platform_type "
;
countSql
+=
" and t1.platform_type=@platform_type "
;
parameters
.
Add
(
"platform_type"
,
searchData
.
platform_type
);
}
}
if
(!
string
.
IsNullOrEmpty
(
sort
))
{
...
...
ResetOutofstock/Program.cs
View file @
2cb0d1e5
...
...
@@ -34,7 +34,7 @@ namespace ResetOutofstock
//report.PurchaseWeekBackUp();
//report.GenerateReportPlatformGoods();
//
dc_auto_turnover.ResetHistory();
dc_auto_turnover
.
ResetHistory
();
}
catch
(
Exception
ex
)
{
...
...
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