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
5b61433d
Commit
5b61433d
authored
4 years ago
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
02218af8
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
20 deletions
+32
-20
RB_User_ChangeLog.cs
Edu.Model/Entity/Log/RB_User_ChangeLog.cs
+11
-4
UserChangeLogModule.cs
Edu.Module.Log/UserChangeLogModule.cs
+6
-3
AssistModule.cs
Edu.Module.User/AssistModule.cs
+5
-4
ManagerModule.cs
Edu.Module.User/ManagerModule.cs
+5
-5
TeacherModule.cs
Edu.Module.User/TeacherModule.cs
+5
-4
No files found.
Edu.Model/Entity/Log/RB_User_ChangeLog.cs
View file @
5b61433d
using
System
;
using
Edu.Common.Enum.User
;
using
VT.FW.DB
;
namespace
Edu.Model.Entity.Log
...
...
@@ -47,6 +48,12 @@ namespace Edu.Model.Entity.Log
/// </summary>
public
int
Type
{
get
=>
type
;
set
=>
type
=
value
;
}
/// <summary>
/// 账号类型(1-管理端,2,-教师端,3-助教,4-学生)
/// </summary>
public
AccountTypeEnum
AccountType
{
get
;
set
;
}
/// <summary>
/// 来源id
/// </summary>
...
...
This diff is collapsed.
Click to expand it.
Edu.Module.Log/UserChangeLogModule.cs
View file @
5b61433d
using
Edu.Model.ViewModel.Log
;
using
Edu.Common.Enum.User
;
using
Edu.Model.ViewModel.Log
;
using
Edu.Repository.Log
;
using
System
;
using
System.Collections.Generic
;
...
...
@@ -41,7 +42,7 @@ namespace Edu.Module.Log
/// <param name="SchoolId">校区编号</param>
/// <param name="content">日志内容</param>
/// <returns></returns>
public
bool
SetUserChangeLogModule
(
int
CreateBy
,
int
GroupId
,
int
SchoolId
,
string
content
)
public
bool
SetUserChangeLogModule
(
int
CreateBy
,
int
GroupId
,
int
SchoolId
,
string
content
,
int
Id
,
AccountTypeEnum
accountType
)
{
RB_User_ChangeLog_ViewModel
model
=
new
RB_User_ChangeLog_ViewModel
()
{
...
...
@@ -50,7 +51,9 @@ namespace Edu.Module.Log
CreateTime
=
DateTime
.
Now
,
Group_Id
=
GroupId
,
School_Id
=
SchoolId
,
LogContent
=
content
.
TrimStart
(
','
)
LogContent
=
content
.
TrimStart
(
','
),
AccountType
=
accountType
,
SourceId
=
Id
};
return
changeLogRepository
.
Insert
(
model
)
>
0
;
}
...
...
This diff is collapsed.
Click to expand it.
Edu.Module.User/AssistModule.cs
View file @
5b61433d
...
...
@@ -173,7 +173,7 @@ namespace Edu.Module.User
if
(!
string
.
IsNullOrEmpty
(
logContent
))
{
//新增日志
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
);
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
,
model
.
AId
,
AccountTypeEnum
.
Assist
);
}
flag
=
assistRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Assist
.
AId
),
model
.
AId
));
}
...
...
@@ -181,6 +181,7 @@ namespace Edu.Module.User
{
var
newId
=
assistRepository
.
Insert
(
model
);
model
.
AId
=
newId
;
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
"新建用户"
,
newId
,
AccountTypeEnum
.
Assist
);
flag
=
newId
>
0
;
}
return
flag
;
...
...
@@ -221,7 +222,7 @@ namespace Edu.Module.User
if
(!
string
.
IsNullOrEmpty
(
logContent
))
{
//新增日志
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
);
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
,
model
.
AId
,
AccountTypeEnum
.
Assist
);
}
flag
=
assistRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Assist
.
AId
),
model
.
AId
));
}
...
...
@@ -265,7 +266,7 @@ namespace Edu.Module.User
if
(!
string
.
IsNullOrEmpty
(
logContent
))
{
//新增日志
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
);
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
,
model
.
AId
,
AccountTypeEnum
.
Assist
);
}
flag
=
assistRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Assist
.
AId
),
model
.
AId
));
}
...
...
@@ -314,7 +315,7 @@ namespace Edu.Module.User
if
(!
string
.
IsNullOrEmpty
(
logContent
))
{
//新增日志
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
);
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
,
model
.
AId
,
AccountTypeEnum
.
Assist
);
}
flag
=
assistRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Assist
.
AId
),
model
.
AId
));
}
...
...
This diff is collapsed.
Click to expand it.
Edu.Module.User/ManagerModule.cs
View file @
5b61433d
...
...
@@ -145,7 +145,7 @@ namespace Edu.Module.User
if
(!
string
.
IsNullOrEmpty
(
logContent
))
{
//新增日志
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
);
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
,
model
.
MId
,
AccountTypeEnum
.
Admin
);
}
flag
=
managerRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Manager_ViewModel
.
MId
),
model
.
MId
));
}
...
...
@@ -174,7 +174,7 @@ namespace Edu.Module.User
model
.
MId
=
newId
;
}
flag
=
newId
>
0
;
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
"新建用户"
);
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
"新建用户"
,
newId
,
AccountTypeEnum
.
Admin
);
}
return
flag
;
}
...
...
@@ -210,7 +210,7 @@ namespace Edu.Module.User
if
(!
string
.
IsNullOrEmpty
(
logContent
))
{
//新增日志
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
);
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
,
model
.
MId
,
AccountTypeEnum
.
Admin
);
}
flag
=
managerRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Manager_ViewModel
.
MId
),
model
.
MId
));
}
...
...
@@ -249,7 +249,7 @@ namespace Edu.Module.User
if
(!
string
.
IsNullOrEmpty
(
logContent
))
{
//新增日志
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
);
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
,
model
.
MId
,
AccountTypeEnum
.
Admin
);
}
flag
=
managerRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Manager_ViewModel
.
MId
),
model
.
MId
));
}
...
...
@@ -291,7 +291,7 @@ namespace Edu.Module.User
if
(!
string
.
IsNullOrEmpty
(
logContent
))
{
//新增日志
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
);
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
,
model
.
MId
,
AccountTypeEnum
.
Admin
);
}
flag
=
managerRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Manager_ViewModel
.
MId
),
model
.
MId
));
}
...
...
This diff is collapsed.
Click to expand it.
Edu.Module.User/TeacherModule.cs
View file @
5b61433d
...
...
@@ -178,7 +178,7 @@ namespace Edu.Module.User
if
(!
string
.
IsNullOrEmpty
(
logContent
))
{
//新增日志
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
);
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
,
model
.
TId
,
AccountTypeEnum
.
Teacher
);
}
flag
=
teacherRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Teacher_ViewModel
.
TId
),
model
.
TId
));
}
...
...
@@ -186,6 +186,7 @@ namespace Edu.Module.User
{
var
newId
=
teacherRepository
.
Insert
(
model
);
model
.
TId
=
newId
;
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
"新建用户"
,
newId
,
AccountTypeEnum
.
Teacher
);
flag
=
newId
>
0
;
}
return
flag
;
...
...
@@ -222,7 +223,7 @@ namespace Edu.Module.User
if
(!
string
.
IsNullOrEmpty
(
logContent
))
{
//新增日志
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
);
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
,
model
.
TId
,
AccountTypeEnum
.
Teacher
);
}
flag
=
teacherRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Teacher_ViewModel
.
TId
),
model
.
TId
));
}
...
...
@@ -267,7 +268,7 @@ namespace Edu.Module.User
if
(!
string
.
IsNullOrEmpty
(
logContent
))
{
//新增日志
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
);
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
,
model
.
TId
,
AccountTypeEnum
.
Teacher
);
}
flag
=
teacherRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Teacher_ViewModel
.
TId
),
model
.
TId
));
}
...
...
@@ -314,7 +315,7 @@ namespace Edu.Module.User
if
(!
string
.
IsNullOrEmpty
(
logContent
))
{
//新增日志
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
);
userChangeLogModule
.
SetUserChangeLogModule
(
model
.
CreateBy
,
model
.
Group_Id
,
model
.
School_Id
,
logContent
,
model
.
TId
,
AccountTypeEnum
.
Teacher
);
}
flag
=
teacherRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Teacher_ViewModel
.
TId
),
model
.
TId
));
}
...
...
This diff is collapsed.
Click to expand it.
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