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
ef477746
Commit
ef477746
authored
Dec 14, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a5d3e2fd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+2
-2
OrderModule2.cs
Edu.Module.Course/OrderModule2.cs
+1
-1
No files found.
Edu.Module.Course/OrderModule.cs
View file @
ef477746
...
...
@@ -517,7 +517,7 @@ namespace Edu.Module.Course
else
if
(!
string
.
IsNullOrEmpty
(
demodel
.
StuIds
)
&&
demodel
.
OrderIdentify
==
2
)
{
//查询学生列表
StuList
=
studentRepository
.
GetStudentListRepository
(
new
RB_Student_ViewModel
()
{
Group_Id
=
demodel
.
Group_Id
,
StuIds
=
demodel
.
StuIds
});
StuList
=
studentRepository
.
GetStudentListRepository
(
new
RB_Student_ViewModel
()
{
Group_Id
=
demodel
.
Group_Id
,
StuIds
=
demodel
.
StuIds
,
School_Id
=
-
1
});
//根据客人手机号码 验证是否是续费
if
(
StuList
.
Select
(
x
=>
x
.
CustomerId
).
Distinct
().
Count
()
>
1
)
{
message
=
"只能选择同一同行的客户报名"
;
...
...
@@ -2355,7 +2355,7 @@ namespace Edu.Module.Course
{
#
region
验证电话是否已是他人客户
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
Mobile
))
{
var
slist
=
studentRepository
.
GetStudentListRepository
(
new
RB_Student_ViewModel
()
{
Group_Id
=
dmodel
.
Group_Id
,
StuTel
=
dmodel
.
Mobile
});
var
slist
=
studentRepository
.
GetStudentListRepository
(
new
RB_Student_ViewModel
()
{
Group_Id
=
dmodel
.
Group_Id
,
StuTel
=
dmodel
.
Mobile
,
School_Id
=
-
1
});
if
(
slist
.
Where
(
x
=>
x
.
CustomerId
!=
ordermodel
.
CustomerId
).
Any
())
{
message
=
"学员'"
+
dmodel
.
GuestName
+
"'已被他人注册"
;
return
false
;
...
...
Edu.Module.Course/OrderModule2.cs
View file @
ef477746
...
...
@@ -311,7 +311,7 @@ namespace Edu.Module.Course
{
message
=
""
;
//查询学生列表
var
StuList
=
studentRepository
.
GetStudentListRepository
(
new
RB_Student_ViewModel
()
{
Group_Id
=
userInfo
.
Group_Id
,
StuIds
=
stuIds
});
var
StuList
=
studentRepository
.
GetStudentListRepository
(
new
RB_Student_ViewModel
()
{
Group_Id
=
userInfo
.
Group_Id
,
StuIds
=
stuIds
,
School_Id
=
-
1
});
//根据客人手机号码 验证是否是续费
if
(
StuList
.
Select
(
x
=>
x
.
CustomerId
).
Distinct
().
Count
()
>
1
)
{
...
...
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