Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
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
DataCenter_Core2.1_20190520
Commits
9ddbe61f
Commit
9ddbe61f
authored
Jan 26, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整头程运输取值
parent
ee3591f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Services.cs
Bailun.DC.MonthSaleProfit/Services.cs
+3
-1
No files found.
Bailun.DC.MonthSaleProfit/Services.cs
View file @
9ddbe61f
...
...
@@ -631,7 +631,9 @@ join dc_base_warehouse t3 on t1.warehouse_code=t3.warehouse_code
//物流仓储费用 = 头程运输+直邮物流费(国内发货)+尾程物流费(国外发货)+海外仓仓储+海外仓杂费
m
.
fee_logistics_first
=
objOrder
.
Sum
(
a
=>
a
.
cost_first
??
0
)
+
objFBA
.
Sum
(
a
=>
a
.
cost_first
??
0
);
//头程运输费改为从调拨系统读取,预估费用,交运确认时间
var
objFirst
=
cn
.
QueryFirstOrDefault
<
decimal
>(
$"select sum(estimatedcost) from dc_base_transfer_info where isdeleted=0 and stateid>1 and deliverytime >='
{
day
.
ToString
(
"yyyy-MM-dd"
)}
' and deliverytime<'
{
day
.
AddMonths
(
1
).
ToString
(
"yyyy-MM-dd"
)}
'"
);
m
.
fee_logistics_first
=
objFirst
;
//objOrder.Sum(a => a.cost_first??0) + objFBA.Sum(a => a.cost_first??0);
m
.
fee_logistics_direct
=
objLogistics
.
Where
(
a
=>
a
.
hq_type
==
"国内仓"
)?.
Sum
(
b
=>
b
.
cost_logistics
)
??
0
;
//objOrder.Sum(a => a.cost_logistics??0);
m
.
fee_logistics_tail
=
objLogistics
.
Where
(
a
=>
a
.
hq_type
!=
"国内仓"
)?.
Sum
(
b
=>
b
.
cost_logistics
)
??
0
;
m
.
fee_storage
=
objOrder
.
Sum
(
a
=>
a
.
total_fee
??
0
);
...
...
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