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
147924e0
Commit
147924e0
authored
Dec 09, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询修改
parent
f0fecd68
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
85 additions
and
6 deletions
+85
-6
CustomerStudentModule.cs
Edu.Module.Customer/CustomerStudentModule.cs
+15
-0
RB_Student_AppointmentRepository.cs
Edu.Repository/Customer/RB_Student_AppointmentRepository.cs
+15
-1
RB_Student_FollowRepository.cs
Edu.Repository/Customer/RB_Student_FollowRepository.cs
+15
-2
RB_Student_VisitRepository.cs
Edu.Repository/Customer/RB_Student_VisitRepository.cs
+13
-3
CustomerStudentController.cs
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
+27
-0
No files found.
Edu.Module.Customer/CustomerStudentModule.cs
View file @
147924e0
...
@@ -276,5 +276,20 @@ namespace Edu.Module.Customer
...
@@ -276,5 +276,20 @@ namespace Edu.Module.Customer
return
student_VisitRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Student_Visit_Extend
.
Id
),
Id
));
return
student_VisitRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Student_Visit_Extend
.
Id
),
Id
));
}
}
#
endregion
#
endregion
/// <summary>
/// 获取学员日志分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Student_Log_Extend
>
GetStudentLogPageModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Student_Log_Extend
query
)
{
var
list
=
student_LogRepository
.
GetStudentLogPageRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
return
list
;
}
}
}
}
}
Edu.Repository/Customer/RB_Student_AppointmentRepository.cs
View file @
147924e0
using
Edu.Model.Entity.Customer
;
using
Edu.Common.Enum
;
using
Edu.Model.Entity.Customer
;
using
Edu.Model.ViewModel.Customer
;
using
Edu.Model.ViewModel.Customer
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
...
@@ -28,6 +29,19 @@ SELECT A.*
...
@@ -28,6 +29,19 @@ SELECT A.*
FROM RB_Student_Appointment AS A
FROM RB_Student_Appointment AS A
WHERE 1=1
WHERE 1=1
"
);
"
);
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Student_Appointment_Extend
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
if
(
query
!=
null
)
{
if
(
query
.
Group_Id
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Student_Appointment_Extend
.
Group_Id
),
query
.
Group_Id
);
}
if
(
query
.
StuId
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Student_Appointment_Extend
.
StuId
),
query
.
StuId
);
}
}
builder
.
AppendFormat
(
" ORDER BY A.{0} DESC "
,
nameof
(
RB_Student_Appointment_Extend
.
Id
));
return
GetPage
<
RB_Student_Appointment_Extend
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
return
GetPage
<
RB_Student_Appointment_Extend
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
}
}
...
...
Edu.Repository/Customer/RB_Student_FollowRepository.cs
View file @
147924e0
using
Edu.Model.Entity.Customer
;
using
Edu.Common.Enum
;
using
Edu.Model.Entity.Customer
;
using
Edu.Model.ViewModel.Customer
;
using
Edu.Model.ViewModel.Customer
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
...
@@ -28,7 +29,19 @@ SELECT A.*
...
@@ -28,7 +29,19 @@ SELECT A.*
FROM RB_Student_Follow AS A
FROM RB_Student_Follow AS A
WHERE 1=1
WHERE 1=1
"
);
"
);
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Student_Follow_Extend
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
if
(
query
!=
null
)
{
if
(
query
.
Group_Id
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Student_Follow_Extend
.
Group_Id
),
query
.
Group_Id
);
}
if
(
query
.
StuId
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Student_Follow_Extend
.
StuId
),
query
.
StuId
);
}
}
builder
.
AppendFormat
(
" ORDER BY A.{0} DESC "
,
nameof
(
RB_Student_Follow_Extend
.
Id
));
return
GetPage
<
RB_Student_Follow_Extend
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
return
GetPage
<
RB_Student_Follow_Extend
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
}
}
}
}
...
...
Edu.Repository/Customer/RB_Student_VisitRepository.cs
View file @
147924e0
using
Edu.Model.Entity.Customer
;
using
Edu.Common.Enum
;
using
Edu.Model.Entity.Customer
;
using
Edu.Model.ViewModel.Customer
;
using
Edu.Model.ViewModel.Customer
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
...
@@ -28,10 +29,19 @@ SELECT A.*
...
@@ -28,10 +29,19 @@ SELECT A.*
FROM RB_Student_Visit AS A
FROM RB_Student_Visit AS A
WHERE 1=1
WHERE 1=1
"
);
"
);
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Student_Visit_Extend
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
if
(
query
!=
null
)
if
(
query
!=
null
)
{
{
if
(
query
.
Group_Id
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Student_Visit_Extend
.
Group_Id
),
query
.
Group_Id
);
}
if
(
query
.
StuId
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Student_Visit_Extend
.
StuId
),
query
.
StuId
);
}
}
}
builder
.
AppendFormat
(
" ORDER BY A.{0} DESC "
,
nameof
(
RB_Student_Visit_Extend
.
Id
));
return
GetPage
<
RB_Student_Visit_Extend
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
return
GetPage
<
RB_Student_Visit_Extend
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
}
}
}
}
...
...
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
View file @
147924e0
...
@@ -248,5 +248,32 @@ namespace Edu.WebApi.Controllers.Customer
...
@@ -248,5 +248,32 @@ namespace Edu.WebApi.Controllers.Customer
var
model
=
customerStudentModule
.
RemoveStudentVisitModule
(
Id
);
var
model
=
customerStudentModule
.
RemoveStudentVisitModule
(
Id
);
return
ApiResult
.
Success
(
data
:
model
);
return
ApiResult
.
Success
(
data
:
model
);
}
}
/// <summary>
/// 获取学员日志分页列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetStudentLogPage
()
{
var
pageModel
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
Msg
.
ToString
());
var
query
=
new
RB_Student_Log_Extend
()
{
StuId
=
base
.
ParmJObj
.
GetInt
(
"StuId"
),
};
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
var
list
=
customerStudentModule
.
GetStudentLogPageModule
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
foreach
(
var
item
in
list
)
{
if
(
item
.
CreateBy
>
0
)
{
// item.CreateByName = UserReidsCache.GetUserLoginInfo(item.CreateBy)?.AccountName ?? "";
}
}
pageModel
.
Count
=
rowsCount
;
pageModel
.
PageData
=
list
;
return
ApiResult
.
Success
(
data
:
pageModel
);
}
}
}
}
}
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