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
e491f2da
Commit
e491f2da
authored
Apr 08, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
41d653dc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
4 deletions
+69
-4
RB_Web_Teacher.cs
Edu.Model/Entity/Web/RB_Web_Teacher.cs
+1
-1
RB_Web_Teacher_ViewModel.cs
Edu.Model/ViewModel/Web/RB_Web_Teacher_ViewModel.cs
+31
-0
WebTeacherModule.cs
Edu.Module.Web/WebTeacherModule.cs
+0
-2
WebController.cs
Edu.WebApi/Controllers/Web/WebController.cs
+37
-1
No files found.
Edu.Model/Entity/Web/RB_Web_Teacher.cs
View file @
e491f2da
...
...
@@ -37,7 +37,7 @@ namespace Edu.Model.Entity.Web
public
int
Type
{
get
;
set
;
}
/// <summary>
/// 性别
/// 性别
(0-男,1-女)
/// </summary>
public
int
Sex
{
get
;
set
;
}
...
...
Edu.Model/ViewModel/Web/RB_Web_Teacher_ViewModel.cs
View file @
e491f2da
...
...
@@ -10,6 +10,37 @@ namespace Edu.Model.ViewModel.Web
/// </summary>
public
class
RB_Web_Teacher_ViewModel
:
RB_Web_Teacher
{
/// <summary>
/// 性别字符串
/// </summary>
public
string
SexStr
{
get
{
string
str
=
"男"
;
if
(
this
.
Sex
==
1
)
{
str
=
"女"
;
}
return
str
;
}
}
/// <summary>
/// 类型字符串
/// </summary>
public
string
TypeStr
{
get
{
string
str
=
""
;
switch
(
this
.
Type
)
{
case
1
:
str
=
"日语培训老师"
;
break
;
case
2
:
str
=
"留学服务老师"
;
break
;
}
return
str
;
}
}
}
}
Edu.Module.Web/WebTeacherModule.cs
View file @
e491f2da
using
Edu.Model.ViewModel.Web
;
using
Edu.Repository.Web
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
VT.FW.DB
;
namespace
Edu.Module.Web
...
...
Edu.WebApi/Controllers/Web/WebController.cs
View file @
e491f2da
...
...
@@ -64,6 +64,11 @@ namespace Edu.WebApi.Controllers.Web
/// </summary>
private
readonly
OrderModule
orderModule
=
AOP
.
AOPHelper
.
CreateAOPObject
<
OrderModule
>();
/// <summary>
/// 教师团队管理处理类对象
/// </summary>
private
readonly
WebTeacherModule
teacherModule
=
new
WebTeacherModule
();
/// <summary>
/// 获取网站配置
/// </summary>
...
...
@@ -342,7 +347,7 @@ namespace Edu.WebApi.Controllers.Web
Q_CanApply
=
base
.
ParmJObj
.
GetInt
(
"Q_CanApply"
),
Teacher_Id
=
base
.
ParmJObj
.
GetInt
(
"Teacher_Id"
),
Group_Id
=
base
.
ParmJObj
.
GetInt
(
"Group_Id"
),
CateId
=
base
.
ParmJObj
.
GetInt
(
"CateId"
),
CateId
=
base
.
ParmJObj
.
GetInt
(
"CateId"
),
};
if
(
dmodel
.
Group_Id
<=
0
)
{
...
...
@@ -370,5 +375,36 @@ namespace Edu.WebApi.Controllers.Web
}
#
endregion
/// <summary>
/// 获取教师团队列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
public
ApiResult
GetWebTeacherList
()
{
var
query
=
new
RB_Web_Teacher_ViewModel
()
{
Name
=
base
.
ParmJObj
.
GetStringValue
(
"Name"
),
Type
=
base
.
ParmJObj
.
GetInt
(
"Type"
),
Group_Id
=
base
.
ParmJObj
.
GetInt
(
"Group_Id"
),
};
if
(
query
.
Group_Id
<=
0
)
{
string
Domain
=
base
.
ParmJObj
.
GetStringValue
(
"Domain"
);
int
groupId
=
groupModule
.
GetGroupIdByDomainModule
(
Domain
);
query
.
Group_Id
=
groupId
;
}
var
list
=
teacherModule
.
GetWebTeacherListModule
(
query
);
return
ApiResult
.
Success
(
data
:
list
?.
Select
(
qitem
=>
new
{
qitem
.
Name
,
qitem
.
Intro
,
qitem
.
Icon
,
qitem
.
Sex
,
qitem
.
SexStr
}));
}
}
}
\ 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