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
d8134e31
Commit
d8134e31
authored
Jun 21, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ea9cf345
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
5 deletions
+24
-5
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+10
-3
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+1
-1
TimerJobj.cs
Edu.WebApi/Timers/TimerJobj.cs
+13
-1
No files found.
Edu.Module.Course/OrderModule.cs
View file @
d8134e31
...
...
@@ -228,6 +228,7 @@ namespace Edu.Module.Course
/// <returns></returns>
public
Dictionary
<
string
,
object
>
GetClassCourseListModule
(
int
classId
,
int
Group_Id
)
{
List
<
object
>
newCourseList
=
new
List
<
object
>();
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>();
var
planList
=
class_PlanRepository
.
GetClassPlanListExtRepository
(
new
RB_Class_Plan_ViewModel
()
{
ClassId
=
classId
,
EndTime
=
Common
.
ConvertHelper
.
FormatDate
(
DateTime
.
Now
)
});
var
totalMinutes
=
planList
?.
Sum
(
qitem
=>
qitem
.
ClassMinutes
)
??
0
;
...
...
@@ -239,7 +240,7 @@ namespace Edu.Module.Course
var
courseModel
=
courseRepository
.
GetEntity
(
classModel
.
CouseId
);
if
(
courseModel
!=
null
&&
courseModel
.
CourseId
>
0
)
{
fileds
.
Add
(
"currentCourse"
,
new
newCourseList
.
Add
(
new
{
courseModel
.
CourseId
,
courseModel
.
CourseName
,
...
...
@@ -257,10 +258,16 @@ namespace Edu.Module.Course
});
foreach
(
var
item
in
courseList
)
{
item
.
CoursePriceList
=
coursePriceList
?.
Where
(
qitem
=>
qitem
.
CourseId
==
item
.
CourseId
)?.
ToList
()
??
new
List
<
RB_Course_Preferential_Extend
>();
newCourseList
.
Add
(
new
{
item
.
CourseId
,
item
.
CourseName
,
item
.
ClassHours
,
item
.
SellPrice
});
}
fileds
.
Add
(
"otherCourse"
,
courseList
.
Select
(
qitem
=>
new
{
qitem
.
CourseId
,
qitem
.
CourseName
,
qitem
.
ClassHours
,
qitem
.
SellPrice
,
qitem
.
CoursePriceList
}));
}
fileds
.
Add
(
"otherCourse"
,
newCourseList
);
return
fileds
;
}
...
...
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
d8134e31
...
...
@@ -58,7 +58,7 @@ namespace Edu.WebApi.Controllers.Course
{
int
IsChaBan
=
0
;
//不能插班报入
int
SurplusNum
=
x
.
ClassPersion
-
x
.
OrderStudentCount
;
if
(
x
.
ClassStatus
==
ClassStatusEnum
.
StudyIng
&&
SurplusNum
>
0
&&
x
.
OtherCourseList
!=
null
&&
x
.
OtherCourseList
.
Count
>
0
)
if
(
x
.
ClassStatus
==
ClassStatusEnum
.
StudyIng
&&
SurplusNum
>
0
)
{
IsChaBan
=
1
;
//可以插班报入
}
...
...
Edu.WebApi/Timers/TimerJobj.cs
View file @
d8134e31
...
...
@@ -16,10 +16,12 @@ namespace Edu.WebApi.Timers
/// </summary>
private
static
readonly
DutyPlanModule
dutyPlanModule
=
AOP
.
AOPHelper
.
CreateAOPObject
<
DutyPlanModule
>();
static
System
.
Timers
.
Timer
timer1
;
//计时器
static
System
.
Timers
.
Timer
timer1
;
//计时器
static
System
.
Timers
.
Timer
timer2
;
//定期处理未值班数据
static
System
.
Timers
.
Timer
timer3
;
//定时处理订单生效日期
public
static
void
RunTimer
()
{
timer1
=
new
System
.
Timers
.
Timer
...
...
@@ -110,5 +112,15 @@ namespace Edu.WebApi.Timers
Interlocked
.
Exchange
(
ref
inTimer2
,
0
);
}
}
/// <summary>
/// 定时处理订单生效日期
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public
static
void
DealOrderEffectStatus
(
object
sender
,
System
.
Timers
.
ElapsedEventArgs
e
)
{
}
}
}
\ 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