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
8ba92607
Commit
8ba92607
authored
Jul 12, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增 Shopify 自动备货服务
parent
5b5c8c50
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
1 deletion
+65
-1
report.cs
AutoTurnOver.DB/report.cs
+0
-0
dc_auto_jit_inventory.cs
AutoTurnOver.Models/dc_auto_jit_inventory.cs
+24
-0
dc_t_task.cs
AutoTurnOver.Models/dc_t_task.cs
+14
-0
Program.cs
ResetOutofstock/Program.cs
+3
-1
ResetOutofstockBackgrounService.cs
ResetOutofstock/ResetOutofstockBackgrounService.cs
+24
-0
No files found.
AutoTurnOver.DB/report.cs
View file @
8ba92607
This diff is collapsed.
Click to expand it.
AutoTurnOver.Models/dc_auto_jit_inventory.cs
0 → 100644
View file @
8ba92607
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
AutoTurnOver.Models
{
public
class
dc_auto_jit_inventory
{
public
int
id
{
get
;
set
;
}
public
string
bailun_sku
{
get
;
set
;
}
public
string
bailun_sku_title
{
get
;
set
;
}
public
int
safe_stock
{
get
;
set
;
}
public
string
warehouse_code
{
get
;
set
;
}
public
string
warehouse_name
{
get
;
set
;
}
public
int
status
{
get
;
set
;
}
public
DateTime
?
date
{
get
;
set
;
}
public
DateTime
?
invalid_date
{
get
;
set
;
}
/// <summary>
/// 默认 =0, 独立站订单=1
/// </summary>
public
int
type
{
get
;
set
;
}
}
}
AutoTurnOver.Models/dc_t_task.cs
0 → 100644
View file @
8ba92607
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
AutoTurnOver.Models
{
public
class
dc_t_task
{
public
int
id
{
get
;
set
;
}
public
string
task_name
{
get
;
set
;
}
public
DateTime
start_time
{
get
;
set
;
}
public
DateTime
end_time
{
get
;
set
;
}
}
}
ResetOutofstock/Program.cs
View file @
8ba92607
...
@@ -38,7 +38,9 @@ namespace ResetOutofstock
...
@@ -38,7 +38,9 @@ namespace ResetOutofstock
//daily.ResetGmvExtendSales(now);
//daily.ResetGmvExtendSales(now);
//report.ResetTransExpectArrivaltime();
//report.ResetTransExpectArrivaltime();
//base_sku_dao.SynchroSkuCharacter();
//base_sku_dao.SynchroSkuCharacter();
//report.ClearShopifyJitInventory();
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
...
ResetOutofstock/ResetOutofstockBackgrounService.cs
View file @
8ba92607
...
@@ -426,6 +426,30 @@ namespace ResetOutofstock
...
@@ -426,6 +426,30 @@ namespace ResetOutofstock
}
}
});
});
Task
.
Factory
.
StartNew
(()
=>
{
while
(
true
)
{
try
{
Console
.
WriteLine
(
$"开始 计算Shopify的备货数量,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
report
.
ClearShopifyJitInventory
();
report
.
ShopifyJitInventory
();
Console
.
WriteLine
(
$"结束 计算Shopify的备货数量,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Thread
.
Sleep
(
60
*
60
*
1000
);
}
catch
(
Exception
ex
)
{
Console
.
WriteLine
(
"计算Shopify的备货数量:"
+
ex
.
Message
);
Console
.
WriteLine
(
"计算Shopify的备货数量:"
+
ex
.
StackTrace
);
}
}
});
...
...
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