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
c25842ab
Commit
c25842ab
authored
Dec 15, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
66f3e478
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
RB_Stage.cs
Edu.Model/Entity/System/RB_Stage.cs
+18
-0
RB_StageRepository.cs
Edu.Repository/System/RB_StageRepository.cs
+25
-0
No files found.
Edu.Model/Entity/System/RB_Stage.cs
View file @
c25842ab
...
...
@@ -5,6 +5,9 @@ using VT.FW.DB;
namespace
Edu.Model.Entity.System
{
/// <summary>
/// 客户阶段实体类
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Stage
...
...
@@ -24,9 +27,24 @@ namespace Edu.Model.Entity.System
/// </summary>
public
int
No
{
get
;
set
;
}
/// <summary>
/// 创建人
/// </summary>
public
int
CreateBy
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
public
int
CreateTime
{
get
;
set
;
}
/// <summary>
/// 更新人
/// </summary>
public
int
UpdateBy
{
get
;
set
;
}
/// <summary>
/// 更新时间
/// </summary>
public
int
UpdateTime
{
get
;
set
;
}
}
...
...
Edu.Repository/System/RB_StageRepository.cs
View file @
c25842ab
using
Edu.Model.Entity.System
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
Edu.Repository.System
{
/// <summary>
/// 客户阶段仓储层
/// </summary>
public
class
RB_StageRepository
:
BaseRepository
<
RB_Stage
>
{
/// <summary>
/// 获取客户阶段列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Stage
>
GetStageListRepostory
(
RB_Stage
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT A.*
FROM RB_Stage AS A
WHERE 1=1
"
);
if
(
query
!=
null
)
{
}
builder
.
AppendFormat
(
" ORDER BY A.{0} ASC "
,
nameof
(
RB_Stage
.
No
));
return
Get
<
RB_Stage
>(
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