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
04a8f675
Commit
04a8f675
authored
Dec 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
d10b274f
1fce6a38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
StudentModule.cs
Edu.Module.User/StudentModule.cs
+3
-2
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+1
-1
No files found.
Edu.Module.User/StudentModule.cs
View file @
04a8f675
...
...
@@ -149,15 +149,16 @@ namespace Edu.Module.User
/// 添加修改学生
/// </summary>
/// <param name="model"></param>
/// <param name="fromApp">来至于同业 1是</param>
/// <returns></returns>
public
bool
SetStudentModule
(
RB_Student_ViewModel
model
)
public
bool
SetStudentModule
(
RB_Student_ViewModel
model
,
int
fromApp
=
0
)
{
bool
IsInsert
=
false
;
if
(
model
.
StuId
==
0
)
{
IsInsert
=
true
;
}
bool
flag
=
studentRepository
.
SetStudentRepository
(
model
);
if
(
flag
)
{
if
(
IsInsert
&&
model
.
CustomerId
>
0
)
if
(
IsInsert
&&
model
.
CustomerId
>
0
&&
fromApp
==
1
)
{
var
queryTargetWorkId
=
accountModule
.
GetWorkUserIdModule
(
model
.
CreateBy
);
if
(!
string
.
IsNullOrEmpty
(
queryTargetWorkId
))
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
04a8f675
...
...
@@ -813,7 +813,7 @@ namespace Edu.WebApi.Controllers.User
{
return
ApiResult
.
Failed
(
"此学员手机号已绑定同行!请重新录入!"
);
}
bool
flag
=
studentModule
.
SetStudentModule
(
extModel
);
bool
flag
=
studentModule
.
SetStudentModule
(
extModel
,
1
);
return
flag
?
ApiResult
.
Success
()
:
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