Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
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
黄奎
mall.oytour.com
Commits
2a17035c
Commit
2a17035c
authored
Oct 21, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
1aedb5a1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
125 additions
and
0 deletions
+125
-0
RB_Course_Category.cs
Mall.Model/Entity/Education/RB_Course_Category.cs
+85
-0
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+1
-0
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+1
-0
RB_Think_Course_CategoryRepository.cs
...epository/Education/RB_Think_Course_CategoryRepository.cs
+38
-0
No files found.
Mall.Model/Entity/Education/RB_Course_Category.cs
0 → 100644
View file @
2a17035c
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
VT.FW.DB
;
namespace
Mall.Model.Entity.Education
{
/// <summary>
/// 课程分类实体类
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"ThinkConnection"
)]
public
class
RB_Course_Category
{
/// <summary>
/// 主键(课程分类编号)
/// </summary>
public
int
CateId
{
get
;
set
;
}
/// <summary>
/// 父级编号
/// </summary>
public
int
ParentId
{
get
;
set
;
}
/// <summary>
/// 课程分类名称
/// </summary>
public
string
CateName
{
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
public
int
SortNum
{
get
;
set
;
}
/// <summary>
/// 删除状态
/// </summary>
public
int
Status
{
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>
/// 学校Id
/// </summary>
public
int
School_Id
{
get
;
set
;
}
/// <summary>
/// 所属科目
/// </summary>
public
int
CourseSubject
{
get
;
set
;
}
/// <summary>
/// 源数据课程分类编号
/// </summary>
public
string
GUIDStr
{
get
;
set
;
}
/// <summary>
/// 商城表RB_Product_Category的Id
/// </summary>
public
int
Mall_Product_Category_Id
{
get
;
set
;
}
}
}
Mall.Module.Product/OrderModule.cs
View file @
2a17035c
...
...
@@ -2730,6 +2730,7 @@ namespace Mall.Module.Product
GoodsRelevanceList
=
goodsRelevanceList
?.
Where
(
qitem
=>
qitem
.
GoodsId
==
gmodel
.
Id
)?.
ToList
(),
num
=
item
.
Number
,
EduData
=
eduData
,
EduTeacherId
=
gmodel
?.
EduTeacherId
??
0
,
forehead_integral
=
gmodel
.
PointsDeduction
,
forehead_integral_type
=
gmodel
.
PointsDeductionType
,
accumulative
=
gmodel
.
IsMultipleDeduction
,
//累计多件抵扣
...
...
Mall.Module.Product/ProductModule.cs
View file @
2a17035c
...
...
@@ -2505,6 +2505,7 @@ namespace Mall.Module.Product
use_attr
=
model
.
IsCustomSpecification
,
remark
=
model
?.
Remark
??
""
,
edu_data
=
eduDataJson
,
EduTeacherId
=
model
?.
EduTeacherId
??
0
,
attr_groups
=
model
.
SpecificationList
.
Select
(
x
=>
new
{
attr_group_id
=
x
.
Sort
,
...
...
Mall.Repository/Education/RB_Think_Course_CategoryRepository.cs
0 → 100644
View file @
2a17035c
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
VT.FW.DB.Dapper
;
namespace
Mall.Repository.Education
{
/// <summary>
/// 课程分类仓储层
/// </summary>
public
class
RB_Think_Course_CategoryRepository
:
BaseRepository
<
Model
.
Entity
.
Education
.
RB_Course_Category
>
{
/// <summary>
/// 获取课程分类列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
Model
.
Entity
.
Education
.
RB_Course_Category
>
GetCourseCategoryListRepository
(
Model
.
Entity
.
Education
.
RB_Course_Category
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
var
parameters
=
new
DynamicParameters
();
builder
.
AppendFormat
(
@"
SELECT *
FROM RB_Course_Category
WHERE 1=1
"
);
builder
.
AppendFormat
(
" AND {0}=0 "
,
nameof
(
Model
.
Entity
.
Education
.
RB_Course_Category
.
Status
));
if
(
query
!=
null
)
{
}
return
Get
<
Model
.
Entity
.
Education
.
RB_Course_Category
>(
builder
.
ToString
(),
parameters
).
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