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
300ea219
Commit
300ea219
authored
Aug 02, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增配置
parent
80912591
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
128 additions
and
114 deletions
+128
-114
Config.cs
Edu.Common/Config.cs
+12
-0
ChangePlanController.cs
Edu.WebApi/Controllers/EduTask/ChangePlanController.cs
+21
-21
appsettings.json
Edu.WebApi/appsettings.json
+95
-93
No files found.
Edu.Common/Config.cs
View file @
300ea219
...
@@ -718,5 +718,17 @@ namespace Edu.Common
...
@@ -718,5 +718,17 @@ namespace Edu.Common
return
ReadConfigKey
(
"EducationContractAdmin"
);
return
ReadConfigKey
(
"EducationContractAdmin"
);
}
}
}
}
/// <summary>
/// 是否开启调课验证
/// </summary>
public
static
int
IsOpenChangeClassVerify
{
get
{
int
.
TryParse
(
ReadConfigKey
(
"IsOpenChangeClassVerify"
),
out
int
IsOpenChangeClassVerify
);
return
IsOpenChangeClassVerify
;
}
}
}
}
}
}
\ No newline at end of file
Edu.WebApi/Controllers/EduTask/ChangePlanController.cs
View file @
300ea219
...
@@ -129,13 +129,13 @@ namespace Edu.WebApi.Controllers.EduTask
...
@@ -129,13 +129,13 @@ namespace Edu.WebApi.Controllers.EduTask
});
});
}
}
}
}
if
(
timeList
!=
null
&&
timeList
.
Count
>
0
)
if
(
Common
.
Config
.
IsOpenChangeClassVerify
==
1
&&
timeList
!=
null
&&
timeList
.
Count
>
0
)
{
{
//
var objList = changeClassPlanModule.GetRepeatListModule(model.ClassId, model.NewChangePlanItemList, timeList);
var
objList
=
changeClassPlanModule
.
GetRepeatListModule
(
model
.
ClassId
,
model
.
NewChangePlanItemList
,
timeList
);
//
if (objList != null && objList.Count > 0)
if
(
objList
!=
null
&&
objList
.
Count
>
0
)
//
{
{
//
return ApiResult.Failed("存在上课计划冲突的数据!", data: objList);
return
ApiResult
.
Failed
(
"存在上课计划冲突的数据!"
,
data
:
objList
);
//
}
}
}
}
}
}
//全局修改
//全局修改
...
@@ -225,11 +225,11 @@ namespace Edu.WebApi.Controllers.EduTask
...
@@ -225,11 +225,11 @@ namespace Edu.WebApi.Controllers.EduTask
{
{
return
ApiResult
.
Failed
(
"班级信息不存在"
);
return
ApiResult
.
Failed
(
"班级信息不存在"
);
}
}
//var dateList = changeClassPlanModule.GetAllDateAndTimeRepeatListModule(model.ClassId, model.AllChangePlanModel,
base.UserInfo);
var
dateList
=
changeClassPlanModule
.
GetAllDateAndTimeRepeatListModule
(
model
.
ClassId
,
model
.
AllChangePlanModel
,
base
.
UserInfo
);
//if (
dateList != null && dateList.Count > 0)
if
(
Common
.
Config
.
IsOpenChangeClassVerify
==
1
&&
dateList
!=
null
&&
dateList
.
Count
>
0
)
//
{
{
//
return ApiResult.Failed("存在上课计划冲突的数据!", data: dateList);
return
ApiResult
.
Failed
(
"存在上课计划冲突的数据!"
,
data
:
dateList
);
//
}
}
}
}
else
if
(
model
.
ChangeType
==
2
)
else
if
(
model
.
ChangeType
==
2
)
{
{
...
@@ -237,11 +237,11 @@ namespace Edu.WebApi.Controllers.EduTask
...
@@ -237,11 +237,11 @@ namespace Edu.WebApi.Controllers.EduTask
{
{
return
ApiResult
.
Failed
(
"请选择老师"
);
return
ApiResult
.
Failed
(
"请选择老师"
);
}
}
//
var teacherlist = changeClassPlanModule.GetAllRepeatListModule(model.ClassId, Common.ConvertHelper.FormatDate(model.TakeEffectTime), TeacherId: model.AllChangePlanModel.TeacherId);
var
teacherlist
=
changeClassPlanModule
.
GetAllRepeatListModule
(
model
.
ClassId
,
Common
.
ConvertHelper
.
FormatDate
(
model
.
TakeEffectTime
),
TeacherId
:
model
.
AllChangePlanModel
.
TeacherId
);
//if (
teacherlist != null && teacherlist.Count > 0)
if
(
Common
.
Config
.
IsOpenChangeClassVerify
==
1
&&
teacherlist
!=
null
&&
teacherlist
.
Count
>
0
)
//
{
{
//
return ApiResult.Failed("存在上课计划冲突的数据!", data: teacherlist);
return
ApiResult
.
Failed
(
"存在上课计划冲突的数据!"
,
data
:
teacherlist
);
//
}
}
}
}
else
if
(
model
.
ChangeType
==
3
)
else
if
(
model
.
ChangeType
==
3
)
{
{
...
@@ -249,11 +249,11 @@ namespace Edu.WebApi.Controllers.EduTask
...
@@ -249,11 +249,11 @@ namespace Edu.WebApi.Controllers.EduTask
{
{
return
ApiResult
.
Failed
(
"请选择教室"
);
return
ApiResult
.
Failed
(
"请选择教室"
);
}
}
//
var classroomlist = changeClassPlanModule.GetAllRepeatListModule(model.ClassId, Common.ConvertHelper.FormatDate(model.TakeEffectTime), ClassRoomId: model.AllChangePlanModel.ClassRoomId);
var
classroomlist
=
changeClassPlanModule
.
GetAllRepeatListModule
(
model
.
ClassId
,
Common
.
ConvertHelper
.
FormatDate
(
model
.
TakeEffectTime
),
ClassRoomId
:
model
.
AllChangePlanModel
.
ClassRoomId
);
//if (
classroomlist != null && classroomlist.Count > 0)
if
(
Common
.
Config
.
IsOpenChangeClassVerify
==
1
&&
classroomlist
!=
null
&&
classroomlist
.
Count
>
0
)
//
{
{
//
return ApiResult.Failed("存在上课计划冲突的数据!", data: classroomlist);
return
ApiResult
.
Failed
(
"存在上课计划冲突的数据!"
,
data
:
classroomlist
);
//
}
}
}
}
}
}
if
(
model
.
OldChangePlanItemList
!=
null
&&
model
.
OldChangePlanItemList
.
Any
())
if
(
model
.
OldChangePlanItemList
!=
null
&&
model
.
OldChangePlanItemList
.
Any
())
...
...
Edu.WebApi/appsettings.json
View file @
300ea219
{
{
"ConnectionStrings"
:
{
"ConnectionStrings"
:
{
"DefaultConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_edu;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"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"
,
"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; "
,
"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"
,
"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; "
,
"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"
,
"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; "
,
"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"
"LogConnectionPName"
:
"MySql.Data.MySqlClient"
},
},
"Logging"
:
{
"Logging"
:
{
"LogLevel"
:
{
"LogLevel"
:
{
"Default"
:
"Information"
,
"Default"
:
"Information"
,
"Microsoft"
:
"Warning"
,
"Microsoft"
:
"Warning"
,
"Microsoft.Hosting.Lifetime"
:
"Information"
"Microsoft.Hosting.Lifetime"
:
"Information"
}
}
},
},
"SettlementRate"
:
"0.60"
,
"SettlementRate"
:
"0.60"
,
"SellCommissionFFBL"
:
"0.15"
,
"SellCommissionFFBL"
:
"0.15"
,
"JwtSecretKey"
:
"@VIITTOREBORN*2018"
,
"JwtSecretKey"
:
"@VIITTOREBORN*2018"
,
"MallJwtSecretKey"
:
"@VIITTOREBORN*2018123"
,
"MallJwtSecretKey"
:
"@VIITTOREBORN*2018123"
,
"JwtExpirTime"
:
86400
,
"JwtExpirTime"
:
86400
,
"IsSendMsg"
:
2
,
"IsSendMsg"
:
2
,
"AllowedHosts"
:
"*"
,
"AllowedHosts"
:
"*"
,
"OpenValidation"
:
"False"
,
"OpenValidation"
:
"False"
,
"UploadSiteUrl"
:
"http://192.168.1.36:8120"
,
"UploadSiteUrl"
:
"http://192.168.1.36:8120"
,
"ViewFileSiteUrl"
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
,
"ViewFileSiteUrl"
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com"
,
"ErpViewFileSiteUrl"
:
"http://imgfile.oytour.com"
,
"ErpViewFileSiteUrl"
:
"http://imgfile.oytour.com"
,
"Mongo"
:
"mongodb://47.96.25.130:27017"
,
"Mongo"
:
"mongodb://47.96.25.130:27017"
,
"MongoDBName"
:
"Edu"
,
"MongoDBName"
:
"Edu"
,
"WkHtmlToPdfPath"
:
"D:/wkhtmltopdf/bin/"
,
"WkHtmlToPdfPath"
:
"D:/wkhtmltopdf/bin/"
,
"FinanceKey"
:
"FinanceMallInsertToERPViitto2020"
,
"FinanceKey"
:
"FinanceMallInsertToERPViitto2020"
,
"PaymentFinanceApi"
:
"http://192.168.20.7:8083/api/Mall/InsertFinanceBatchForMallOut"
,
"PaymentFinanceApi"
:
"http://192.168.20.7:8083/api/Mall/InsertFinanceBatchForMallOut"
,
"IncomeFinanceApi"
:
"http://192.168.20.7:8083/api/Mall/InsertFinanceBatchForMallIn"
,
"IncomeFinanceApi"
:
"http://192.168.20.7:8083/api/Mall/InsertFinanceBatchForMallIn"
,
"sTenpayNotifyUrl"
:
"http://eduapi.oytour.com/api/WeChatPay/WxPayCallback"
,
//下单回调地址
"sTenpayNotifyUrl"
:
"http://eduapi.oytour.com/api/WeChatPay/WxPayCallback"
,
//下单回调地址
"sTenpayNotifyRefundUrl"
:
"http://eduapi.oytour.com/api/WeChatPay/Refunds"
,
//退款回调地址
"sTenpayNotifyRefundUrl"
:
"http://eduapi.oytour.com/api/WeChatPay/Refunds"
,
//退款回调地址
"FinanceDateBase"
:
"reborn_finance"
,
"FinanceDateBase"
:
"reborn_finance"
,
"EduDateBase"
:
"uat_reborn_edu"
,
"EduDateBase"
:
"uat_reborn_edu"
,
"JHTenantId"
:
"15"
,
"JHTenantId"
:
"15"
,
"JHMallBaseId"
:
"5"
,
"JHMallBaseId"
:
"5"
,
"Notice_BaseKey"
:
"Notice_BaseKey"
,
"Notice_BaseKey"
:
"Notice_BaseKey"
,
"EducationContractSchool"
:
"EducationContractSchool"
,
"EducationContractSchool"
:
"EducationContractSchool"
,
"EducationContractAdmin"
:
"EducationContractAdmin"
,
"EducationContractAdmin"
:
"EducationContractAdmin"
,
"RabbitMqConfig"
:
{
"RabbitMqConfig"
:
{
"HostName"
:
"47.96.25.130"
,
"HostName"
:
"47.96.25.130"
,
"VirtualHost"
:
"/"
,
"VirtualHost"
:
"/"
,
"Port"
:
5672
,
"Port"
:
5672
,
"UserName"
:
"guest"
,
"UserName"
:
"guest"
,
"Password"
:
"viitto2019"
,
"Password"
:
"viitto2019"
,
"QueenName"
:
"vt_sys_message_test"
"QueenName"
:
"vt_sys_message_test"
},
},
"RedisSetting"
:
{
"RedisSetting"
:
{
"RedisServer"
:
"47.96.23.199"
,
"RedisServer"
:
"47.96.23.199"
,
"RedisPort"
:
"6379"
,
"RedisPort"
:
"6379"
,
"RedisPwd"
:
"Viitto2018"
"RedisPwd"
:
"Viitto2018"
},
},
"VirtualDirectory"
:
"WebFile"
,
"VirtualDirectory"
:
"WebFile"
,
//未填写
未打分
下降比例
//未填写
未打分
下降比例
"OKRMatterValue"
:
"30,100,100"
,
"OKRMatterValue"
:
"30,100,100"
,
//是否是线上环境
//是否是线上环境
"IsOnline"
:
false
,
"IsOnline"
:
false
,
//退课流程编号
//退课流程编号
"BackClassFlowId"
:
1
,
"BackClassFlowId"
:
1
,
//分区校长岗位编号
//分区校长岗位编号
"SchoolPostId"
:
3
,
"SchoolPostId"
:
3
,
//教务长
//教务长
"JiaoWuZhang"
:
8
,
"JiaoWuZhang"
:
8
,
//留学就业部门主管审核编号
[
王涛
]
//留学就业部门主管审核编号
[
王涛
]
"StudyAbroadDirectorId"
:
64
,
"StudyAbroadDirectorId"
:
64
,
//留学就业部门负责人审核编号
[
姚顺先
]
//留学就业部门负责人审核编号
[
姚顺先
]
"StudyAbroadManagerId"
:
52
,
"StudyAbroadManagerId"
:
52
,
//合同默认抬头
//合同默认抬头
"ContractDefaultTitle"
:
"JH-DZ-CD-"
,
"ContractDefaultTitle"
:
"JH-DZ-CD-"
,
//消息推送AppId
//消息推送AppId
"PushAppId"
:
"JiaHeJiaoYu"
,
"PushAppId"
:
"JiaHeJiaoYu"
,
//是否推送消息
//是否推送消息
"IsPushMessage"
:
"1"
,
"IsPushMessage"
:
"1"
,
//超过下班时间
60
分钟不能打卡
//超过下班时间
60
分钟不能打卡
"MoreThanMinutes"
:
60
,
"MoreThanMinutes"
:
60
,
//连续缺课课时
//连续缺课课时
"AbsentHours"
:
12
,
"AbsentHours"
:
12
,
//值班时间验证日期
//值班时间验证日期
"DutyDate"
:
"2021-06-30"
,
"DutyDate"
:
"2021-06-30"
,
//调课流程编号
//调课流程编号
"ChangeClassFlowId"
:
2
,
"ChangeClassFlowId"
:
2
,
//停课流程编号
//停课流程编号
"StopClassFlowId"
:
3
,
"StopClassFlowId"
:
3
,
//临时上课邀请流程编号
//临时上课邀请流程编号
"TempInvitationClassFlowId"
:
4
,
"TempInvitationClassFlowId"
:
4
,
//订单转班流程编号
//订单转班流程编号
"OrderTransClassFlowId"
:
5
,
"OrderTransClassFlowId"
:
5
,
//订单分拆流程编号
//订单分拆流程编号
"OrderSplitClassFlowId"
:
6
"OrderSplitClassFlowId"
:
6
,
//是否开启调课数据验证
"IsOpenChangeClassVerify"
:
1
,
}
}
\ No newline at end of file
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