Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
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
黄奎
Education
Commits
d60ffd92
Commit
d60ffd92
authored
Jul 01, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
c0ea08f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+32
-0
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+3
-1
No files found.
Edu.Module.Course/OrderModule.cs
View file @
d60ffd92
...
...
@@ -1178,6 +1178,38 @@ namespace Edu.Module.Course
item
.
RectorRemarkList
=
remarkList
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
&&
x
.
Type
==
3
).
ToList
();
item
.
DirectorRemarkList
=
remarkList
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
&&
x
.
Type
==
4
).
ToList
();
item
.
GuestList
=
guestList
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
).
ToList
();
if
(
item
.
GuestList
!=
null
&&
item
.
GuestList
.
Count
>
0
)
{
foreach
(
var
subItem
in
item
.
GuestList
)
{
var
contractModel
=
clist
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
&&
x
.
GuestId
==
subItem
.
Id
)?.
FirstOrDefault
();
subItem
.
ContractId
=
contractModel
?.
Id
??
0
;
subItem
.
ContractNo
=
contractModel
?.
ContractNo
??
""
;
subItem
.
ContractStatus
=
contractModel
?.
Status
??
-
1
;
string
ContractStatusStr
=
""
;
if
(
subItem
.
ContractStatus
==
0
)
{
ContractStatusStr
=
"草稿"
;
}
else
if
(
subItem
.
ContractStatus
==
1
)
{
ContractStatusStr
=
"提交审核"
;
}
else
if
(
subItem
.
ContractStatus
==
2
)
{
ContractStatusStr
=
"审核通过"
;
}
else
if
(
subItem
.
ContractStatus
==
3
)
{
ContractStatusStr
=
"驳回"
;
}
else
if
(
subItem
.
ContractStatus
==
4
)
{
ContractStatusStr
=
"取消"
;
}
subItem
.
ContractStatusStr
=
ContractStatusStr
;
}
}
item
.
ContractList
=
clist
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
).
ToList
();
var
ZList
=
item
.
GuestList
.
Where
(
x
=>
!
item
.
ContractList
.
Select
(
z
=>
z
.
GuestId
).
Contains
(
x
.
Id
)).
ToList
();
if
(
ZList
.
Any
()
&&
item
.
ContractList
.
Any
())
...
...
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
d60ffd92
...
...
@@ -263,6 +263,8 @@ namespace Edu.WebApi.Controllers.Course
z
.
GuestName
,
z
.
GuestState
,
z
.
GuestStateStr
,
z
.
ContractNo
,
z
.
ContractId
,
}),
ContractList
=
x
.
ContractList
.
Select
(
z
=>
new
{
...
...
@@ -1419,7 +1421,7 @@ namespace Edu.WebApi.Controllers.Course
z
.
StudentName
,
z
.
ContractNo
,
z
.
GuestId
,
z
.
Status
z
.
Status
,
})
})
};
...
...
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