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
077837fc
Commit
077837fc
authored
Jul 26, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
f25789cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
RB_Order_ViewModel.cs
Edu.Model/ViewModel/Course/RB_Order_ViewModel.cs
+5
-0
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+13
-0
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+3
-1
No files found.
Edu.Model/ViewModel/Course/RB_Order_ViewModel.cs
View file @
077837fc
...
...
@@ -225,5 +225,10 @@ namespace Edu.Model.ViewModel.Course
/// 目标班级名称
/// </summary>
public
string
TargetClassName
{
get
;
set
;
}
/// <summary>
/// 订单拆分列表
/// </summary>
public
List
<
RB_Order_SplitDetails_ViewModel
>
SplitDetailsList
{
get
;
set
;
}
}
}
\ No newline at end of file
Edu.Module.Course/OrderModule.cs
View file @
077837fc
...
...
@@ -2151,15 +2151,27 @@ namespace Edu.Module.Course
{
idList
.
AddRange
(
targetOrderIdList
);
}
List
<
RB_Order_SplitDetails_ViewModel
>
splitList
=
new
List
<
RB_Order_SplitDetails_ViewModel
>();
var
firstOrderList
=
Common
.
ConvertHelper
.
StringToList
(
string
.
Join
(
","
,
orderList
.
Where
(
qitem
=>
qitem
.
FirstOrderId
>
0
).
Select
(
x
=>
x
.
FirstOrderId
)));
if
(
firstOrderList
!=
null
&&
firstOrderList
.
Count
>
0
)
{
splitList
=
splitDetailsRepository
.
GetOrderSplitDetailsListRepository
(
new
RB_Order_SplitDetails_ViewModel
()
{
Q_OldOrderIds
=
string
.
Join
(
","
,
firstOrderList
)
});
}
if
(
idList
!=
null
&&
idList
.
Count
>
0
)
{
string
ids
=
string
.
Join
(
","
,
idList
);
sourceTargetList
=
orderRepository
.
GetOrderListRepository
(
new
RB_Order_ViewModel
{
QOrderIds
=
ids
});
}
//获取备注列表
var
remarkList
=
order_RemarkRepository
.
GetOrderRemarkListRepository
(
new
RB_Order_Remark_ViewModel
()
{
QOrderIds
=
orderIds
});
//获取名单列表
var
guestList
=
order_GuestRepository
.
GetOrderGuestListRepository
(
new
RB_Order_Guest_ViewModel
()
{
OrderIds
=
orderIds
});
//获取合同列表
var
clist
=
education_ContractRepository
.
GetList
(
new
RB_Education_Contract_ViewModel
()
{
Group_Id
=
demodel
.
Group_Id
,
OrderIds
=
orderIds
,
Status
=
-
1
}).
Where
(
x
=>
x
.
Status
!=
4
).
ToList
();
foreach
(
var
item
in
orderList
)
...
...
@@ -2172,6 +2184,7 @@ namespace Edu.Module.Course
{
item
.
TargetClassName
=
sourceTargetList
?.
Where
(
qitem
=>
qitem
.
OrderId
==
item
.
TargetOrderId
)?.
FirstOrDefault
()?.
ClassName
;
}
item
.
SplitDetailsList
=
splitList
.
Where
(
qitem
=>
qitem
.
OldOrderId
==
item
.
OrderId
||
qitem
.
OldOrderId
==
item
.
FirstOrderId
)?.
ToList
()
??
new
List
<
RB_Order_SplitDetails_ViewModel
>();
item
.
SaleRemarkList
=
remarkList
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
&&
x
.
Type
==
1
).
ToList
();
item
.
TeacherRemarkList
=
remarkList
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
&&
x
.
Type
==
2
).
ToList
();
item
.
RectorRemarkList
=
remarkList
.
Where
(
x
=>
x
.
OrderId
==
item
.
OrderId
&&
x
.
Type
==
3
).
ToList
();
...
...
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
077837fc
...
...
@@ -239,7 +239,7 @@ namespace Edu.WebApi.Controllers.Course
x
.
UpOrderId
,
x
.
VisitorReserveId
,
x
.
RenewOrderId
,
x
.
SplitDetailsList
,
SaleRemarkList
=
x
.
SaleRemarkList
.
Select
(
z
=>
new
{
z
.
Id
,
...
...
@@ -1265,6 +1265,7 @@ namespace Edu.WebApi.Controllers.Course
x
.
RenewOrderId
,
x
.
FirstOrderId
,
x
.
IsBackClass
,
x
.
SplitDetailsList
,
SaleRemarkList
=
x
?.
SaleRemarkList
.
Select
(
z
=>
new
{
z
.
Id
,
...
...
@@ -1427,6 +1428,7 @@ namespace Edu.WebApi.Controllers.Course
x
.
UpOrderId
,
x
.
VisitorReserveId
,
x
.
RenewOrderId
,
x
.
SplitDetailsList
,
SaleRemarkList
=
x
?.
SaleRemarkList
.
Select
(
z
=>
new
{
z
.
Id
,
...
...
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