Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
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
黄奎
mall.oytour.com
Commits
f483b225
Commit
f483b225
authored
Feb 26, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代付修改
parent
cc4caebd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
OrderModule_V2.cs
Mall.Module.Product/OrderModule_V2.cs
+21
-2
No files found.
Mall.Module.Product/OrderModule_V2.cs
View file @
f483b225
...
...
@@ -90,9 +90,25 @@ namespace Mall.Module.Product
}
model
.
DetailList
=
dlist
;
if
(
model
.
MallBaseId
==
19
)
{
//620 20元的运费以及其他费用,商品总价600,2个商品,1-全款,1-订金60%;300*(1-(60/100))=120;
//620-120-0=500
decimal
payIncome
=
(
model
.
Income
.
Value
)
-
(
model
?.
PayIncome
??
0
);
//实际应付金额-已支付金额
if
((
model
?.
PayIncome
??
0
)
==
0
)
//支付定金金额
{
decimal
depositMoney
=
Math
.
Round
(
dlist
.
Where
(
x
=>
x
.
DepositRatio
>
0
).
Sum
(
x
=>
(
1
-
(
x
.
DepositRatio
/
100
))
*
(
x
.
Final_Price
??
0
)),
2
);
payIncome
=
payIncome
-
depositMoney
;
//最终应付金额-定金-退款
}
model
.
GoodsDepositMoney
=
Math
.
Round
(
dlist
.
Where
(
x
=>
x
.
DepositRatio
>
0
).
Sum
(
x
=>
((
x
.
DepositRatio
/
100
))
*
(
x
.
Final_Price
??
0
)),
2
);
model
.
ResultPayMoney
=
payIncome
;
}
else
{
model
.
ResultPayMoney
=
model
.
Income
??
0
;
}
//地址
model
.
DistrictAddress
=
((
model
.
Province
.
HasValue
&&
model
.
Province
.
Value
>
0
)
?
(
destinationRepository
.
GetEntity
(
model
.
Province
)?.
Name
??
""
)
:
""
)
+
" "
+
((
model
.
City
.
HasValue
&&
model
.
City
.
Value
>
0
)
?
(
destinationRepository
.
GetEntity
(
model
.
City
)?.
Name
??
""
)
:
""
)
+
" "
+
((
model
.
District
.
HasValue
&&
model
.
District
.
Value
>
0
)
?
(
destinationRepository
.
GetEntity
(
model
.
District
)?.
Name
??
""
):
""
);
model
.
DistrictAddress
=
((
model
.
Province
.
HasValue
&&
model
.
Province
.
Value
>
0
)
?
(
destinationRepository
.
GetEntity
(
model
.
Province
)?.
Name
??
""
)
:
""
)
+
" "
+
((
model
.
City
.
HasValue
&&
model
.
City
.
Value
>
0
)
?
(
destinationRepository
.
GetEntity
(
model
.
City
)?.
Name
??
""
)
:
""
)
+
" "
+
((
model
.
District
.
HasValue
&&
model
.
District
.
Value
>
0
)
?
(
destinationRepository
.
GetEntity
(
model
.
District
)?.
Name
??
""
)
:
""
);
model
.
IsCanApplyForAfterSale
=
2
;
...
...
@@ -107,6 +123,9 @@ namespace Mall.Module.Product
umodel
.
Name
,
umodel
.
Photo
},
PayIncome
=
model
.
PayIncome
??
0
,
model
.
ResultPayMoney
,
model
.
GoodsDepositMoney
,
OrderStatusName
=
model
.
OrderStatus
.
GetEnumName
(),
CreateDate
=
model
.
CreateDate
.
HasValue
?
model
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
,
CancelTime
=
model
.
CancelTime
.
HasValue
?
model
.
CancelTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
,
...
...
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