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
30a83125
Commit
30a83125
authored
Aug 05, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
be8f6978
Expand all
Hide 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_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/Course/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
appsettings.json
Edu.WebApi/appsettings.json
+1
-1
No files found.
Edu.Common/Enum/Course/OrderSourceEnum.cs
View file @
30a83125
...
...
@@ -42,5 +42,10 @@ namespace Edu.Common.Enum.Course
/// </summary>
[
EnumField
(
"教育同行"
)]
EduClient
=
7
,
/// <summary>
/// 甲鹤小程序
/// </summary>
[
EnumField
(
"甲鹤小程序"
)]
MallApplet
=
8
,
}
}
Edu.Model/ViewModel/Mall/RB_Goods_SpecificationValue_Extend.cs
View file @
30a83125
...
...
@@ -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 @
30a83125
This diff is collapsed.
Click to expand it.
Edu.Module.Course/CourseModule.cs
View file @
30a83125
This diff is collapsed.
Click to expand it.
Edu.Module.Course/OrderModule.cs
View file @
30a83125
This diff is collapsed.
Click to expand it.
Edu.Repository/Course/RB_ClassRepository.cs
View file @
30a83125
...
...
@@ -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 @
30a83125
...
...
@@ -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 @
30a83125
...
...
@@ -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 @
30a83125
This diff is collapsed.
Click to expand it.
Edu.WebApi/appsettings.json
View file @
30a83125
...
...
@@ -93,7 +93,7 @@
//订单转班流程编号
"OrderTransClassFlowId"
:
5
,
//订单分拆流程编号
"OrderSplitClassFlowId"
:
6
"OrderSplitClassFlowId"
:
6
,
"ErpUrl"
:
"http://localhost:8181/#"
,
//是否开启调课数据验证
"IsOpenChangeClassVerify"
:
1
...
...
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