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
34105f79
Commit
34105f79
authored
Dec 05, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c3d4577f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
report.cs
AutoTurnOver.DB/report.cs
+10
-10
ShortagePushBackgroundService.cs
ShortagePush/ShortagePushBackgroundService.cs
+1
-1
No files found.
AutoTurnOver.DB/report.cs
View file @
34105f79
...
...
@@ -520,16 +520,16 @@ and not exists ( select * from dc_auto_shortage_push_not_config where dc_auto_sh
// ebay 的 10月新品 +普货全量推
if
(
platform
==
"ebay"
)
{
if
(
is_all
)
{
// 全量推 只推普货
sql
+=
" and t2.develop_time>='2020-10-01' and t2.buyer_name not in ('张莹霞','赵美聪','甄杰靖','张莹霞') and t1.warehouse_code in ('GZBLWH') "
;
}
else
{
// 增量推,那部分数据要剔除
sql
+=
" and !(t2.develop_time>='2020-10-01' and t2.buyer_name not in ('张莹霞','赵美聪','甄杰靖','张莹霞') and t1.warehouse_code in ('GZBLWH') ) "
;
}
//
if (is_all)
//
{
//
// 全量推 只推普货
//
sql += " and t2.develop_time>='2020-10-01' and t2.buyer_name not in ('张莹霞','赵美聪','甄杰靖','张莹霞') and t1.warehouse_code in ('GZBLWH') ";
//
}
//
else
//
{
//
// 增量推,那部分数据要剔除
//
sql += " and !(t2.develop_time>='2020-10-01' and t2.buyer_name not in ('张莹霞','赵美聪','甄杰靖','张莹霞') and t1.warehouse_code in ('GZBLWH') ) ";
//
}
}
shortage_list
.
AddRange
(
_connection
.
Query
<
dc_auto_shortage_push
>(
sql
,
new
{
platform
=
platform
},
commandTimeout
:
0
));
...
...
ShortagePush/ShortagePushBackgroundService.cs
View file @
34105f79
...
...
@@ -48,7 +48,7 @@ namespace ShortagePush
System
.
Console
.
WriteLine
(
$"结束推送 Ebay -增量 改零数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
System
.
Console
.
WriteLine
(
$"开始推送 Ebay - 全量 改零数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
new
ReportServices
().
ShortagePushEbay
(
true
);
//
new ReportServices().ShortagePushEbay(true);
System
.
Console
.
WriteLine
(
$"结束推送 Ebay - 全量 改零数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
System
.
Console
.
WriteLine
(
$"开始推送 Ebay 回货数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
...
...
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