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
995f39c7
Commit
995f39c7
authored
Dec 14, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增字段
parent
d5890aee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
RB_Teacher.cs
Edu.Model/Entity/User/RB_Teacher.cs
+5
-1
TeacherModule.cs
Edu.Module.User/TeacherModule.cs
+9
-0
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+1
-0
No files found.
Edu.Model/Entity/User/RB_Teacher.cs
View file @
995f39c7
...
...
@@ -168,10 +168,14 @@ namespace Edu.Model.Entity.User
/// </summary>
public
int
BaseStuNum
{
get
;
set
;
}
/// <summary>
/// 邮箱
/// </summary>
public
string
Email
{
get
;
set
;
}
/// <summary>
/// 基础课时费
/// </summary>
public
decimal
BaseHourFee
{
get
;
set
;
}
}
}
\ No newline at end of file
Edu.Module.User/TeacherModule.cs
View file @
995f39c7
...
...
@@ -122,6 +122,7 @@ namespace Edu.Module.User
fileds
.
Add
(
nameof
(
RB_Teacher_ViewModel
.
Dept_Id
),
model
.
Dept_Id
);
fileds
.
Add
(
nameof
(
RB_Teacher_ViewModel
.
Post_Id
),
model
.
Post_Id
);
fileds
.
Add
(
nameof
(
RB_Teacher_ViewModel
.
BaseStuNum
),
model
.
BaseStuNum
);
fileds
.
Add
(
nameof
(
RB_Teacher_ViewModel
.
BaseHourFee
),
model
.
BaseHourFee
);
}
else
{
...
...
@@ -188,6 +189,14 @@ namespace Edu.Module.User
{
logContent
+=
string
.
Format
(
",将邮箱由【{0}】修改为【{1}】。"
,
oldModel
.
Email
,
model
.
Email
);
}
if
(
model
.
BaseHourFee
!=
oldModel
.
BaseHourFee
)
{
logContent
+=
string
.
Format
(
",将基础课时费由【{0}】修改为【{1}】。"
,
oldModel
.
BaseHourFee
,
model
.
BaseHourFee
);
}
if
(
model
.
BaseStuNum
!=
oldModel
.
BaseStuNum
)
{
logContent
+=
string
.
Format
(
",将基础带班人数由【{0}】修改为【{1}】。"
,
oldModel
.
BaseStuNum
,
model
.
BaseStuNum
);
}
if
(!
string
.
IsNullOrEmpty
(
logContent
))
{
//新增日志
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
995f39c7
...
...
@@ -355,6 +355,7 @@ namespace Edu.WebApi.Controllers.User
Dept_Id
=
base
.
ParmJObj
.
GetInt
(
"Dept_Id"
),
Post_Id
=
base
.
ParmJObj
.
GetInt
(
"Post_Id"
),
BaseStuNum
=
base
.
ParmJObj
.
GetInt
(
"BaseStuNum"
),
BaseHourFee
=
base
.
ParmJObj
.
GetDecimal
(
"BaseHourFee"
),
};
extModel
.
TeachTag
=
base
.
ParmJObj
.
GetStringValue
(
"TeachTag"
);
extModel
.
CreateBy
=
base
.
UserInfo
.
Id
;
...
...
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