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
1f503e34
Commit
1f503e34
authored
Jul 27, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b6b01656
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
ClassModule.cs
Edu.Module.Course/ClassModule.cs
+5
-0
OrderModule2.cs
Edu.Module.Course/OrderModule2.cs
+3
-5
ClassController.cs
Edu.WebApi/Controllers/Course/ClassController.cs
+1
-1
No files found.
Edu.Module.Course/ClassModule.cs
View file @
1f503e34
...
@@ -1321,6 +1321,11 @@ namespace Edu.Module.Course
...
@@ -1321,6 +1321,11 @@ namespace Edu.Module.Course
CreateTimeStr
=
Common
.
ConvertHelper
.
FormatTime
(
item
.
CreateTime
),
CreateTimeStr
=
Common
.
ConvertHelper
.
FormatTime
(
item
.
CreateTime
),
item
.
Mobile
,
item
.
Mobile
,
item
.
OrderId
,
item
.
OrderId
,
item
.
TotalHours
,
item
.
CompleteHours
,
item
.
ValidClassHours
,
SurplusHours
=
item
.
TotalHours
-
item
.
CompleteHours
,
item
.
MakeUpHours
,
ClassHours
=
item
.
CompleteHours
+
"-"
+
(
classModel
?.
ClassHours
??
0
),
ClassHours
=
item
.
CompleteHours
+
"-"
+
(
classModel
?.
ClassHours
??
0
),
IsRenew
=
item
.
IsRenewOrder
,
IsRenew
=
item
.
IsRenewOrder
,
item
.
RenewOrderId
,
item
.
RenewOrderId
,
...
...
Edu.Module.Course/OrderModule2.cs
View file @
1f503e34
...
@@ -93,13 +93,11 @@ namespace Edu.Module.Course
...
@@ -93,13 +93,11 @@ namespace Edu.Module.Course
//基础课时分钟数
//基础课时分钟数
var
BasicMinutes
=
class_ConfigRepository
.
GetClassMinutesRepository
(
orderModel
.
ClassId
);
var
BasicMinutes
=
class_ConfigRepository
.
GetClassMinutesRepository
(
orderModel
.
ClassId
);
var
stuCheckList
=
class_CheckRepository
.
GetGuestFinishMinutesRepository
(
GuestId
.
ToString
());
var
stuCheckList
=
class_CheckRepository
.
GetGuestFinishMinutesRepository
(
GuestId
.
ToString
());
//总签到上课分钟数
var
totalFinishMinutes
=
stuCheckList
?.
Sum
(
qitem
=>
qitem
.
FinishMinutes
)
??
0
;
//完成课时数
//完成课时数
var
FinishHours
=
Convert
.
ToInt32
(
totalFinishMinutes
)
/
BasicMinutes
;
var
FinishHours
=
stuCheckList
?.
Sum
(
qitem
=>
qitem
.
FinishClassHours
)
??
0
;
//课时单价
//课时单价
var
classHourPrice
=
Math
.
Round
(
orderModel
.
PreferPrice
/
orderModel
.
GuestNum
/
classModel
.
ClassHours
,
2
)
;
var
classHourPrice
=
orderModel
.
PreferPrice
/
orderModel
.
GuestNum
/
classModel
.
ClassHours
;
//预计退款金额
//预计退款金额
decimal
backMoney
=
0
;
decimal
backMoney
=
0
;
//backMoney = (classModel.ClassHours - FinishHours) * classHourPrice;
//backMoney = (classModel.ClassHours - FinishHours) * classHourPrice;
...
@@ -116,7 +114,7 @@ namespace Edu.Module.Course
...
@@ -116,7 +114,7 @@ namespace Edu.Module.Course
ClassId
=
orderModel
.
ClassId
,
ClassId
=
orderModel
.
ClassId
,
CreateBy
=
userinfo
.
Id
,
CreateBy
=
userinfo
.
Id
,
CreateTime
=
DateTime
.
Now
,
CreateTime
=
DateTime
.
Now
,
FinishHours
=
FinishHours
,
FinishHours
=
Convert
.
ToInt32
(
FinishHours
)
,
Group_Id
=
userinfo
.
Group_Id
,
Group_Id
=
userinfo
.
Group_Id
,
GuestId
=
GuestId
,
GuestId
=
GuestId
,
SchoolId
=
guestModel
.
School_Id
,
SchoolId
=
guestModel
.
School_Id
,
...
...
Edu.WebApi/Controllers/Course/ClassController.cs
View file @
1f503e34
...
@@ -726,7 +726,7 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -726,7 +726,7 @@ namespace Edu.WebApi.Controllers.Course
var
classId
=
base
.
ParmJObj
.
GetInt
(
"ClassId"
);
var
classId
=
base
.
ParmJObj
.
GetInt
(
"ClassId"
);
var
schoolId
=
0
;
var
schoolId
=
0
;
int
QEffectStatus
=
base
.
ParmJObj
.
GetInt
(
"QEffectStatus"
);
int
QEffectStatus
=
base
.
ParmJObj
.
GetInt
(
"QEffectStatus"
);
//var schoolId = base.ParmJObj.GetInt("School_Id");
var
data
=
classModule
.
GetClassStudentListModule
(
classId
,
schoolId
,
base
.
UserInfo
.
Group_Id
,
0
,
QEffectStatus
:
QEffectStatus
);
var
data
=
classModule
.
GetClassStudentListModule
(
classId
,
schoolId
,
base
.
UserInfo
.
Group_Id
,
0
,
QEffectStatus
:
QEffectStatus
);
return
ApiResult
.
Success
(
data
:
data
);
return
ApiResult
.
Success
(
data
:
data
);
}
}
...
...
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