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
5f44dcec
Commit
5f44dcec
authored
Aug 21, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刷新调拨费用
parent
7771235d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
3 deletions
+48
-3
report_cash_flow_dao.cs
AutoTurnOver.DB/report_cash_flow_dao.cs
+0
-0
dc_base_transfer_verify.cs
AutoTurnOver.Models/Report/dc_base_transfer_verify.cs
+47
-2
Program.cs
ResetOutofstock/Program.cs
+1
-1
No files found.
AutoTurnOver.DB/report_cash_flow_dao.cs
View file @
5f44dcec
This diff is collapsed.
Click to expand it.
AutoTurnOver.Models/Report/dc_base_transfer_verify.cs
View file @
5f44dcec
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Text
;
namespace
AutoTurnOver.Models.Report
namespace
AutoTurnOver.Models.Report
...
@@ -113,10 +114,54 @@ namespace AutoTurnOver.Models.Report
...
@@ -113,10 +114,54 @@ namespace AutoTurnOver.Models.Report
public
string
logisticscode
{
get
;
set
;
}
public
string
logisticscode
{
get
;
set
;
}
public
int
isdeleted
{
get
;
set
;
}
public
int
isdeleted
{
get
;
set
;
}
public
string
box_id
{
get
;
set
;
}
public
string
box_id
{
get
;
set
;
}
public
string
bailun_sku
{
get
;
set
;
}
public
string
bailun_skus
{
get
;
set
;
}
public
List
<
sku_dto
>
skus
{
get
{
if
(
string
.
IsNullOrWhiteSpace
(
bailun_skus
))
{
return
new
List
<
sku_dto
>();
}
else
{
try
{
var
temp_skus
=
bailun_skus
.
Split
(
','
).
Select
(
s
=>
{
var
arr
=
s
.
Split
(
':'
);
return
new
sku_dto
()
{
bailun_sku
=
arr
[
0
],
weight
=
decimal
.
Parse
(
arr
[
1
])
};
}).
ToList
();
var
sum_weight
=
temp_skus
.
Sum
(
s
=>
s
.
weight
);
foreach
(
var
item
in
temp_skus
)
{
item
.
cost_first
=
Math
.
Round
(
item
.
weight
/
sum_weight
*
sum_cost_first
,
2
);
}
return
temp_skus
;
}
catch
(
Exception
ex
)
{
throw
;
}
}
}
}
public
class
sku_dto
{
public
string
bailun_sku
{
get
;
set
;
}
public
decimal
weight
{
get
;
set
;
}
public
decimal
cost_first
{
get
;
set
;
}
}
public
string
transfer_order_id
{
get
;
set
;
}
public
string
transfer_order_id
{
get
;
set
;
}
public
string
warehouse_code
{
get
;
set
;
}
public
string
warehouse_code
{
get
;
set
;
}
public
decimal
cost_first
{
get
;
set
;
}
public
decimal
sum_
cost_first
{
get
;
set
;
}
}
}
...
...
ResetOutofstock/Program.cs
View file @
5f44dcec
...
@@ -15,7 +15,7 @@ namespace ResetOutofstock
...
@@ -15,7 +15,7 @@ namespace ResetOutofstock
Console
.
WriteLine
(
"刷新缺货数据任务启动..."
);
Console
.
WriteLine
(
"刷新缺货数据任务启动..."
);
var
now
=
DateTime
.
Now
;
var
now
=
DateTime
.
Now
;
//
report_cash_flow_dao.CalculationTransferOrder(now.AddMonths(-3), DateTime.Parse(now.AddDays(-1).ToString("yyyy-MM-dd 23:59:59")));
report_cash_flow_dao
.
CalculationTransferOrder
(
now
.
AddMonths
(-
3
),
DateTime
.
Parse
(
now
.
AddDays
(-
1
).
ToString
(
"yyyy-MM-dd 23:59:59"
)));
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
{
{
services
.
AddHostedService
<
ResetOutofstockBackgrounService
>();
services
.
AddHostedService
<
ResetOutofstockBackgrounService
>();
...
...
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