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
39d4ac05
Commit
39d4ac05
authored
May 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
d2102905
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
171 additions
and
23 deletions
+171
-23
RB_Class_ViewModel.cs
Edu.Model/ViewModel/Course/RB_Class_ViewModel.cs
+10
-0
RB_Order_ViewModel.cs
Edu.Model/ViewModel/Course/RB_Order_ViewModel.cs
+5
-0
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+123
-19
RB_ClassRepository.cs
Edu.Repository/Course/RB_ClassRepository.cs
+1
-1
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+32
-3
No files found.
Edu.Model/ViewModel/Course/RB_Class_ViewModel.cs
View file @
39d4ac05
...
...
@@ -182,5 +182,15 @@ namespace Edu.Model.ViewModel.Course
/// 销售平台
/// </summary>
public
string
Saleplat
{
get
;
set
;
}
/// <summary>
/// 课程售价
/// </summary>
public
decimal
CourseSellPrice
{
get
;
set
;
}
/// <summary>
/// 课程原价
/// </summary>
public
decimal
CourseOriginalPrice
{
get
;
set
;
}
}
}
\ No newline at end of file
Edu.Model/ViewModel/Course/RB_Order_ViewModel.cs
View file @
39d4ac05
...
...
@@ -120,5 +120,10 @@ namespace Edu.Model.ViewModel.Course
/// 留学就业产品名称
/// </summary>
public
string
StudyName
{
get
;
set
;
}
/// <summary>
/// 协助人员姓名
/// </summary>
public
string
HelpEnterName
{
get
;
set
;
}
}
}
\ No newline at end of file
Edu.Module.Course/OrderModule.cs
View file @
39d4ac05
This diff is collapsed.
Click to expand it.
Edu.Repository/Course/RB_ClassRepository.cs
View file @
39d4ac05
...
...
@@ -235,7 +235,7 @@ WHERE A.ClassId={0}
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT A.*,B.CourseName,D.TeacherName,IFNULL(D.TeacherHead,'') AS TeacherHead,E.SName AS SchoolName,R.RoomName
,IFNULL(t.GuestNum,0) AS OrderStudentCount
,IFNULL(t.GuestNum,0) AS OrderStudentCount
,IFNULL(B.SellPrice,0) AS CourseSellPrice,IFNULL(B.OriginalPrice,0) AS CourseOriginalPrice
FROM rb_class AS A LEFT JOIN rb_course AS B ON A.CouseId=B.CourseId
LEFT JOIN rb_teacher AS D ON A.Teacher_Id=D.TId
LEFT JOIN rb_class_room AS R ON A.ClassRoomId=R.RoomId
...
...
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
39d4ac05
...
...
@@ -34,7 +34,8 @@ namespace Edu.WebApi.Controllers.Course
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetClassPruductList
()
{
public
ApiResult
GetClassPruductList
()
{
var
userInfo
=
base
.
UserInfo
;
var
pageModel
=
JsonHelper
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
Msg
.
ToString
());
var
dmodel
=
JsonHelper
.
DeserializeObject
<
RB_Class_ViewModel
>(
RequestParm
.
Msg
.
ToString
());
...
...
@@ -56,8 +57,8 @@ namespace Edu.WebApi.Controllers.Course
OpenTime
=
x
.
OpenTime
.
ToString
(
"yyyy年MM月dd日"
),
EndOrderTime
=
x
.
EndOrderTime
.
HasValue
?
x
.
EndOrderTime
.
Value
.
ToString
(
"yyyy年MM月dd日"
)
:
""
,
IsCanApply
=
x
.
EndOrderTime
>=
Convert
.
ToDateTime
(
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
))
&&
x
.
ClassPersion
>
x
.
OrderStudentCount
?
1
:
0
,
x
.
OriginalPrice
,
x
.
SellPrice
,
OriginalPrice
=
x
.
Course
OriginalPrice
,
SellPrice
=
x
.
Course
SellPrice
,
x
.
IsStepPrice
,
x
.
ClassPersion
,
x
.
OutRemark
,
...
...
@@ -162,6 +163,12 @@ namespace Edu.WebApi.Controllers.Course
x
.
RectorRemark
,
x
.
DirectorRemark
,
x
.
OfferId
,
x
.
HelpEnterId
,
HelpEnterName
=
UserReidsCache
.
GetUserLoginInfo
(
x
.
HelpEnterId
)?.
AccountName
,
x
.
GeneralOccupation
,
x
.
EduOccupation
,
x
.
IsLessPrice
,
x
.
LessPrice
,
SaleRemarkList
=
x
.
SaleRemarkList
.
Select
(
z
=>
new
{
z
.
Id
,
...
...
@@ -231,6 +238,12 @@ namespace Edu.WebApi.Controllers.Course
x
.
RectorRemark
,
x
.
DirectorRemark
,
x
.
OfferId
,
x
.
HelpEnterId
,
HelpEnterName
=
UserReidsCache
.
GetUserLoginInfo
(
x
.
HelpEnterId
)?.
AccountName
,
x
.
GeneralOccupation
,
x
.
EduOccupation
,
x
.
IsLessPrice
,
x
.
LessPrice
,
SaleRemarkList
=
x
.
SaleRemarkList
.
Select
(
z
=>
new
{
z
.
Id
,
...
...
@@ -296,6 +309,11 @@ namespace Edu.WebApi.Controllers.Course
SaleRemark
=
base
.
ParmJObj
.
GetStringValue
(
"SaleRemark"
),
SourceId
=
base
.
ParmJObj
.
GetInt
(
"SourceId"
),
Unit_Price
=
base
.
ParmJObj
.
GetDecimal
(
"Unit_Price"
),
HelpEnterId
=
base
.
ParmJObj
.
GetInt
(
"HelpEnterId"
),
GeneralOccupation
=
base
.
ParmJObj
.
GetStringValue
(
"GeneralOccupation"
),
EduOccupation
=
base
.
ParmJObj
.
GetStringValue
(
"EduOccupation"
),
IsLessPrice
=
base
.
ParmJObj
.
GetInt
(
"IsLessPrice"
),
LessPrice
=
base
.
ParmJObj
.
GetDecimal
(
"LessPrice"
),
};
if
(
demodel
.
OrderType
==
OrderTypeEnum
.
CourseOrder
&&
demodel
.
ClassId
<=
0
)
{
...
...
@@ -401,6 +419,11 @@ namespace Edu.WebApi.Controllers.Course
model
.
SaleRemark
,
model
.
OrderType
,
model
.
SourceId
,
model
.
HelpEnterId
,
model
.
GeneralOccupation
,
model
.
EduOccupation
,
model
.
IsLessPrice
,
model
.
LessPrice
,
},
StepPriceList
=
list
.
Select
(
x
=>
new
{
...
...
@@ -1108,6 +1131,12 @@ namespace Edu.WebApi.Controllers.Course
RectorRemark
=
x
?.
RectorRemark
??
""
,
DirectorRemark
=
x
?.
DirectorRemark
??
""
,
x
.
OfferId
,
x
.
HelpEnterId
,
HelpEnterName
=
UserReidsCache
.
GetUserLoginInfo
(
x
.
HelpEnterId
)?.
AccountName
,
x
.
GeneralOccupation
,
x
.
EduOccupation
,
x
.
IsLessPrice
,
x
.
LessPrice
,
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