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
048fa3a4
Commit
048fa3a4
authored
Aug 05, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
3aaacb98
2d758b85
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1302 additions
and
823 deletions
+1302
-823
OrderSourceEnum.cs
Edu.Common/Enum/Course/OrderSourceEnum.cs
+5
-0
RB_Finance_OrderRecord.cs
Edu.Model/Entity/Finance/RB_Finance_OrderRecord.cs
+1
-1
RB_Goods_SpecificationValue_Extend.cs
...odel/ViewModel/Mall/RB_Goods_SpecificationValue_Extend.cs
+6
-0
ClassModule.cs
Edu.Module.Course/ClassModule.cs
+165
-159
CourseModule.cs
Edu.Module.Course/CourseModule.cs
+541
-541
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+459
-76
RB_ClassRepository.cs
Edu.Repository/Grade/RB_ClassRepository.cs
+4
-0
RB_Goods_SpecificationValueRepository.cs
Edu.Repository/Mall/RB_Goods_SpecificationValueRepository.cs
+4
-1
CourseController.cs
Edu.WebApi/Controllers/Course/CourseController.cs
+15
-15
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+102
-30
No files found.
Edu.Common/Enum/Course/OrderSourceEnum.cs
View file @
048fa3a4
...
...
@@ -42,5 +42,10 @@ namespace Edu.Common.Enum.Course
/// </summary>
[
EnumField
(
"教育同行"
)]
EduClient
=
7
,
/// <summary>
/// 甲鹤小程序
/// </summary>
[
EnumField
(
"甲鹤小程序"
)]
MallApplet
=
8
,
}
}
Edu.Model/Entity/Finance/RB_Finance_OrderRecord.cs
View file @
048fa3a4
...
...
@@ -18,7 +18,7 @@ namespace Edu.Model.Entity.Finance
/// </summary>
public
int
ID
{
get
;
set
;
}
/// <summary>
/// 类型 1收款 2退款
/// 类型 1收款 2退款
,3-活动收入,4-活动退款
/// </summary>
public
int
?
Type
{
...
...
Edu.Model/ViewModel/Mall/RB_Goods_SpecificationValue_Extend.cs
View file @
048fa3a4
...
...
@@ -21,5 +21,11 @@ namespace Edu.Model.ViewModel.Mall
/// 图片路径
/// </summary>
public
string
ImagePath
{
get
;
set
;
}
/// <summary>
/// 班级ids
/// </summary>
public
string
ClassIds
{
get
;
set
;
}
}
}
Edu.Module.Course/ClassModule.cs
View file @
048fa3a4
This diff is collapsed.
Click to expand it.
Edu.Module.Course/CourseModule.cs
View file @
048fa3a4
This diff is collapsed.
Click to expand it.
Edu.Module.Course/OrderModule.cs
View file @
048fa3a4
This diff is collapsed.
Click to expand it.
Edu.Repository/Grade/RB_ClassRepository.cs
View file @
048fa3a4
...
...
@@ -118,6 +118,10 @@ WHERE 1=1
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Class_ViewModel
.
ClassId
),
query
.
ClassId
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
Q_ClassIds
))
{
builder
.
AppendFormat
(
" AND A.{0} in ({1}) "
,
nameof
(
RB_Class_ViewModel
.
ClassId
),
query
.
Q_ClassIds
);
}
if
(
query
.
Status
>=
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Class_ViewModel
.
Status
),
(
int
)
query
.
Status
);
...
...
Edu.Repository/Mall/RB_Goods_SpecificationValueRepository.cs
View file @
048fa3a4
...
...
@@ -50,7 +50,10 @@ namespace Edu.Repository.Mall
{
where
+=
$@" and
{
nameof
(
RB_Goods_SpecificationValue
.
GoodsId
)}
in(
{
dmodel
.
GoodsIds
}
)"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
ClassIds
))
{
where
+=
$@" and
{
nameof
(
RB_Goods_SpecificationValue
.
ClassId
)}
in(
{
dmodel
.
ClassIds
}
)"
;
}
string
sql
=
$@"select * from RB_Goods_SpecificationValue where
{
where
}
order by Id asc"
;
return
Get
<
RB_Goods_SpecificationValue_Extend
>(
sql
).
ToList
();
}
...
...
Edu.WebApi/Controllers/Course/CourseController.cs
View file @
048fa3a4
...
...
@@ -283,21 +283,21 @@ namespace Edu.WebApi.Controllers.Course
IsKCourse
=
base
.
ParmJObj
.
GetInt
(
"IsKCourse"
),
ClassHours
=
base
.
ParmJObj
.
GetDecimal
(
"ClassHours"
)
};
//
try
//
{
//
extModel.CategoryList = JsonHelper.DeserializeObject<List<RB_Goods_Category_Extend>>(base.ParmJObj.GetStringValue("CategoryList"));
//
if (extModel.SalePlatList != null && extModel.SalePlatList.Any(x => x == 4))//有小程序的上架平台
//
{
//
if (extModel.CategoryList == null || !extModel.CategoryList.Any())
//
{
//
return ApiResult.Failed("上架小程序必须选择小程序对应的分类");
//
}
//
}
//
}
//
catch (Exception ex)
//
{
//
}
try
{
extModel
.
CategoryList
=
JsonHelper
.
DeserializeObject
<
List
<
RB_Goods_Category_Extend
>>(
base
.
ParmJObj
.
GetStringValue
(
"CategoryList"
));
if
(
extModel
.
SalePlatList
!=
null
&&
extModel
.
SalePlatList
.
Any
(
x
=>
x
==
4
))
//有小程序的上架平台
{
if
(
extModel
.
CategoryList
==
null
||
!
extModel
.
CategoryList
.
Any
())
{
return
ApiResult
.
Failed
(
"上架小程序必须选择小程序对应的分类"
);
}
}
}
catch
(
Exception
ex
)
{
}
extModel
.
CreateTime
=
DateTime
.
Now
;
extModel
.
CreateBy
=
base
.
UserInfo
.
Id
;
extModel
.
UpdateBy
=
base
.
UserInfo
.
Id
;
...
...
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
048fa3a4
This diff is collapsed.
Click to expand it.
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