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
38d0692a
Commit
38d0692a
authored
Jun 24, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
d02ebc33
9c53efd9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
80 deletions
+83
-80
RB_Class_PlanRepository.cs
Edu.Repository/Course/RB_Class_PlanRepository.cs
+2
-1
Startup.cs
Edu.WebApi/Startup.cs
+4
-2
appsettings.json
Edu.WebApi/appsettings.json
+77
-77
No files found.
Edu.Repository/Course/RB_Class_PlanRepository.cs
View file @
38d0692a
...
...
@@ -236,10 +236,11 @@ WHERE ClassId={1} AND ClassDate>'{2}'
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT a.*,c.Teacher_Id,c.ClassName,c.ClassType,T.TeacherName
SELECT a.*,c.Teacher_Id,c.ClassName,c.ClassType,T.TeacherName
,cou.CourseName
FROM rb_class_plan as a
LEFT JOIN rb_class c on a.ClassId = c.ClassId
LEFT JOIN rb_teacher AS T ON a.TeacherId=T.TId
LEFT JOIN rb_course as cou on cou.CourseId=c.CouseId
where a.`Status`=0 and c.ClassStatus=2 and c.`Status`=0"
);
if
(
query
!=
null
)
{
...
...
Edu.WebApi/Startup.cs
View file @
38d0692a
...
...
@@ -57,7 +57,9 @@ namespace Edu.WebApi
"http://jiahe.oytour.com"
,
"http://www.kookaku.com"
,
"http://www.kookaku.cn"
,
"http://kookaku.com"
"http://kookaku.com"
,
"https://mallapi.oytour.com"
,
"https://mall.oytour.com"
};
services
.
AddCors
(
options
=>
options
.
AddPolicy
(
"AllowCors"
,
policy
=>
policy
.
AllowAnyHeader
().
AllowAnyMethod
().
AllowCredentials
().
WithOrigins
(
corsArray
.
ToArray
())));
}
...
...
@@ -96,7 +98,7 @@ namespace Edu.WebApi
Timers
.
TimerJobj
.
RunStop
();
//网站停止完成执行
});
string
filePath
=
Path
.
Combine
(
Directory
.
GetCurrentDirectory
(),
"upfile"
);
string
filePath
=
Path
.
Combine
(
Directory
.
GetCurrentDirectory
(),
"upfile"
);
if
(
System
.
IO
.
Directory
.
Exists
(
filePath
)
==
false
)
//如果不存在就创建file文件夹
{
System
.
IO
.
Directory
.
CreateDirectory
(
filePath
);
...
...
Edu.WebApi/appsettings.json
View file @
38d0692a
{
"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=test_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"
},
"Logging"
:
{
"LogLevel"
:
{
"Default"
:
"Information"
,
"Microsoft"
:
"Warning"
,
"Microsoft.Hosting.Lifetime"
:
"Information"
}
},
"SettlementRate"
:
"0.60"
,
"SellCommissionFFBL"
:
"0.15"
,
"JwtSecretKey"
:
"@VIITTOREBORN*2018"
,
"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.1.13:8083/api/Mall/InsertFinanceBatchForMallIn
"
,
"IncomeFinanceApi"
:
"http://192.168.20.9:8083/api/Mall/InsertFinanceBatchForMallOut
"
,
"sTenpayNotifyUrl"
:
"http://eduapi.oytour.com/api/WeChatPay/WxPayCallback"
,
//下单回调地址
"sTenpayNotifyRefundUrl"
:
"http://eduapi.oytour.com/api/WeChatPay/Refunds"
,
//退款
回调地址
"FinanceDateBase"
:
"reborn_finance"
,
"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"
,
"Redis
Pwd"
:
"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"
,
"JHTenantId"
:
"15"
,
"JHMallBaseId"
:
"5"
,
"MallJwtSecretKey"
:
"@VIITTOREBORN*2018123"
"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=test_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"
},
"Logging"
:
{
"LogLevel"
:
{
"Default"
:
"Information"
,
"Microsoft"
:
"Warning"
,
"Microsoft.Hosting.Lifetime"
:
"Information"
}
},
"SettlementRate"
:
"0.60"
,
"SellCommissionFFBL"
:
"0.15"
,
"JwtSecretKey"
:
"@VIITTOREBORN*2018"
,
"MallJwtSecretKey"
:
"@VIITTOREBORN*2018"
,
"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.1.13:8083/api/Mall/InsertFinanceBatchForMallIn
"
,
"IncomeFinanceApi"
:
"http://192.168.20.9:8083/api/Mall/InsertFinanceBatchForMallOut"
,
"sTenpayNotifyUrl"
:
"http://eduapi.oytour.com/api/WeChatPay/WxPayCallback"
,
//下单
回调地址
"sTenpayNotifyRefundUrl"
:
"http://eduapi.oytour.com/api/WeChatPay/Refunds"
,
//退款回调地址
"FinanceDateBase"
:
"reborn_finance"
,
"
JHTenantId"
:
"15
"
,
"
JHMallBaseId"
:
"5
"
,
"
RabbitMqConfig"
:
{
"HostName"
:
"47.96.25.130
"
,
"VirtualHost"
:
"/
"
,
"Port"
:
5672
,
"UserName"
:
"guest"
,
"Password"
:
"viitto2019"
,
"QueenName"
:
"vt_sys_message_test"
}
,
"Redis
Setting"
:
{
"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
}
\ 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