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
57786fad
Commit
57786fad
authored
Jan 06, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
580f37a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
StudentModule.cs
Edu.Module.User/StudentModule.cs
+23
-0
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+2
-0
No files found.
Edu.Module.User/StudentModule.cs
View file @
57786fad
...
...
@@ -437,6 +437,29 @@ namespace Edu.Module.User
extModel
.
StuPurposeName
=
learningGoalsRepository
.
GetLearningGoalsExtEntityRepository
(
extModel
.
StuPurpose
)?.
Name
??
""
;
extModel
.
StuChannelName
=
channelRepository
.
GetChannelExtEntityRepository
(
extModel
.
StuChannel
)?.
Name
??
""
;
extModel
.
StuNeedsName
=
needsRepository
.
GetNeedsExtEntityRepository
(
extModel
.
StuNeeds
)?.
Name
??
""
;
if
(
extModel
.
CustomerId
>
0
)
{
extModel
.
CustomerName
=
customerRepository
.
GetEntity
(
extModel
.
CustomerId
)?.
CustomerName
??
""
;
}
if
(
extModel
.
StuSourceId
>
0
)
{
if
(
extModel
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
)
{
extModel
.
StuSourceIdName
=
customerRepository
.
GetEntity
(
extModel
.
StuSourceId
)?.
CustomerName
??
""
;
}
else
if
(
extModel
.
CreateType
==
StuCreateTypeEnum
.
EmployeeInput
)
{
extModel
.
StuSourceIdName
=
accountModule
.
GetEmployeeInfo
(
extModel
.
StuSourceId
)?.
EmployeeName
??
""
;
}
else
if
(
extModel
.
CreateType
==
StuCreateTypeEnum
.
InternalIntroduction
)
{
extModel
.
StuSourceIdName
=
accountModule
.
GetEmployeeInfo
(
extModel
.
StuSourceId
)?.
EmployeeName
??
""
;
}
else
if
(
extModel
.
CreateType
==
StuCreateTypeEnum
.
TransIntroduction
)
{
extModel
.
StuSourceIdName
=
studentRepository
.
GetEntity
(
extModel
.
StuSourceId
)?.
StuName
??
""
;
}
}
}
return
extModel
;
}
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
57786fad
...
...
@@ -1223,6 +1223,7 @@ namespace Edu.WebApi.Controllers.User
extModel
.
PlatformName
,
AssistList
=
extModel
?.
AssistList
??
new
List
<
RB_Student_Assist_Extend
>(),
extModel
.
StuSourceId
,
extModel
.
StuSourceIdName
,
extModel
.
QQ
,
extModel
.
WeChatNo
,
extModel
.
StuType
,
...
...
@@ -1230,6 +1231,7 @@ namespace Edu.WebApi.Controllers.User
extModel
.
StuNeeds
,
extModel
.
StuNeedsName
,
extModel
.
StuRealMobile
,
extModel
.
CustomerName
,
};
return
ApiResult
.
Success
(
data
:
obj
);
}
...
...
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