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
9034081a
Commit
9034081a
authored
Feb 09, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
42dfc51d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
15 deletions
+23
-15
Program.cs
AutoGeneratePurchaseAdvise/Program.cs
+1
-1
daily.cs
AutoTurnOver.DB/daily.cs
+20
-12
AverageTargetBackgrounService.cs
...r.Purchase.AverageTarget/AverageTargetBackgrounService.cs
+1
-1
Program.cs
AutoTurnOver.Purchase.AverageTarget/Program.cs
+1
-1
No files found.
AutoGeneratePurchaseAdvise/Program.cs
View file @
9034081a
...
@@ -23,7 +23,7 @@ namespace AutoGeneratePurchaseAdvise
...
@@ -23,7 +23,7 @@ namespace AutoGeneratePurchaseAdvise
{
{
//PurchaseAdviseServices.Generate(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")));
//PurchaseAdviseServices.Generate(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")));
//PurchaseAdviseServices.Generate(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 1
2:0
0:00")));
//PurchaseAdviseServices.Generate(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 1
7:3
0:00")));
//PurchaseAdviseServices.GenerateTemp(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 13:13:00")));
//PurchaseAdviseServices.GenerateTemp(DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 13:13:00")));
//PurchaseAdviseServices.AutoPushBuySys(2);
//PurchaseAdviseServices.AutoPushBuySys(2);
...
...
AutoTurnOver.DB/daily.cs
View file @
9034081a
...
@@ -228,12 +228,16 @@ UNION ALL
...
@@ -228,12 +228,16 @@ UNION ALL
{
{
foreach
(
var
no_str
in
nos
.
Split
(
'*'
))
foreach
(
var
no_str
in
nos
.
Split
(
'*'
))
{
{
var
no_datas
=
no_str
.
Split
(
'_'
);
if
(
no_str
!=
"N/A"
)
dc_estimated_arrival_dto
data
=
new
dc_estimated_arrival_dto
();
{
data
.
type
=
no_datas
[
0
].
Contains
(
"p"
)
?
1
:
no_datas
[
0
].
Contains
(
"t"
)
?
2
:
0
;
var
no_datas
=
no_str
.
Split
(
'_'
);
data
.
no
=
no_datas
[
1
];
dc_estimated_arrival_dto
data
=
new
dc_estimated_arrival_dto
();
data
.
quantity
=
decimal
.
Parse
(
no_datas
[
2
]);
data
.
type
=
no_datas
[
0
].
Contains
(
"p"
)
?
1
:
no_datas
[
0
].
Contains
(
"t"
)
?
2
:
0
;
datas
.
Add
(
data
);
data
.
no
=
no_datas
[
1
];
data
.
quantity
=
decimal
.
Parse
(
no_datas
[
2
]);
datas
.
Add
(
data
);
}
}
}
...
@@ -266,12 +270,16 @@ UNION ALL
...
@@ -266,12 +270,16 @@ UNION ALL
{
{
try
try
{
{
var
no_datas
=
no_str
.
Split
(
'_'
);
if
(
no_str
!=
"N/A"
)
dc_estimated_arrival_dto
data
=
new
dc_estimated_arrival_dto
();
{
data
.
type
=
no_datas
[
0
].
Contains
(
"p"
)
?
1
:
no_datas
[
0
].
Contains
(
"t"
)
?
2
:
0
;
var
no_datas
=
no_str
.
Split
(
'_'
);
data
.
no
=
no_datas
[
1
];
dc_estimated_arrival_dto
data
=
new
dc_estimated_arrival_dto
();
data
.
quantity
=
decimal
.
Parse
(
no_datas
[
2
]);
data
.
type
=
no_datas
[
0
].
Contains
(
"p"
)
?
1
:
no_datas
[
0
].
Contains
(
"t"
)
?
2
:
0
;
datas
.
Add
(
data
);
data
.
no
=
no_datas
[
1
];
data
.
quantity
=
decimal
.
Parse
(
no_datas
[
2
]);
datas
.
Add
(
data
);
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
...
AutoTurnOver.Purchase.AverageTarget/AverageTargetBackgrounService.cs
View file @
9034081a
...
@@ -37,7 +37,7 @@ namespace AutoTurnOver.Purchase.AverageTarget
...
@@ -37,7 +37,7 @@ namespace AutoTurnOver.Purchase.AverageTarget
try
try
{
{
Console
.
WriteLine
(
$"开始 init2 ,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Console
.
WriteLine
(
$"开始 init2 ,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
PurchaseAverageTargetServices
.
Calculation
(
days
:
360
);
//
PurchaseAverageTargetServices.Calculation(days:360);
Console
.
WriteLine
(
$"结束 init2,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Console
.
WriteLine
(
$"结束 init2,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
...
AutoTurnOver.Purchase.AverageTarget/Program.cs
View file @
9034081a
...
@@ -31,7 +31,7 @@ namespace AutoTurnOver.Purchase.AverageTarget
...
@@ -31,7 +31,7 @@ namespace AutoTurnOver.Purchase.AverageTarget
//PurchaseAverageTargetServices.CalculationTransfer();
//PurchaseAverageTargetServices.CalculationTransfer();
//report.ResetTransExpectArrivaltime();
//report.ResetTransExpectArrivaltime();
//dc_auto_return_goods_config_dao.NewCalculation();
//dc_auto_return_goods_config_dao.NewCalculation();
//PurchaseAverageTargetServices.Calculation("214213601
", days: 360);
PurchaseAverageTargetServices
.
Calculation
(
"947332218
"
,
days
:
360
);
// PurchaseAverageTargetServices.CalculationTransfer("217632401", 360);
// PurchaseAverageTargetServices.CalculationTransfer("217632401", 360);
}
}
catch
(
Exception
ex
)
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