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
f0fecd68
Commit
f0fecd68
authored
Dec 09, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
3b9afe43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
CustomerStudentModule.cs
Edu.Module.Customer/CustomerStudentModule.cs
+27
-0
No files found.
Edu.Module.Customer/CustomerStudentModule.cs
View file @
f0fecd68
...
...
@@ -203,6 +203,32 @@ namespace Edu.Module.Customer
string
logContent
=
""
;
if
(
model
.
Id
>
0
)
{
var
oldModel
=
GetStudentVisitModule
(
model
.
Id
);
logContent
=
"修改到访"
;
if
(
oldModel
.
School_Id
!=
model
.
School_Id
)
{
logContent
+=
string
.
Format
(
"校区由{0}=>{1},"
,
oldModel
.
School_Id
,
model
.
School_Id
);
}
if
(
oldModel
.
Date
!=
model
.
Date
)
{
logContent
+=
string
.
Format
(
"日期由{0}=>{1},"
,
Common
.
ConvertHelper
.
FormatDate
(
oldModel
.
Date
),
Common
.
ConvertHelper
.
FormatDate
(
model
.
Date
));
}
if
(
oldModel
.
VisitTime
!=
model
.
VisitTime
)
{
logContent
+=
string
.
Format
(
"到访时间由{0}=>{1},"
,
oldModel
.
VisitTime
,
model
.
VisitTime
);
}
if
(
oldModel
.
ReceptionPersion
!=
model
.
ReceptionPersion
)
{
logContent
+=
string
.
Format
(
"接待人由{0}=>{1},"
,
oldModel
.
ReceptionPersion
,
model
.
ReceptionPersion
);
}
if
(
oldModel
.
Remark
!=
model
.
Remark
)
{
logContent
+=
string
.
Format
(
"备注由{0}=>{1},"
,
oldModel
.
Remark
,
model
.
Remark
);
}
if
(
oldModel
.
Feedback
!=
model
.
Feedback
)
{
logContent
+=
string
.
Format
(
"反馈信息由{0}=>{1},"
,
oldModel
.
Feedback
,
model
.
Feedback
);
}
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Student_Visit_Extend
.
School_Id
),
model
.
School_Id
},
...
...
@@ -219,6 +245,7 @@ namespace Edu.Module.Customer
var
newId
=
student_VisitRepository
.
Insert
(
model
);
model
.
Id
=
newId
;
flag
=
newId
>
0
;
logContent
=
"新增到访"
;
}
student_LogRepository
.
AddStuLogRepository
(
model
.
StuId
,
Common
.
Enum
.
Log
.
StudentLogTypeEnum
.
Visit
,
logContent
,
model
.
CreateBy
);
return
flag
;
...
...
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