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
a74cd15e
Commit
a74cd15e
authored
Dec 09, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
38c97629
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
4 deletions
+42
-4
RB_Student_Visit_Extend.cs
Edu.Model/ViewModel/Customer/RB_Student_Visit_Extend.cs
+9
-0
CustomerStudentModule.cs
Edu.Module.Customer/CustomerStudentModule.cs
+19
-1
CustomerStudentController.cs
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
+14
-3
No files found.
Edu.Model/ViewModel/Customer/RB_Student_Visit_Extend.cs
View file @
a74cd15e
...
@@ -10,5 +10,14 @@ namespace Edu.Model.ViewModel.Customer
...
@@ -10,5 +10,14 @@ namespace Edu.Model.ViewModel.Customer
/// </summary>
/// </summary>
public
class
RB_Student_Visit_Extend
:
RB_Student_Visit
public
class
RB_Student_Visit_Extend
:
RB_Student_Visit
{
{
/// <summary>
/// 校区名称
/// </summary>
public
string
SchoolName
{
get
;
set
;
}
/// <summary>
/// 接待人姓名
/// </summary>
public
string
ReceptionPersionName
{
get
;
set
;
}
}
}
}
}
Edu.Module.Customer/CustomerStudentModule.cs
View file @
a74cd15e
...
@@ -235,7 +235,25 @@ namespace Edu.Module.Customer
...
@@ -235,7 +235,25 @@ namespace Edu.Module.Customer
/// <returns></returns>
/// <returns></returns>
public
List
<
RB_Student_Visit_Extend
>
GetStudentVisitPageModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Student_Visit_Extend
query
)
public
List
<
RB_Student_Visit_Extend
>
GetStudentVisitPageModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Student_Visit_Extend
query
)
{
{
return
student_VisitRepository
.
GetStudentVisitPageRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
var
list
=
student_VisitRepository
.
GetStudentVisitPageRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
if
(
list
!=
null
&&
list
.
Count
>
0
)
{
string
sids
=
string
.
Join
(
","
,
list
.
Select
(
qitem
=>
qitem
.
School_Id
));
string
empIds
=
string
.
Join
(
","
,
list
.
Select
(
qitem
=>
qitem
.
ReceptionPersion
));
var
schoolList
=
schoolRepository
.
GetSchoolListRepository
(
new
Model
.
ViewModel
.
User
.
RB_School_ViewModel
()
{
QSIds
=
sids
});
var
empList
=
accountRepository
.
GetEmployeeListRepository
(
new
Model
.
ViewModel
.
User
.
Employee_ViewModel
()
{
QIds
=
empIds
});
foreach
(
var
item
in
list
)
{
item
.
SchoolName
=
schoolList
?.
FirstOrDefault
(
qitem
=>
qitem
.
SId
==
item
.
School_Id
)?.
SName
??
""
;
item
.
ReceptionPersionName
=
empList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
ReceptionPersion
)?.
EmployeeName
??
""
;
}
}
return
list
;
}
}
/// <summary>
/// <summary>
...
...
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
View file @
a74cd15e
...
@@ -185,13 +185,24 @@ namespace Edu.WebApi.Controllers.Customer
...
@@ -185,13 +185,24 @@ namespace Edu.WebApi.Controllers.Customer
StuId
=
base
.
ParmJObj
.
GetInt
(
"StuId"
),
StuId
=
base
.
ParmJObj
.
GetInt
(
"StuId"
),
};
};
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
var
list
=
customerStudentModule
.
GetStudentVisitPageModule
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
var
data
=
customerStudentModule
.
GetStudentVisitPageModule
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
foreach
(
var
item
in
list
)
List
<
object
>
list
=
new
List
<
object
>();
foreach
(
var
item
in
data
)
{
{
string
CreateByName
=
""
;
if
(
item
.
CreateBy
>
0
)
if
(
item
.
CreateBy
>
0
)
{
{
// item.
CreateByName = UserReidsCache.GetUserLoginInfo(item.CreateBy)?.AccountName ?? "";
CreateByName
=
UserReidsCache
.
GetUserLoginInfo
(
item
.
CreateBy
)?.
AccountName
??
""
;
}
}
list
.
Add
(
new
{
item
.
SchoolName
,
item
.
ReceptionPersionName
,
item
.
Remark
,
item
.
Feedback
,
CreateTime
=
Common
.
ConvertHelper
.
FormatTimeStr2
(
item
.
CreateTime
),
CreateByName
,
});
}
}
pageModel
.
Count
=
rowsCount
;
pageModel
.
Count
=
rowsCount
;
pageModel
.
PageData
=
list
;
pageModel
.
PageData
=
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