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
5dd93d2f
Commit
5dd93d2f
authored
Aug 06, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
8180f583
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
29 deletions
+1
-29
RB_Class_ViewModel.cs
Edu.Model/ViewModel/Grade/RB_Class_ViewModel.cs
+0
-5
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+0
-6
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+1
-18
No files found.
Edu.Model/ViewModel/Grade/RB_Class_ViewModel.cs
View file @
5dd93d2f
...
...
@@ -106,11 +106,6 @@ namespace Edu.Model.ViewModel.Grade
/// </summary>
public
List
<
ClassTimeItem
>
DefaultTimeList
{
get
;
set
;
}
/// <summary>
/// 课程优惠信息列表
/// </summary>
public
List
<
RB_Course_Preferential_Extend
>
PreferentialList
{
get
;
set
;
}
/// <summary>
/// 开课时间
/// </summary>
...
...
Edu.Module.Course/OrderModule.cs
View file @
5dd93d2f
...
...
@@ -230,12 +230,7 @@ namespace Edu.Module.Course
string
classIds
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
ClassId
));
string
courseIds
=
string
.
Join
(
","
,
list
.
Select
(
qitem
=>
qitem
.
CouseId
));
//查询阶梯价格
List
<
RB_Course_Preferential_Extend
>
coursePreferentialList
=
new
List
<
RB_Course_Preferential_Extend
>();
var
stepList
=
class_StepPriceRepository
.
GetClassStepPriceListRepository
(
new
RB_Class_StepPrice_ViewModel
()
{
QClassIds
=
classIds
});
coursePreferentialList
=
course_PreferentialRepository
.
GetCoursePreferentialListRepostory
(
new
RB_Course_Preferential_Extend
()
{
QCourseIds
=
courseIds
});
var
otherCourseList
=
class_CourseRepository
.
GetClassCourseListRepository
(
new
RB_Class_Course_Extend
()
{
QClassIds
=
classIds
});
List
<
RB_Class_Plan_ViewModel
>
PlanFixed
=
new
List
<
RB_Class_Plan_ViewModel
>();
string
k2classIds
=
string
.
Join
(
","
,
list
.
Where
(
x
=>
x
.
ClassStyle
==
Common
.
Enum
.
Course
.
ClassStyleEnum
.
FixedDate
).
Select
(
x
=>
x
.
ClassId
));
...
...
@@ -245,7 +240,6 @@ namespace Edu.Module.Course
}
foreach
(
var
item
in
list
)
{
item
.
PreferentialList
=
coursePreferentialList
?.
Where
(
qitem
=>
qitem
.
CourseId
==
item
.
CouseId
)?.
ToList
()
??
new
List
<
RB_Course_Preferential_Extend
>();
item
.
ClassStepPriceList
=
stepList
.
Where
(
x
=>
x
.
ClassId
==
item
.
ClassId
).
OrderBy
(
x
=>
x
.
PersionNum
).
ToList
();
item
.
OtherCourseList
=
otherCourseList
?.
Where
(
qitem
=>
qitem
.
ClassId
==
item
.
ClassId
)?.
ToList
()
??
new
List
<
RB_Class_Course_Extend
>();
item
.
DefaultTimeList
=
new
List
<
ClassTimeItem
>();
...
...
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
5dd93d2f
...
...
@@ -95,23 +95,6 @@ namespace Edu.WebApi.Controllers.Course
x
.
OutRemark
,
x
.
OrderStudentCount
,
SurplusNum
,
PreferentialList
=
x
?.
PreferentialList
.
Select
(
qitem
=>
new
{
qitem
.
B2BCommissionMoney
,
qitem
.
B2BCommissionType
,
qitem
.
BuyNum
,
qitem
.
CourseId
,
qitem
.
EduCommissionMoney
,
qitem
.
EduCommissionType
,
qitem
.
Id
,
qitem
.
PreferentialTerms
,
qitem
.
PriceDiscountType
,
qitem
.
PriceDiscountTypeStr
,
qitem
.
PriceMoney
,
qitem
.
PriceType
,
qitem
.
SaleCommissionMoney
,
qitem
.
SaleCommissionType
,
qitem
.
SendNum
,
}),
ClassStepPriceList
=
x
.
ClassStepPriceList
.
Select
(
z
=>
new
{
z
.
ClassStepPriceId
,
...
...
@@ -122,7 +105,7 @@ namespace Edu.WebApi.Controllers.Course
ClassPlanList
=
x
.
ClassPlanList
.
Select
(
z
=>
new
{
z
.
WeekDay
,
ClassDate
=
x
.
ClassStyle
==
C
ommon
.
Enum
.
Course
.
ClassStyleEnum
.
FixedDate
?
z
.
ClassDate
.
ToString
(
"yyyy-MM-dd"
)
:
""
ClassDate
=
x
.
ClassStyle
==
C
lassStyleEnum
.
FixedDate
?
Common
.
ConvertHelper
.
FormatDate
(
z
.
ClassDate
)
:
""
}),
x
.
SchoolName
,
UpdateTime
=
Common
.
ConvertHelper
.
FormatTime
(
x
.
UpdateTime
),
...
...
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