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
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
1397 additions
and
918 deletions
+1397
-918
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
appsettings.json
Edu.WebApi/appsettings.json
+95
-95
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.
Edu.WebApi/appsettings.json
View file @
048fa3a4
{
"ConnectionStrings"
:
{
"DefaultConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_edu;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"DefaultConnectionPName"
:
"MySql.Data.MySqlClient"
,
"FinanceConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_finance;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"FinanceConnectionPName"
:
"MySql.Data.MySqlClient"
,
"DataStatisticsConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_datastatistics;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"DataStatisticsConnectionPName"
:
"MySql.Data.MySqlClient"
,
"LogConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_sys;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"LogConnectionPName"
:
"MySql.Data.MySqlClient"
,
"MallConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=test_reborn_mall;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"MallConnectionPName"
:
"MySql.Data.MySqlClient"
},
"Logging"
:
{
"LogLevel"
:
{
"Default"
:
"Information"
,
"Microsoft"
:
"Warning"
,
"Microsoft.Hosting.Lifetime"
:
"Information"
}
},
"SettlementRate"
:
"0.60"
,
"SellCommissionFFBL"
:
"0.15"
,
"JwtSecretKey"
:
"@VIITTOREBORN*2018"
,
"MallJwtSecretKey"
:
"@VIITTOREBORN*2018123"
,
"JwtExpirTime"
:
86400
,
"IsSendMsg"
:
2
,
"AllowedHosts"
:
"*"
,
"OpenValidation"
:
"False"
,
"UploadSiteUrl"
:
"http://192.168.1.36:8120"
,
"ViewFileSiteUrl"
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
,
"ErpViewFileSiteUrl"
:
"http://imgfile.oytour.com"
,
"Mongo"
:
"mongodb://47.96.25.130:27017"
,
"MongoDBName"
:
"Edu"
,
"WkHtmlToPdfPath"
:
"D:/wkhtmltopdf/bin/"
,
"FinanceKey"
:
"FinanceMallInsertToERPViitto2020"
,
"PaymentFinanceApi"
:
"http://192.168.20.7:8083/api/Mall/InsertFinanceBatchForMallOut"
,
"IncomeFinanceApi"
:
"http://192.168.20.7:8083/api/Mall/InsertFinanceBatchForMallIn"
,
"sTenpayNotifyUrl"
:
"http://eduapi.oytour.com/api/WeChatPay/WxPayCallback"
,
//下单回调地址
"sTenpayNotifyRefundUrl"
:
"http://eduapi.oytour.com/api/WeChatPay/Refunds"
,
//退款回调地址
"FinanceDateBase"
:
"reborn_finance"
,
"EduDateBase"
:
"uat_reborn_edu"
,
"JHTenantId"
:
"15"
,
"JHMallBaseId"
:
"5"
,
"Notice_BaseKey"
:
"Notice_BaseKey"
,
"EducationContractSchool"
:
"EducationContractSchool"
,
"EducationContractAdmin"
:
"EducationContractAdmin"
,
"RabbitMqConfig"
:
{
"HostName"
:
"47.96.25.130"
,
"VirtualHost"
:
"/"
,
"Port"
:
5672
,
"UserName"
:
"guest"
,
"Password"
:
"viitto2019"
,
"QueenName"
:
"vt_sys_message_test"
},
"RedisSetting"
:
{
"RedisServer"
:
"47.96.23.199"
,
"RedisPort"
:
"6379"
,
"RedisPwd"
:
"Viitto2018"
},
"VirtualDirectory"
:
"WebFile"
,
//未填写
未打分
下降比例
"OKRMatterValue"
:
"30,100,100"
,
//是否是线上环境
"IsOnline"
:
false
,
//退课流程编号
"BackClassFlowId"
:
1
,
//分区校长岗位编号
"SchoolPostId"
:
3
,
//教务长
"JiaoWuZhang"
:
8
,
//留学就业部门主管审核编号
[
王涛
]
"StudyAbroadDirectorId"
:
64
,
//留学就业部门负责人审核编号
[
姚顺先
]
"StudyAbroadManagerId"
:
52
,
//合同默认抬头
"ContractDefaultTitle"
:
"JH-DZ-CD-"
,
//消息推送AppId
"PushAppId"
:
"JiaHeJiaoYu"
,
//是否推送消息
"IsPushMessage"
:
"1"
,
//超过下班时间
60
分钟不能打卡
"MoreThanMinutes"
:
60
,
//连续缺课课时
"AbsentHours"
:
12
,
//值班时间验证日期
"DutyDate"
:
"2021-06-30"
,
//调课流程编号
"ChangeClassFlowId"
:
2
,
//停课流程编号
"StopClassFlowId"
:
3
,
//临时上课邀请流程编号
"TempInvitationClassFlowId"
:
4
,
//订单转班流程编号
"OrderTransClassFlowId"
:
5
,
//订单分拆流程编号
"OrderSplitClassFlowId"
:
6
,
"ConnectionStrings"
:
{
"DefaultConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_edu;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"DefaultConnectionPName"
:
"MySql.Data.MySqlClient"
,
"FinanceConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_finance;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"FinanceConnectionPName"
:
"MySql.Data.MySqlClient"
,
"DataStatisticsConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_datastatistics;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"DataStatisticsConnectionPName"
:
"MySql.Data.MySqlClient"
,
"LogConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_sys;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"LogConnectionPName"
:
"MySql.Data.MySqlClient"
,
"MallConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=test_reborn_mall;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"MallConnectionPName"
:
"MySql.Data.MySqlClient"
},
"Logging"
:
{
"LogLevel"
:
{
"Default"
:
"Information"
,
"Microsoft"
:
"Warning"
,
"Microsoft.Hosting.Lifetime"
:
"Information"
}
},
"SettlementRate"
:
"0.60"
,
"SellCommissionFFBL"
:
"0.15"
,
"JwtSecretKey"
:
"@VIITTOREBORN*2018"
,
"MallJwtSecretKey"
:
"@VIITTOREBORN*2018123"
,
"JwtExpirTime"
:
86400
,
"IsSendMsg"
:
2
,
"AllowedHosts"
:
"*"
,
"OpenValidation"
:
"False"
,
"UploadSiteUrl"
:
"http://192.168.1.36:8120"
,
"ViewFileSiteUrl"
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
,
"ErpViewFileSiteUrl"
:
"http://imgfile.oytour.com"
,
"Mongo"
:
"mongodb://47.96.25.130:27017"
,
"MongoDBName"
:
"Edu"
,
"WkHtmlToPdfPath"
:
"D:/wkhtmltopdf/bin/"
,
"FinanceKey"
:
"FinanceMallInsertToERPViitto2020"
,
"PaymentFinanceApi"
:
"http://192.168.20.7:8083/api/Mall/InsertFinanceBatchForMallOut"
,
"IncomeFinanceApi"
:
"http://192.168.20.7:8083/api/Mall/InsertFinanceBatchForMallIn"
,
"sTenpayNotifyUrl"
:
"http://eduapi.oytour.com/api/WeChatPay/WxPayCallback"
,
//下单回调地址
"sTenpayNotifyRefundUrl"
:
"http://eduapi.oytour.com/api/WeChatPay/Refunds"
,
//退款回调地址
"FinanceDateBase"
:
"reborn_finance"
,
"EduDateBase"
:
"uat_reborn_edu"
,
"JHTenantId"
:
"15"
,
"JHMallBaseId"
:
"5"
,
"Notice_BaseKey"
:
"Notice_BaseKey"
,
"EducationContractSchool"
:
"EducationContractSchool"
,
"EducationContractAdmin"
:
"EducationContractAdmin"
,
"RabbitMqConfig"
:
{
"HostName"
:
"47.96.25.130"
,
"VirtualHost"
:
"/"
,
"Port"
:
5672
,
"UserName"
:
"guest"
,
"Password"
:
"viitto2019"
,
"QueenName"
:
"vt_sys_message_test"
},
"RedisSetting"
:
{
"RedisServer"
:
"47.96.23.199"
,
"RedisPort"
:
"6379"
,
"RedisPwd"
:
"Viitto2018"
},
"VirtualDirectory"
:
"WebFile"
,
//未填写
未打分
下降比例
"OKRMatterValue"
:
"30,100,100"
,
//是否是线上环境
"IsOnline"
:
false
,
//退课流程编号
"BackClassFlowId"
:
1
,
//分区校长岗位编号
"SchoolPostId"
:
3
,
//教务长
"JiaoWuZhang"
:
8
,
//留学就业部门主管审核编号
[
王涛
]
"StudyAbroadDirectorId"
:
64
,
//留学就业部门负责人审核编号
[
姚顺先
]
"StudyAbroadManagerId"
:
52
,
//合同默认抬头
"ContractDefaultTitle"
:
"JH-DZ-CD-"
,
//消息推送AppId
"PushAppId"
:
"JiaHeJiaoYu"
,
//是否推送消息
"IsPushMessage"
:
"1"
,
//超过下班时间
60
分钟不能打卡
"MoreThanMinutes"
:
60
,
//连续缺课课时
"AbsentHours"
:
12
,
//值班时间验证日期
"DutyDate"
:
"2021-06-30"
,
//调课流程编号
"ChangeClassFlowId"
:
2
,
//停课流程编号
"StopClassFlowId"
:
3
,
//临时上课邀请流程编号
"TempInvitationClassFlowId"
:
4
,
//订单转班流程编号
"OrderTransClassFlowId"
:
5
,
//订单分拆流程编号
"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