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
b6fd9db1
Commit
b6fd9db1
authored
May 07, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增实体类
parent
070b7af0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
145 additions
and
0 deletions
+145
-0
RB_Student_Study.cs
Edu.Model/Entity/User/RB_Student_Study.cs
+100
-0
RB_Student_Study_ViewModel.cs
Edu.Model/ViewModel/User/RB_Student_Study_ViewModel.cs
+14
-0
RB_Student_StudyRepository.cs
Edu.Repository/User/RB_Student_StudyRepository.cs
+31
-0
No files found.
Edu.Model/Entity/User/RB_Student_Study.cs
0 → 100644
View file @
b6fd9db1
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
;
}
}
}
Edu.Model/ViewModel/User/RB_Student_Study_ViewModel.cs
0 → 100644
View file @
b6fd9db1
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
{
}
}
Edu.Repository/User/RB_Student_StudyRepository.cs
0 → 100644
View file @
b6fd9db1
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
();
}
}
}
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