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
0e48510b
Commit
0e48510b
authored
Feb 21, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
04292044
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
ScrollClassModule.cs
Edu.Module.Course/ScrollClassModule.cs
+4
-2
ScrollController.cs
Edu.WebApi/Controllers/Course/ScrollController.cs
+3
-3
No files found.
Edu.Module.Course/ScrollClassModule.cs
View file @
0e48510b
...
...
@@ -1320,8 +1320,9 @@ namespace Edu.Module.Course
/// </summary>
/// <param name="demodel"></param>
/// <returns></returns>
public
string
SetAdminScrollAppointment
(
RB_Scroll_Appointment_ViewModel
demodel
)
public
string
SetAdminScrollAppointment
(
RB_Scroll_Appointment_ViewModel
demodel
,
out
int
AppointId
)
{
AppointId
=
0
;
#
region
预约验证
//var wslist = scroll_AppointmentRepository.GetList(new RB_Scroll_Appointment_ViewModel() { Group_Id = demodel.Group_Id, StuId = demodel.StuId, State = Common.Enum.Course.CourseAppointStateEnum.WaitSure });
//if (wslist.Any())
...
...
@@ -1499,7 +1500,8 @@ namespace Edu.Module.Course
demodel
.
LearnCourseId
=
learnModel
.
CourseId
;
//验证都OK了 插入预约数据
bool
flag
=
scroll_AppointmentRepository
.
Insert
(
demodel
)
>
0
;
AppointId
=
scroll_AppointmentRepository
.
Insert
(
demodel
);
bool
flag
=
AppointId
>
0
;
if
(
flag
)
{
//后台多半是 陈兴梅自行约课, 暂时不推送消息
// string Scroll_Notice = dictvalueRepository.GetList(new RB_Dictvalue_Extend() { RB_Group_id = demodel.Group_Id, DictKey = "Scroll_Notice" }).FirstOrDefault()?.Content ?? "";
...
...
Edu.WebApi/Controllers/Course/ScrollController.cs
View file @
0e48510b
...
...
@@ -380,10 +380,10 @@ namespace Edu.WebApi.Controllers.Course
demodel
.
CreateTime
=
DateTime
.
Now
;
demodel
.
UpdateBy
=
userInfo
.
Id
;
demodel
.
UpdateTime
=
DateTime
.
Now
;
string
msg
=
scrollClassModule
.
SetAdminScrollAppointment
(
demodel
);
string
msg
=
scrollClassModule
.
SetAdminScrollAppointment
(
demodel
,
out
int
AppointId
);
if
(
msg
==
""
)
{
return
ApiResult
.
Success
();
return
ApiResult
.
Success
(
""
,
AppointId
);
}
else
{
...
...
@@ -459,7 +459,7 @@ namespace Edu.WebApi.Controllers.Course
demodel
.
StuId
=
item
.
StuId
;
demodel
.
GuestId
=
item
.
GuestId
;
demodel
.
StuName
=
item
.
StuName
;
string
msg
=
scrollClassModule
.
SetAdminScrollAppointment
(
demodel
);
string
msg
=
""
;
//
scrollClassModule.SetAdminScrollAppointment(demodel);
if
(
msg
!=
""
)
{
return
ApiResult
.
Failed
(
msg
);
...
...
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