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
57806394
Commit
57806394
authored
Nov 28, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
118bc377
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
FirstBackgroundService.cs
AutoGeneratePurchaseAdvise/FirstBackgroundService.cs
+2
-2
PurchaseAdviseServices.cs
AutoTurnOver.Services/PurchaseAdviseServices.cs
+6
-2
No files found.
AutoGeneratePurchaseAdvise/FirstBackgroundService.cs
View file @
57806394
...
...
@@ -21,9 +21,9 @@ namespace ShortagePush
{
try
{
System
.
Console
.
WriteLine
(
$"开始下首单,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
//
System.Console.WriteLine($"开始下首单,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
dc_auto_first_order_sku_dao
.
GeneratePurchaseAdvise
();
System
.
Console
.
WriteLine
(
$"结束下首单,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
//
System.Console.WriteLine($"结束下首单,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
catch
(
Exception
ex
)
...
...
AutoTurnOver.Services/PurchaseAdviseServices.cs
View file @
57806394
...
...
@@ -121,6 +121,7 @@ namespace AutoTurnOver.Services
//查询最近一个采购建议
if
(
original_datas
==
null
||
original_datas
.
Count
<=
0
)
{
Console
.
WriteLine
(
" 推送缺货发现没数据:line 124 "
);
return
;
}
var
json_datas
=
original_datas
.
ToJson
().
ToObject
<
List
<
dc_auto_purchase_advise_detailed_dto
>>();
...
...
@@ -139,7 +140,7 @@ namespace AutoTurnOver.Services
if
(
datas
==
null
||
datas
.
Count
<=
0
)
{
Console
.
WriteLine
(
"
未查询到数据
"
);
Console
.
WriteLine
(
"
推送缺货发现没数据:line 143
"
);
return
;
}
...
...
@@ -222,7 +223,10 @@ namespace AutoTurnOver.Services
bd_sku
=
s
.
Key
,
sys_source
=
s
.
Any
(
g
=>
g
.
type
==
2
)
?
2
:
s
.
Any
(
g
=>
g
.
type
==
1
)
?
1
:
3
,
}).
ToList
();
if
(
datas
==
null
||
datas
.
Count
<=
0
)
{
Console
.
WriteLine
(
" 推送缺货发现没数据:line 228 "
);
}
var
result
=
ApiServices
.
PushBuyPlan
(
data
,
is_skip_error
);
if
(
result
.
IsSuccessed
)
{
...
...
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