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
f6303840
Commit
f6303840
authored
Sep 22, 2020
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sdzq-ld' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
into sdzq
parents
67c6db1c
a341c25b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+1
-0
OrderController.cs
Mall.WebApi/Controllers/Product/OrderController.cs
+4
-3
No files found.
Mall.Module.Product/OrderModule.cs
View file @
f6303840
...
...
@@ -11228,6 +11228,7 @@ namespace Mall.Module.Product
model
.
Income
,
model
.
FreightMoney
,
CouponMoney
=
model
.
CouponMoney
??
0
,
InsuranceMoney
=
(
model
.
DetailList
!=
null
&&
model
.
DetailList
.
Any
())
?
(
model
.
DetailList
.
Sum
(
x
=>
x
.
InsuranceMoney
??
0
))
:
0
,
IntegralMoney
=
(
model
.
DetailList
!=
null
&&
model
.
DetailList
.
Any
())
?
(
model
.
DetailList
.
Sum
(
x
=>
x
.
IntegralMoney
??
0
))
:
0
,
IntegralNumber
=
(
model
.
DetailList
!=
null
&&
model
.
DetailList
.
Any
())
?
(
model
.
DetailList
.
Sum
(
x
=>
x
.
IntegralNumber
??
0
))
:
0
,
MemberDiscountCouponList
=
memberCouponList
.
Select
(
y
=>
new
...
...
Mall.WebApi/Controllers/Product/OrderController.cs
View file @
f6303840
...
...
@@ -377,6 +377,7 @@ namespace Mall.WebApi.Controllers.MallBase
x
.
PaymentWay
,
PaymentWayName
=
x
.
PaymentWay
.
GetEnumName
(),
CouponMoney
=
x
.
CouponMoney
??
0
,
InsuranceMoney
=
(
x
.
DetailList
!=
null
&&
x
.
DetailList
.
Any
())
?
(
x
.
DetailList
.
Sum
(
x
=>
x
.
InsuranceMoney
??
0
))
:
0
,
IntegralMoney
=
(
x
.
DetailList
!=
null
&&
x
.
DetailList
.
Any
())
?
(
x
.
DetailList
.
Sum
(
x
=>
x
.
IntegralMoney
??
0
))
:
0
,
IntegralNumber
=
(
x
.
DetailList
!=
null
&&
x
.
DetailList
.
Any
())
?
(
x
.
DetailList
.
Sum
(
x
=>
x
.
IntegralNumber
??
0
))
:
0
,
MemberDiscountCouponList
=
x
.
MemberDiscountCouponList
.
Select
(
y
=>
new
...
...
@@ -480,7 +481,7 @@ namespace Mall.WebApi.Controllers.MallBase
public
ApiResult
GetOrderListExportForSDEnumList
()
{
var
list
=
EnumHelper
.
GetEnumList
(
typeof
(
OrderListExportForSDEnum
));
return
ApiResult
.
Success
(
""
,
list
.
OrderBy
(
x
=>
x
.
Value
).
Select
(
x
=>
new
return
ApiResult
.
Success
(
""
,
list
.
OrderBy
(
x
=>
Convert
.
ToInt32
(
x
.
Value
)
).
Select
(
x
=>
new
{
Name
=
x
.
Key
,
Id
=
Convert
.
ToInt32
(
x
.
Value
)
...
...
@@ -583,11 +584,11 @@ namespace Mall.WebApi.Controllers.MallBase
case
20
:
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
PaymentTime
.
HasValue
?
item
.
PaymentTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
)
{
});
break
;
case
21
:
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
OrderStatus
>
OrderStatusEnum
.
WaitSendGoods
?
"已
发货"
:
"未发货
"
)
{
});
break
;
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
OrderStatus
>
OrderStatusEnum
.
WaitSendGoods
?
"已
确认"
:
"待确认
"
)
{
});
break
;
case
22
:
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
DeliveryTime
.
HasValue
?
item
.
DeliveryTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
)
{
});
break
;
case
23
:
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
OrderStatus
>
OrderStatusEnum
.
WaitReceiving
?
"
已收货"
:
"未收货
"
)
{
});
break
;
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
OrderStatus
>
OrderStatusEnum
.
WaitReceiving
?
"
出行中"
:
"待出行
"
)
{
});
break
;
case
24
:
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
ReceivingTime
.
HasValue
?
item
.
ReceivingTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
)
{
});
break
;
case
29
:
...
...
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