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
246aa61a
Commit
246aa61a
authored
Dec 16, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
cdb7537c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
122 additions
and
0 deletions
+122
-0
RB_Student_Type.cs
Edu.Model/Entity/Customer/RB_Student_Type.cs
+66
-0
RB_Student_Type_Extend.cs
Edu.Model/ViewModel/Customer/RB_Student_Type_Extend.cs
+15
-0
RB_Student_TypeRepository.cs
Edu.Repository/Customer/RB_Student_TypeRepository.cs
+41
-0
No files found.
Edu.Model/Entity/Customer/RB_Student_Type.cs
0 → 100644
View file @
246aa61a
using
Edu.Common.Enum
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
VT.FW.DB
;
namespace
Edu.Model.Entity.Customer
{
/// <summary>
/// 客户类型实体类
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Student_Type
{
/// <summary>
/// 主键编号
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 客户类型名称
/// </summary>
public
string
Name
{
get
;
set
;
}
/// <summary>
/// 描述
/// </summary>
public
string
Info
{
get
;
set
;
}
/// <summary>
/// 创建人
/// </summary>
public
int
CreateBy
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
public
DateTime
CreateTime
{
get
;
set
;
}
/// <summary>
/// 修改人
/// </summary>
public
int
UpdateBy
{
get
;
set
;
}
/// <summary>
/// 修改时间
/// </summary>
public
DateTime
UpdateTime
{
get
;
set
;
}
/// <summary>
/// 集团编号
/// </summary>
public
int
Group_Id
{
get
;
set
;
}
/// <summary>
/// 删除状态(0-正常,1-删除)
/// </summary>
public
DateStateEnum
Status
{
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
public
int
No
{
get
;
set
;
}
}
}
Edu.Model/ViewModel/Customer/RB_Student_Type_Extend.cs
0 → 100644
View file @
246aa61a
using
Edu.Model.Entity.Customer
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Edu.Model.ViewModel.Customer
{
/// <summary>
/// 客户类型扩展实体类
/// </summary>
public
class
RB_Student_Type_Extend
:
RB_Student_Type
{
}
}
Edu.Repository/Customer/RB_Student_TypeRepository.cs
0 → 100644
View file @
246aa61a
using
Edu.Common.Enum
;
using
Edu.Model.Entity.Customer
;
using
Edu.Model.ViewModel.Customer
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
Edu.Repository.Customer
{
/// <summary>
/// 客户类型仓储层
/// </summary>
public
class
RB_Student_TypeRepository
:
BaseRepository
<
RB_Student_Type
>
{
/// <summary>
/// 获取客户类型列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Student_Type_Extend
>
GetStudentTypeListRepository
(
RB_Student_Type_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT A.*
FROM RB_Student_Type AS A
WHERE 1=1
"
);
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Student_Type_Extend
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
if
(
query
!=
null
)
{
if
(
query
.
Group_Id
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Student_Type_Extend
.
Group_Id
),
query
.
Group_Id
);
}
}
builder
.
AppendFormat
(
" ORDER BY A.{0} ASC "
,
nameof
(
RB_Student_Type_Extend
.
No
));
return
Get
<
RB_Student_Type_Extend
>(
builder
.
ToString
()).
ToList
();
}
}
}
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