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
c92c928c
Commit
c92c928c
authored
Dec 04, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学生名单
parent
938f5867
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
745 additions
and
9 deletions
+745
-9
RB_Order_Guest.cs
Edu.Model/Entity/Course/RB_Order_Guest.cs
+5
-0
RB_Order_Remark.cs
Edu.Model/Entity/Course/RB_Order_Remark.cs
+5
-0
RB_Order_Guest_ViewModel.cs
Edu.Model/ViewModel/Course/RB_Order_Guest_ViewModel.cs
+4
-1
RB_Order_Remark_ViewModel.cs
Edu.Model/ViewModel/Course/RB_Order_Remark_ViewModel.cs
+14
-0
RB_Order_ViewModel.cs
Edu.Model/ViewModel/Course/RB_Order_ViewModel.cs
+21
-0
Edu.Module.Course.csproj
Edu.Module.Course/Edu.Module.Course.csproj
+1
-0
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+401
-1
RB_Order_GuestRepository.cs
Edu.Repository/Course/RB_Order_GuestRepository.cs
+13
-1
RB_Order_RemarkRepository.cs
Edu.Repository/Course/RB_Order_RemarkRepository.cs
+4
-4
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+277
-2
No files found.
Edu.Model/Entity/Course/RB_Order_Guest.cs
View file @
c92c928c
...
...
@@ -21,6 +21,11 @@ namespace Edu.Model.Entity.Course
/// </summary>
public
int
OrderId
{
get
;
set
;
}
/// <summary>
/// 班级id
/// </summary>
public
int
ClassId
{
get
;
set
;
}
/// <summary>
/// 客人名称
/// </summary>
...
...
Edu.Model/Entity/Course/RB_Order_Remark.cs
View file @
c92c928c
...
...
@@ -31,6 +31,11 @@ namespace Edu.Model.Entity.Course
/// </summary>
public
string
Content
{
get
;
set
;
}
/// <summary>
/// 创建人
/// </summary>
public
int
CreateBy
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
...
...
Edu.Model/ViewModel/Course/RB_Order_Guest_ViewModel.cs
View file @
c92c928c
...
...
@@ -9,6 +9,9 @@ namespace Edu.Model.ViewModel.Course
[
Serializable
]
public
class
RB_Order_Guest_ViewModel
:
Model
.
Entity
.
Course
.
RB_Order_Guest
{
/// <summary>
/// 订单ids
/// </summary>
public
string
OrderIds
{
get
;
set
;
}
}
}
\ No newline at end of file
Edu.Model/ViewModel/Course/RB_Order_Remark_ViewModel.cs
0 → 100644
View file @
c92c928c
using
System
;
using
System.Collections.Generic
;
namespace
Edu.Model.ViewModel.Course
{
/// <summary>
/// 订单实体类
/// </summary>
[
Serializable
]
public
class
RB_Order_Remark_ViewModel
:
Model
.
Entity
.
Course
.
RB_Order_Remark
{
}
}
\ No newline at end of file
Edu.Model/ViewModel/Course/RB_Order_ViewModel.cs
View file @
c92c928c
...
...
@@ -33,5 +33,26 @@ namespace Edu.Model.ViewModel.Course
/// 排序
/// </summary>
public
int
Q_OrderBy
{
get
;
set
;
}
/// <summary>
/// 销售备注
/// </summary>
public
List
<
RB_Order_Remark_ViewModel
>
SaleRemarkList
{
get
;
set
;
}
/// <summary>
/// 教务备注
/// </summary>
public
List
<
RB_Order_Remark_ViewModel
>
TeacherRemarkList
{
get
;
set
;
}
/// <summary>
/// 校长备注
/// </summary>
public
List
<
RB_Order_Remark_ViewModel
>
RectorRemarkList
{
get
;
set
;
}
/// <summary>
/// 经理备注
/// </summary>
public
List
<
RB_Order_Remark_ViewModel
>
DirectorRemarkList
{
get
;
set
;
}
/// <summary>
/// 客人列表
/// </summary>
public
List
<
RB_Order_Guest_ViewModel
>
GuestList
{
get
;
set
;
}
}
}
\ No newline at end of file
Edu.Module.Course/Edu.Module.Course.csproj
View file @
c92c928c
...
...
@@ -6,6 +6,7 @@
<ItemGroup>
<ProjectReference Include="..\Edu.Aop\Edu.Aop.csproj" />
<ProjectReference Include="..\Edu.Cache\Edu.Cache.csproj" />
<ProjectReference Include="..\Edu.Common\Edu.Common.csproj" />
<ProjectReference Include="..\Edu.Model\Edu.Model.csproj" />
<ProjectReference Include="..\Edu.Repository\Edu.Repository.csproj" />
...
...
Edu.Module.Course/OrderModule.cs
View file @
c92c928c
This diff is collapsed.
Click to expand it.
Edu.Repository/Course/RB_Order_GuestRepository.cs
View file @
c92c928c
...
...
@@ -34,6 +34,14 @@ namespace Edu.Repository.Course
{
where
+=
$@" and
{
nameof
(
RB_Order_Guest_ViewModel
.
OrderId
)}
=
{
demodel
.
OrderId
}
"
;
}
if
(
demodel
.
ClassId
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Order_Guest_ViewModel
.
ClassId
)}
=
{
demodel
.
ClassId
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
demodel
.
OrderIds
))
{
where
+=
$@" and
{
nameof
(
RB_Order_Guest_ViewModel
.
OrderId
)}
in(
{
demodel
.
OrderIds
}
)"
;
}
if
(!
string
.
IsNullOrEmpty
(
demodel
.
GuestName
))
{
where
+=
$@" and
{
nameof
(
RB_Order_Guest_ViewModel
.
GuestName
)}
like '%
{
demodel
.
GuestName
}
%'"
;
...
...
@@ -56,7 +64,7 @@ namespace Edu.Repository.Course
/// <param name="demodel"></param>
/// <param name="orderIds"></param>
/// <returns></returns>
public
List
<
RB_Order_Guest_ViewModel
>
Get
ClassPageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Order_Guest_ViewModel
demodel
)
public
List
<
RB_Order_Guest_ViewModel
>
Get
PageList
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Order_Guest_ViewModel
demodel
)
{
string
where
=
$@" 1=1 and Status=0"
;
if
(
demodel
.
Group_Id
>
0
)
...
...
@@ -71,6 +79,10 @@ namespace Edu.Repository.Course
{
where
+=
$@" and
{
nameof
(
RB_Order_Guest_ViewModel
.
OrderId
)}
=
{
demodel
.
OrderId
}
"
;
}
if
(
demodel
.
ClassId
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Order_Guest_ViewModel
.
ClassId
)}
=
{
demodel
.
ClassId
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
demodel
.
GuestName
))
{
where
+=
$@" and
{
nameof
(
RB_Order_Guest_ViewModel
.
GuestName
)}
like '%
{
demodel
.
GuestName
}
%'"
;
...
...
Edu.Repository/Course/RB_Order_RemarkRepository.cs
View file @
c92c928c
...
...
@@ -19,7 +19,7 @@ namespace Edu.Repository.Course
/// <param name="demodel"></param>
/// <param name="orderIds"></param>
/// <returns></returns>
public
List
<
RB_Order_Remark
>
GetList
(
RB_Order_Remark
demodel
,
string
orderIds
)
public
List
<
RB_Order_Remark
_ViewModel
>
GetList
(
RB_Order_Remark_ViewModel
demodel
,
string
orderIds
)
{
string
where
=
$@" 1=1"
;
...
...
@@ -37,7 +37,7 @@ namespace Edu.Repository.Course
}
string
sql
=
$@" select * from RB_Order_Remark where
{
where
}
"
;
return
Get
<
RB_Order_Remark
>(
sql
).
ToList
();
return
Get
<
RB_Order_Remark
_ViewModel
>(
sql
).
ToList
();
}
/// <summary>
...
...
@@ -49,7 +49,7 @@ namespace Edu.Repository.Course
/// <param name="demodel"></param>
/// <param name="orderIds"></param>
/// <returns></returns>
public
List
<
RB_Order_Remark
>
GetPageList
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Order_Remark
demodel
,
string
orderIds
)
public
List
<
RB_Order_Remark
_ViewModel
>
GetPageList
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Order_Remark_ViewModel
demodel
,
string
orderIds
)
{
string
where
=
$@" 1=1"
;
...
...
@@ -67,7 +67,7 @@ namespace Edu.Repository.Course
}
string
sql
=
$@" select * from RB_Order_Remark where
{
where
}
"
;
return
GetPage
<
RB_Order_Remark
>(
pageIndex
,
pageSize
,
out
rowsCount
,
sql
).
ToList
();
return
GetPage
<
RB_Order_Remark
_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
sql
).
ToList
();
}
}
...
...
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
c92c928c
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