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
52c2be33
Commit
52c2be33
authored
Aug 02, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
53d027f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
33 deletions
+3
-33
ScrollClassModule.cs
Edu.Module.Course/ScrollClassModule.cs
+3
-33
No files found.
Edu.Module.Course/ScrollClassModule.cs
View file @
52c2be33
...
...
@@ -2670,15 +2670,7 @@ namespace Edu.Module.Course
}
foreach
(
var
item
in
timeList
.
Where
(
x
=>
x
.
State
==
3
))
{
// HK 2022-07-06注释 约课可能会不一致
//if (demodel.CourseGradeId != item.CourseGradeId)
//{
// return "预约课次等级不一致";
//}
//if (demodel.CourseGradeNo != item.CourseGradeNo)
//{
// return "预约课程章节不一致";
//}
if
(
item
.
PeopleNum
+
1
>
item
.
MaxPeopleNum
)
{
return
"该时段已预约满,请预约其他时段"
;
...
...
@@ -2714,12 +2706,7 @@ namespace Edu.Module.Course
}
demodel
.
AppointType
=
3
;
}
// 直接不要补课数据了 只要没有预约的数据 都是缺课
//var scList = scroll_SkipCourseRepository.GetList(new RB_Scroll_SkipCourse_ViewModel() { Group_Id = demodel.Group_Id, GuestId = demodel.GuestId, CourseGradeId = demodel.CourseGradeId, CourseGradeNo = demodel.CourseGradeNo });
//if (scList.Where(x => x.State == 1).Any()) {
// //有可补课的数据
// demodel.AppointType = 2;
//}
#
endregion
//验证都OK了 插入预约数据
...
...
@@ -2734,24 +2721,7 @@ namespace Edu.Module.Course
}
bool
flag
=
AppointId
>
0
;
if
(
flag
)
{
//定时器 更新已上课时 再更新其上课课时
//if (demodel.AppointType == 1 && demodel.ChapterNo > learnModel.CourseChapterNo + 1) {
// Dictionary<string, object> keyValues = new Dictionary<string, object>() {
// { nameof(RB_Order_Guest_ViewModel.CourseChapterNo), demodel.ChapterNo - 1},
// { nameof(RB_Order_Guest_ViewModel.CompleteHours), (demodel.ChapterNo - 1) * (timeList.Sum(x=>x.ClassHours))}
// };
// List<WhereHelper> wheres = new List<WhereHelper>() {
// new WhereHelper(){
// FiledName = nameof(RB_Order_Guest_ViewModel.Id),
// FiledValue = demodel.GuestId,
// OperatorEnum =OperatorEnum.Equal
// }
// };
// order_GuestRepository.Update(keyValues, wheres);
//}
}
return
flag
?
""
:
"出错了,请联系管理员"
;
#
endregion
}
...
...
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