Commit c25842ab authored by 黄奎's avatar 黄奎

页面修改

parent 66f3e478
......@@ -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; }
}
......
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();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment