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
6d994ccf
Commit
6d994ccf
authored
Dec 02, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
f5aaf467
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
4 deletions
+30
-4
RB_Order_ViewModel.cs
Edu.Model/ViewModel/Sell/RB_Order_ViewModel.cs
+5
-0
ClassModule.cs
Edu.Module.Course/ClassModule.cs
+22
-3
RB_OrderRepository.cs
Edu.Repository/Sell/RB_OrderRepository.cs
+1
-1
B2BAppController.cs
Edu.WebApi/Controllers/B2BApp/B2BAppController.cs
+2
-0
No files found.
Edu.Model/ViewModel/Sell/RB_Order_ViewModel.cs
View file @
6d994ccf
...
...
@@ -186,6 +186,11 @@ namespace Edu.Model.ViewModel.Sell
/// </summary>
public
string
CourseName
{
get
;
set
;
}
/// <summary>
/// 课程封面图
/// </summary>
public
string
CourseImg
{
get
;
set
;
}
/// <summary>
/// 开班时间
/// </summary>
...
...
Edu.Module.Course/ClassModule.cs
View file @
6d994ccf
...
...
@@ -4801,9 +4801,12 @@ namespace Edu.Module.Course
/// </summary>
/// <param name="student_stuId"></param>
/// <returns></returns>
public
List
<
object
>
AppCustomerGetClassPlan
(
int
student_stuId
)
public
object
AppCustomerGetClassPlan
(
int
student_stuId
)
{
List
<
object
>
result
=
new
List
<
object
>();
decimal
SurplusClassHours
=
0
;
ClassStatusEnum
classStatus
=
0
;
GuestStateEnum
StuGuestState
=
0
;
List
<
object
>
list
=
new
List
<
object
>();
var
stuOrderList
=
student_OrderGuestRepository
.
GetStrOrderGuestListRepository
(
new
RB_Student_OrderGuest_ViewModel
()
{
Student_Id
=
student_stuId
...
...
@@ -4817,6 +4820,13 @@ namespace Edu.Module.Course
?.
OrderBy
(
qitem
=>
qitem
.
OrderId
)
?.
FirstOrDefault
();
int
classId
=
firstModel
?.
ClassId
??
0
;
classStatus
=
firstModel
?.
ClassStatus
??
0
;
StuGuestState
=
firstModel
?.
StuGuestState
??
0
;
SurplusClassHours
=
(
firstModel
?.
TotalHours
??
0
)
-
(
firstModel
?.
CompleteHours
??
0
);
if
(
SurplusClassHours
<
0
)
{
SurplusClassHours
=
0
;
}
if
(
classId
>
0
)
{
var
planList
=
class_PlanRepository
.
GetClassPlanListExtRepository
(
new
RB_Class_Plan_ViewModel
()
...
...
@@ -4828,7 +4838,7 @@ namespace Edu.Module.Course
foreach
(
var
item
in
disList
)
{
var
tempModel
=
planList
.
Where
(
qitem
=>
qitem
.
ClassId
==
item
.
ClassId
&&
qitem
.
ClassDate
==
item
.
ClassDate
)?.
OrderBy
(
qitem
=>
qitem
.
StartTime
)?.
FirstOrDefault
();
resul
t
.
Add
(
new
lis
t
.
Add
(
new
{
tempModel
?.
CourseName
,
tempModel
?.
RoomName
,
...
...
@@ -4839,6 +4849,15 @@ namespace Edu.Module.Course
}
}
}
var
result
=
new
{
classStatus
,
classStatusName
=
classStatus
.
ToName
(),
StuGuestState
,
StuGuestStateName
=
StuGuestState
.
ToName
(),
SurplusClassHours
,
PlanList
=
list
};
return
result
;
}
}
...
...
Edu.Repository/Sell/RB_OrderRepository.cs
View file @
6d994ccf
...
...
@@ -274,7 +274,7 @@ ORDER BY {orderBy}
string
sql
=
$@"
SELECT o.*,c.ClassName,c.ClassNo,c.School_Id as ClassSchoolId,t.TeacherName,t.TeacherIcon,IFNULL(course.CourseName,'') AS CourseName
,C.OpenTime,course.CourseSubject,IFNULL(csubject.SubjectName,'') AS CourseSubjectName,IFNULL(school.SName,'') AS SchoolName
,IFNULL(c.ClassStatus,0) AS ClassStatus
,IFNULL(c.ClassStatus,0) AS ClassStatus
,IFNULL(course.CoverImg,'') AS CourseImg
FROM RB_Order o LEFT JOIN rb_class c on o.ClassId = c.ClassId
LEFT JOIN rb_teacher t on c.Teacher_Id = t.TId
LEFT JOIN rb_course AS course ON (o.CourseId=course.CourseId AND o.CourseId>0 AND o.OrderType=1)
...
...
Edu.WebApi/Controllers/B2BApp/B2BAppController.cs
View file @
6d994ccf
...
...
@@ -64,6 +64,7 @@ namespace Edu.WebApi.Controllers.B2BApp
{
item
.
CourseId
,
item
.
CourseName
,
item
.
CourseImg
,
item
.
ClassId
,
item
.
ClassName
,
item
.
ClassNo
,
...
...
@@ -97,6 +98,7 @@ namespace Edu.WebApi.Controllers.B2BApp
{
var
customer
=
base
.
AppletCustomerInfo
;
int
StuId
=
base
.
ParmJObj
.
GetInt
(
"StuId"
);
var
obj
=
classModule
.
AppCustomerGetClassPlan
(
StuId
);
return
ApiResult
.
Success
(
data
:
obj
);
}
...
...
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