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
5e286859
Commit
5e286859
authored
Apr 09, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a1455f9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
WebController.cs
Edu.WebApi/Controllers/Web/WebController.cs
+38
-0
No files found.
Edu.WebApi/Controllers/Web/WebController.cs
View file @
5e286859
...
...
@@ -5,8 +5,10 @@ using Edu.Common.Enum;
using
Edu.Common.Enum.Web
;
using
Edu.Common.Plugin
;
using
Edu.Model.ViewModel.Course
;
using
Edu.Model.ViewModel.StudyAbroad
;
using
Edu.Model.ViewModel.Web
;
using
Edu.Module.Course
;
using
Edu.Module.StudyAbroad
;
using
Edu.Module.User
;
using
Edu.Module.Web
;
using
Edu.WebApi.Filter
;
...
...
@@ -69,6 +71,11 @@ namespace Edu.WebApi.Controllers.Web
/// </summary>
private
readonly
WebTeacherModule
teacherModule
=
new
WebTeacherModule
();
/// <summary>
/// 留学就业处理对象
/// </summary>
private
readonly
StudyAbroadModule
studyAbroadModule
=
AOP
.
AOPHelper
.
CreateAOPObject
<
StudyAbroadModule
>();
/// <summary>
/// 获取网站配置
/// </summary>
...
...
@@ -407,5 +414,36 @@ namespace Edu.WebApi.Controllers.Web
qitem
.
SexStr
}));
}
/// <summary>
/// 获取留学就业列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
public
ApiResult
GetStudyAbroadList
()
{
var
query
=
new
RB_StudyAbroad_ViewModel
()
{
Name
=
base
.
ParmJObj
.
GetStringValue
(
"Name"
),
SaleState
=
Common
.
Enum
.
Sale
.
SaleStateEnum
.
Sell
,
Group_Id
=
base
.
ParmJObj
.
GetInt
(
"Group_Id"
),
Type
=
base
.
ParmJObj
.
GetInt
(
"Type"
),
};
if
(
query
.
Group_Id
<=
0
)
{
string
Domain
=
base
.
ParmJObj
.
GetStringValue
(
"Domain"
);
int
groupId
=
groupModule
.
GetGroupIdByDomainModule
(
Domain
);
query
.
Group_Id
=
groupId
;
}
var
list
=
studyAbroadModule
.
GetStudyAbroadListModule
(
query
);
return
ApiResult
.
Success
(
data
:
list
?.
Select
(
qitem
=>
new
{
qitem
.
Name
,
qitem
.
Remark
,
qitem
.
ImgCover
,
}));
}
}
}
\ No newline at end of file
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