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
5e488fc3
Commit
5e488fc3
authored
Jul 14, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
4b519014
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
2 deletions
+31
-2
Config.cs
Edu.Common/Config.cs
+14
-0
RB_Order_Guest_ViewModel.cs
Edu.Model/ViewModel/Course/RB_Order_Guest_ViewModel.cs
+1
-0
StopStudentClassModule.cs
Edu.Module.EduTask/StopStudentClassModule.cs
+15
-2
StopStudentClassController.cs
Edu.WebApi/Controllers/EduTask/StopStudentClassController.cs
+1
-0
No files found.
Edu.Common/Config.cs
View file @
5e488fc3
...
@@ -367,6 +367,20 @@ namespace Edu.Common
...
@@ -367,6 +367,20 @@ namespace Edu.Common
return
ChangeClassFlowId
;
return
ChangeClassFlowId
;
}
}
}
}
/// <summary>
/// 停课流程编号
/// </summary>
public
static
int
StopClassFlowId
{
get
{
int
.
TryParse
(
ReadConfigKey
(
"StopClassFlowId"
),
out
int
StopClassFlowId
);
return
StopClassFlowId
;
}
}
/// <summary>
/// <summary>
/// okr关注事项配置
/// okr关注事项配置
...
...
Edu.Model/ViewModel/Course/RB_Order_Guest_ViewModel.cs
View file @
5e488fc3
...
@@ -74,6 +74,7 @@ namespace Edu.Model.ViewModel.Course
...
@@ -74,6 +74,7 @@ namespace Edu.Model.ViewModel.Course
case
3
:
str
=
"申请退学中"
;
break
;
case
3
:
str
=
"申请退学中"
;
break
;
case
4
:
str
=
"驳回申请"
;
break
;
case
4
:
str
=
"驳回申请"
;
break
;
case
5
:
str
=
"停课"
;
break
;
case
5
:
str
=
"停课"
;
break
;
case
6
:
str
=
"停课申请中"
;
break
;
}
}
return
str
;
return
str
;
}
}
...
...
Edu.Module.EduTask/StopStudentClassModule.cs
View file @
5e488fc3
using
Edu.Model.Entity.EduTask
;
using
Edu.Model.Entity.Course
;
using
Edu.Model.Entity.EduTask
;
using
Edu.Model.ViewModel.EduTask
;
using
Edu.Model.ViewModel.EduTask
;
using
Edu.Repository.Course
;
using
Edu.Repository.EduTask
;
using
Edu.Repository.EduTask
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
VT.FW.AOP.CustomerAttribute
;
using
VT.FW.AOP.CustomerAttribute
;
...
@@ -22,7 +24,10 @@ namespace Edu.Module.EduTask
...
@@ -22,7 +24,10 @@ namespace Edu.Module.EduTask
/// </summary>
/// </summary>
private
readonly
RB_Student_StopClassRepository
student_StopClassRepository
=
new
RB_Student_StopClassRepository
();
private
readonly
RB_Student_StopClassRepository
student_StopClassRepository
=
new
RB_Student_StopClassRepository
();
/// <summary>
/// 订单学员仓储层对象
/// </summary>
private
readonly
RB_Order_GuestRepository
order_GuestRepository
=
new
RB_Order_GuestRepository
();
/// <summary>
/// <summary>
/// 获取调课计划列表
/// 获取调课计划列表
...
@@ -70,6 +75,14 @@ namespace Edu.Module.EduTask
...
@@ -70,6 +75,14 @@ namespace Edu.Module.EduTask
flag
=
newId
>
0
;
flag
=
newId
>
0
;
if
(
flag
)
if
(
flag
)
{
{
//将学员的学习状态变成停课申请中
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Order_Guest
.
GuestState
),
6
},
};
flag
=
order_GuestRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Order_Guest
.
Id
),
extModel
.
OrderGuestId
));
var
educationReceipt
=
new
RB_Education_Receipt
()
var
educationReceipt
=
new
RB_Education_Receipt
()
{
{
Id
=
0
,
Id
=
0
,
...
...
Edu.WebApi/Controllers/EduTask/StopStudentClassController.cs
View file @
5e488fc3
...
@@ -72,6 +72,7 @@ namespace Edu.WebApi.Controllers.EduTask
...
@@ -72,6 +72,7 @@ namespace Edu.WebApi.Controllers.EduTask
}
}
model
.
UpdateBy
=
base
.
UserInfo
.
Id
;
model
.
UpdateBy
=
base
.
UserInfo
.
Id
;
model
.
UpdateTime
=
DateTime
.
Now
;
model
.
UpdateTime
=
DateTime
.
Now
;
model
.
IsAuditThrough
=
0
;
bool
flag
=
stopStudentClassModule
.
SetStudentStopClassModule
(
model
);
bool
flag
=
stopStudentClassModule
.
SetStudentStopClassModule
(
model
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
}
...
...
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