Commit b6fd9db1 authored by 黄奎's avatar 黄奎

新增实体类

parent 070b7af0
using System;
using System.Collections.Generic;
using System.Text;
using VT.FW.DB;
namespace Edu.Model.Entity.User
{
/// <summary>
/// 学员学习章节、月度总结、考试实体类
/// </summary>
[Serializable]
[DB(ConnectionName = "DefaultConnection")]
public class RB_Student_Study
{
/// <summary>
/// 主键编号
/// </summary>
public int ID { get; set; }
/// <summary>
/// 课程编号
/// </summary>
public int CourseId { get; set; }
/// <summary>
/// 订单编号
/// </summary>
public int OrderId { get; set; }
/// <summary>
/// 学员编号
/// </summary>
public int GuestId { get; set; }
/// <summary>
/// 学员ID
/// </summary>
public int StuId { get; set; }
/// <summary>
/// 类型(1-章节,2-考试,3-月度总结)
/// </summary>
public int StudyType { get; set; }
/// <summary>
/// 章节ID
/// </summary>
public int ChapterId { get; set; }
/// <summary>
/// StudyType=3使用,存月份
/// </summary>
public string StudyValue { get; set; }
/// <summary>
/// 单词得分
/// </summary>
public decimal Words { get; set; }
/// <summary>
/// 练习题得分
/// </summary>
public decimal Practice { get; set; }
/// <summary>
/// 朗读背诵得分
/// </summary>
public decimal ReadingAloud { get; set; }
/// <summary>
/// 其他得分(JSON格式)
/// </summary>
public string Other { get; set; }
/// <summary>
/// 总结
/// </summary>
public string Remarks { 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; }
}
}
using Edu.Model.Entity.User;
using System;
using System.Collections.Generic;
using System.Text;
namespace Edu.Model.ViewModel.User
{
/// <summary>
/// 学员学习章节、月度总结、考试扩展实体类
/// </summary>
public class RB_Student_Study_ViewModel: RB_Student_Study
{
}
}
using Edu.Model.Entity.User;
using Edu.Model.ViewModel.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Edu.Repository.User
{
/// <summary>
/// 学员学习章节、月度总结、考试仓储层
/// </summary>
public class RB_Student_StudyRepository:BaseRepository<RB_Student_Study>
{
/// <summary>
/// 获取学员学习章节,月度总结,考试列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public List<RB_Student_Study_ViewModel> GetStudentStudyListRepository(RB_Student_Study_ViewModel query)
{
StringBuilder builder = new StringBuilder();
builder.AppendFormat(@"
SELECT A.*
FROM RB_Student_Study AS A
WHERE 1=1
");
return Get<RB_Student_Study_ViewModel>(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