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
30626681
Commit
30626681
authored
Sep 03, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6cc0ea04
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1525 additions
and
184 deletions
+1525
-184
RB_Order_Course.cs
Edu.Model/Entity/Sell/RB_Order_Course.cs
+1
-1
RB_Order_ViewModel.cs
Edu.Model/ViewModel/Sell/RB_Order_ViewModel.cs
+5
-0
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+1253
-182
RB_Order_CourseRepository.cs
Edu.Repository/Sell/RB_Order_CourseRepository.cs
+45
-0
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+221
-1
No files found.
Edu.Model/Entity/Sell/RB_Order_Course.cs
View file @
30626681
...
...
@@ -15,7 +15,7 @@ namespace Edu.Model.Entity.Sell
/// <summary>
/// 主键
/// </summary>
public
int
Order
IdCourse
{
get
;
set
;
}
public
int
Order
CourseId
{
get
;
set
;
}
/// <summary>
/// 订单编号
...
...
Edu.Model/ViewModel/Sell/RB_Order_ViewModel.cs
View file @
30626681
...
...
@@ -120,6 +120,11 @@ namespace Edu.Model.ViewModel.Sell
/// 经理备注
/// </summary>
public
List
<
RB_Order_Remark_ViewModel
>
DirectorRemarkList
{
get
;
set
;
}
/// <summary>
/// 订单课程 2024-09-02 add by:W
/// </summary>
public
List
<
RB_Order_Course
>
OrderCourseList
{
get
;
set
;
}
/// <summary>
/// 客人列表
/// </summary>
...
...
Edu.Module.Course/OrderModule.cs
View file @
30626681
This diff is collapsed.
Click to expand it.
Edu.Repository/Sell/RB_Order_CourseRepository.cs
0 → 100644
View file @
30626681
using
Edu.Model.Entity.Sell
;
using
Edu.Model.ViewModel.Sell
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
Edu.Repository.Sell
{
/// <summary>
/// 订单课程仓储类
/// </summary>
public
class
RB_Order_CourseRepository
:
BaseRepository
<
RB_Order_Course
>
{
/// <summary>
/// 获取列表
/// </summary>
/// <param name="demodel"></param>
/// <param name="orderIds"></param>
/// <returns></returns>
public
List
<
RB_Order_Course
>
GetOrderCourseListRepository
(
RB_Order_Course
demodel
,
string
OrderIds
)
{
string
where
=
$@" 1=1 "
;
if
(
demodel
.
Group_Id
>
0
)
{
where
+=
$@" AND
{
nameof
(
RB_Order_Course
.
Group_Id
)}
=
{
demodel
.
Group_Id
}
"
;
}
if
(
demodel
.
OrderId
>
0
)
{
where
+=
$@" AND
{
nameof
(
RB_Order_Course
.
OrderId
)}
=
{
demodel
.
OrderId
}
"
;
}
if
(
demodel
.
ClassId
>
0
)
{
where
+=
$@" AND
{
nameof
(
RB_Order_Course
.
ClassId
)}
=
{
demodel
.
ClassId
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
OrderIds
))
{
where
+=
$@" AND
{
nameof
(
RB_Order_Course
.
OrderId
)}
in(
{
OrderIds
}
)"
;
}
string
sql
=
$@" SELECT * FROM RB_Order_Course WHERE
{
where
}
"
;
return
Get
<
RB_Order_Course
>(
sql
).
ToList
();
}
}
}
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
30626681
This diff is collapsed.
Click to expand it.
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