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
f68d463a
Commit
f68d463a
authored
Feb 03, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
12e1e9ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
PointModule.cs
Mall.Module.Education/PointModule.cs
+4
-1
AppletPointController.cs
Mall.WebApi/Controllers/Education/AppletPointController.cs
+5
-4
No files found.
Mall.Module.Education/PointModule.cs
View file @
f68d463a
...
...
@@ -878,6 +878,7 @@ namespace Mall.Module.Education
};
flag
=
pointTeacherCourseOrderRepository
.
Update
(
fileds
,
auditrecordWhereHelpers
,
trans
);
if
(
flag
)
//推送房间信息
{
List
<
string
>
openidList
=
new
List
<
string
>();
...
...
@@ -885,7 +886,7 @@ namespace Mall.Module.Education
new
MiniProgramMsgModule
().
SendCourseOrderTplMsg
(
model
.
TenantId
,
model
.
MallBaseId
,
openidList
,
model
.
CourseName
,
"老师:"
+
model
.
TeacherName
+
"时间:"
+
model
.
StudyDate
.
ToString
(
"HH:mm"
),
model
.
StudyDate
.
ToString
(
"MM月dd日"
));
}
}
pointTeacherCourseOrderRepository
.
DBSession
.
Commit
();
return
flag
;
}
...
...
@@ -999,6 +1000,8 @@ namespace Mall.Module.Education
member_UserRepository
.
Update
(
filedsUser
,
userWhereHelpers
,
trans
);
}
pointTeacherCourseOrderRepository
.
DBSession
.
Commit
();
return
flag
;
}
...
...
Mall.WebApi/Controllers/Education/AppletPointController.cs
View file @
f68d463a
...
...
@@ -422,7 +422,7 @@ namespace Mall.WebApi.Controllers.Education
return
ApiResult
.
Failed
(
"预约结束时间不能大于课程预约结束时间"
);
}
foreach
(
var
item
in
orderList
)
foreach
(
var
item
in
orderList
.
Where
(
x
=>
x
.
ID
!=
query
.
ID
)
)
{
DateTime
endTime
=
item
.
StudyDate
;
...
...
@@ -654,12 +654,13 @@ namespace Mall.WebApi.Controllers.Education
{
updateList
=
oldcourseOrderList
.
Where
(
x
=>
x
.
OrderStaus
==
Common
.
Enum
.
Point
.
OrderStausEnum
.
Paid
).
ToList
();
}
if
(
updateList
==
null
||
updateList
.
Any
())
if
(
updateList
==
null
||
!
updateList
.
Any
())
{
return
ApiResult
.
Failed
(
"订单已确认"
);
}
updateList
.
ForEach
(
x
=>
x
.
OrderStaus
=
Common
.
Enum
.
Point
.
OrderStausEnum
.
NoClass
);
updateList
.
ForEach
(
x
=>
x
.
UpdateDate
=
System
.
DateTime
.
Now
);
updateList
.
ForEach
(
x
=>
x
.
RoomInfo
=
query
.
RoomInfo
);
bool
result
=
pointModule
.
ConfirmTeacherCourseOrder
(
updateList
);
if
(
result
)
...
...
@@ -712,11 +713,11 @@ namespace Mall.WebApi.Controllers.Education
bool
result
=
pointModule
.
CompleteTeacherCourseOrder
(
oldModel
);
if
(
result
)
{
return
ApiResult
.
Success
(
"订单
确认
成功"
);
return
ApiResult
.
Success
(
"订单
完成操作
成功"
);
}
else
{
return
ApiResult
.
Failed
(
"订单
确认
失败"
);
return
ApiResult
.
Failed
(
"订单
完成操作
失败"
);
}
}
}
...
...
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