Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
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
黄奎
mall.oytour.com
Commits
ecbd95b6
Commit
ecbd95b6
authored
Feb 04, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
b8b1f482
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
5 deletions
+33
-5
PointModule.cs
Mall.Module.Education/PointModule.cs
+2
-1
MiniProgramMsgModule.cs
Mall.Module.User/MiniProgramMsgModule.cs
+1
-1
AppletPointController.cs
Mall.WebApi/Controllers/Education/AppletPointController.cs
+30
-3
No files found.
Mall.Module.Education/PointModule.cs
View file @
ecbd95b6
...
...
@@ -396,6 +396,7 @@ namespace Mall.Module.Education
DurationUnit
=
model
.
DurationUnit
.
GetEnumName
(),
OrderList
=
orderList
.
Select
(
x
=>
new
{
x
.
CourseId
,
x
.
ID
,
x
.
UserId
,
x
.
UserName
,
...
...
@@ -878,7 +879,7 @@ namespace Mall.Module.Education
};
flag
=
pointTeacherCourseOrderRepository
.
Update
(
fileds
,
auditrecordWhereHelpers
,
trans
);
if
(
flag
)
//推送房间信息
{
List
<
string
>
openidList
=
new
List
<
string
>();
...
...
Mall.Module.User/MiniProgramMsgModule.cs
View file @
ecbd95b6
...
...
@@ -949,7 +949,7 @@ namespace Mall.Module.User
{
thing1
=
new
{
value
=
Title
value
=
Title
.
Substring
(
0
,
15
)
},
thing2
=
new
{
...
...
Mall.WebApi/Controllers/Education/AppletPointController.cs
View file @
ecbd95b6
...
...
@@ -340,7 +340,7 @@ namespace Mall.WebApi.Controllers.Education
var
courseModel
=
pointModule
.
GetTeacherCourseList
(
new
RB_Point_TeacherCourse_Extend
{
TeacherId
=
query
.
TeacherId
,
ID
=
query
.
CourseId
,
TenantId
=
userInfo
.
TenantId
,
MallBaseId
=
userInfo
.
MallBaseId
}).
FirstOrDefault
();
// var courseClassModel = pointModule.GetPointCourseClassList(new RB_Point_CourseClass_Extend { ID = query.CourseClassId, TenantId = userInfo.TenantId, MallBaseId = userInfo.MallBaseId }).FirstOrDefault();
query
.
TeacherId
=
courseModel
.
TeacherId
;
query
.
CourseClassId
=
courseModel
.
CourseClassId
;
//判断时长是否一致
if
((
query
.
TotalStudyDuration
%
courseModel
.
StudyDuration
)
!=
0
)
{
...
...
@@ -702,7 +702,7 @@ namespace Mall.WebApi.Controllers.Education
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
CompleteTeacherCourseOrder
()
public
ApiResult
Get
CompleteTeacherCourseOrder
()
{
var
parms
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
...
...
@@ -732,6 +732,21 @@ namespace Mall.WebApi.Controllers.Education
oldModel
.
ActualPointNum
=
query
.
ActualPointNum
;
oldModel
.
UpdateDate
=
System
.
DateTime
.
Now
;
oldModel
.
OrderStaus
=
Common
.
Enum
.
Point
.
OrderStausEnum
.
Complete
;
DateTime
nowOrderDate
=
query
.
StudyDate
;
if
(
query
.
DurationUnit
==
Common
.
Enum
.
Point
.
DurationUnitEnum
.
Hour
)
{
nowOrderDate
=
query
.
StudyDate
.
AddMinutes
(
Convert
.
ToDouble
(
query
.
TotalStudyDuration
*
60
));
}
else
{
nowOrderDate
=
query
.
StudyDate
.
AddMinutes
(
Convert
.
ToDouble
(
query
.
TotalStudyDuration
));
}
//if (nowOrderDate > System.DateTime.Now)
//{
// return ApiResult.Success("订单预约结束时间不能大于当前时间");
//}
bool
result
=
pointModule
.
CompleteTeacherCourseOrder
(
oldModel
);
if
(
result
)
{
...
...
@@ -865,6 +880,8 @@ namespace Mall.WebApi.Controllers.Education
}
/// <summary>
/// 课程列表
/// </summary>
...
...
@@ -909,7 +926,17 @@ namespace Mall.WebApi.Controllers.Education
foreach
(
var
item
in
nowDayList
)
{
var
nowCourseOrderList
=
courseOrder
.
Where
(
x
=>
item
.
ID
==
x
.
CourseId
&&
x
.
UserId
==
userInfo
.
UserId
);
List
<
RB_Point_TeacherCourseOrder_Extend
>
nowCourseOrderList
=
new
List
<
RB_Point_TeacherCourseOrder_Extend
>();
if
(
query
.
TeacherId
>
0
)
{
nowCourseOrderList
=
courseOrder
.
Where
(
x
=>
item
.
ID
==
x
.
CourseId
).
ToList
();
}
else
{
nowCourseOrderList
=
courseOrder
.
Where
(
x
=>
item
.
ID
==
x
.
CourseId
&&
x
.
UserId
==
userInfo
.
UserId
).
ToList
();
}
haveCourseCount
+=
nowCourseOrderList
.
Count
();
List
<
object
>
orderList
=
new
List
<
object
>();
...
...
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