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
cba31319
Commit
cba31319
authored
Jan 30, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
和平商旅我的订单页面订单状态修改
parent
101cd8ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
OrderController.cs
Mall.WebApi/Controllers/Product/OrderController.cs
+23
-4
No files found.
Mall.WebApi/Controllers/Product/OrderController.cs
View file @
cba31319
...
@@ -704,12 +704,31 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -704,12 +704,31 @@ namespace Mall.WebApi.Controllers.MallBase
[
HttpPost
]
[
HttpPost
]
public
ApiResult
GetOrderStatusEnumList
()
public
ApiResult
GetOrderStatusEnumList
()
{
{
var
parms
=
RequestParm
;
var
list
=
EnumHelper
.
GetEnumList
(
typeof
(
OrderStatusEnum
));
var
list
=
EnumHelper
.
GetEnumList
(
typeof
(
OrderStatusEnum
));
return
ApiResult
.
Success
(
""
,
list
.
OrderBy
(
x
=>
Convert
.
ToInt32
(
x
.
Value
)).
Select
(
x
=>
new
if
(
parms
.
MallBaseId
==
19
)
{
{
Name
=
x
.
Key
,
List
<
object
>
result
=
new
List
<
object
>();
Id
=
Convert
.
ToInt32
(
x
.
Value
)
foreach
(
var
item
in
list
)
}));
{
if
(
item
.
Value
==
"1"
||
item
.
Value
==
"5"
||
item
.
Value
==
"6"
||
item
.
Value
==
"7"
)
{
result
.
Add
(
new
{
Id
=
Convert
.
ToInt32
(
item
.
Value
),
Name
=
item
.
Key
});
}
else
if
(
item
.
Value
==
"3"
)
{
result
.
Add
(
new
{
Id
=
Convert
.
ToInt32
(
item
.
Value
),
Name
=
"待出团"
});
}
}
return
ApiResult
.
Success
(
""
,
result
);
}
else
{
return
ApiResult
.
Success
(
""
,
list
.
OrderBy
(
x
=>
Convert
.
ToInt32
(
x
.
Value
)).
Select
(
x
=>
new
{
Name
=
x
.
Key
,
Id
=
Convert
.
ToInt32
(
x
.
Value
)
}));
}
}
}
/// <summary>
/// <summary>
...
...
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