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
41daa25d
Commit
41daa25d
authored
May 10, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缺货推送优化结构
parent
3bdec838
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
report.cs
AutoTurnOver.DB/report.cs
+1
-0
dc_auto_shortage_push.cs
AutoTurnOver.Models/dc_auto_shortage_push.cs
+1
-0
ShortagePushBackgroundService.cs
ShortagePush/ShortagePushBackgroundService.cs
+1
-1
No files found.
AutoTurnOver.DB/report.cs
View file @
41daa25d
...
@@ -882,6 +882,7 @@ and not exists ( select * from dc_auto_shortage_push_not_config where dc_auto_sh
...
@@ -882,6 +882,7 @@ and not exists ( select * from dc_auto_shortage_push_not_config where dc_auto_sh
var
conn
=
_connection
;
var
conn
=
_connection
;
foreach
(
var
item
in
datas
)
foreach
(
var
item
in
datas
)
{
{
item
.
unique_no
=
$"
{
item
.
bailun_sku
}{
item
.
warehouse_code
}{
item
.
platform
}
"
;
conn
.
Insert
(
item
);
conn
.
Insert
(
item
);
}
}
}
}
...
...
AutoTurnOver.Models/dc_auto_shortage_push.cs
View file @
41daa25d
...
@@ -12,6 +12,7 @@ namespace AutoTurnOver.Models
...
@@ -12,6 +12,7 @@ namespace AutoTurnOver.Models
public
int
id
{
get
;
set
;
}
public
int
id
{
get
;
set
;
}
public
string
bailun_sku
{
get
;
set
;
}
public
string
bailun_sku
{
get
;
set
;
}
public
string
unique_no
{
get
;
set
;
}
public
string
warehouse_code
{
get
;
set
;
}
public
string
warehouse_code
{
get
;
set
;
}
public
string
warehouse_type
{
get
;
set
;
}
public
string
warehouse_type
{
get
;
set
;
}
...
...
ShortagePush/ShortagePushBackgroundService.cs
View file @
41daa25d
...
@@ -48,7 +48,7 @@ namespace ShortagePush
...
@@ -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"
)}
"
);
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
,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"
)}
"
);
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