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
fbcbf7f1
Commit
fbcbf7f1
authored
Sep 29, 2020
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理教师信息
parent
fe834d1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
TeacherModule.cs
Edu.Module.User/TeacherModule.cs
+1
-4
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+1
-1
No files found.
Edu.Module.User/TeacherModule.cs
View file @
fbcbf7f1
...
@@ -73,10 +73,7 @@ namespace Edu.Module.User
...
@@ -73,10 +73,7 @@ namespace Edu.Module.User
{
nameof
(
RB_Teacher_ViewModel
.
SortNum
),
model
.
SortNum
},
{
nameof
(
RB_Teacher_ViewModel
.
SortNum
),
model
.
SortNum
},
{
nameof
(
RB_Teacher_ViewModel
.
UpdateBy
),
model
.
UpdateBy
},
{
nameof
(
RB_Teacher_ViewModel
.
UpdateBy
),
model
.
UpdateBy
},
{
nameof
(
RB_Teacher_ViewModel
.
UpdateTime
),
model
.
UpdateTime
},
{
nameof
(
RB_Teacher_ViewModel
.
UpdateTime
),
model
.
UpdateTime
},
{
nameof
(
RB_Teacher_ViewModel
.
AuditStatus
),
model
.
AuditStatus
},
{
nameof
(
RB_Teacher_ViewModel
.
AuditStatus
),
model
.
AuditStatus
}
{
nameof
(
RB_Teacher_ViewModel
.
CourseCount
),
model
.
CourseCount
},
{
nameof
(
RB_Teacher_ViewModel
.
OnlineClassCount
),
model
.
OnlineClassCount
},
{
nameof
(
RB_Teacher_ViewModel
.
OnlineOrderCount
),
model
.
OnlineOrderCount
},
};
};
flag
=
teacherRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Teacher_ViewModel
.
TId
),
model
.
TId
));
flag
=
teacherRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Teacher_ViewModel
.
TId
),
model
.
TId
));
}
}
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
fbcbf7f1
...
@@ -225,7 +225,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -225,7 +225,7 @@ namespace Edu.WebApi.Controllers.User
var
pageModel
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
Msg
.
ToString
());
var
pageModel
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
Msg
.
ToString
());
var
query
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
RB_Teacher_ViewModel
>(
RequestParm
.
Msg
.
ToString
());
var
query
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
RB_Teacher_ViewModel
>(
RequestParm
.
Msg
.
ToString
());
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
query
.
School_Id
=
base
.
UserInfo
.
School_Id
;
//
query.School_Id = base.UserInfo.School_Id;
var
list
=
teacherModule
.
GetTeacherPageListModule
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
var
list
=
teacherModule
.
GetTeacherPageListModule
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
{
{
...
...
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