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
35a40709
Commit
35a40709
authored
Feb 15, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
0b535b42
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
RB_Student_ViewModel.cs
Edu.Model/ViewModel/User/RB_Student_ViewModel.cs
+5
-0
RB_StudentRepository.cs
Edu.Repository/User/RB_StudentRepository.cs
+15
-1
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+2
-0
No files found.
Edu.Model/ViewModel/User/RB_Student_ViewModel.cs
View file @
35a40709
...
...
@@ -390,5 +390,10 @@ namespace Edu.Model.ViewModel.User
/// 课程顾问跟进信息列表
/// </summary>
public
List
<
RB_Student_Advisor_Extend
>
AdvisorList
{
get
;
set
;
}
/// <summary>
/// 客户状态(1-有效,2-无效)
/// </summary>
public
int
QStudentStatus
{
get
;
set
;
}
}
}
\ No newline at end of file
Edu.Repository/User/RB_StudentRepository.cs
View file @
35a40709
...
...
@@ -323,7 +323,7 @@ WHERE 1=1
}
if
(
query
.
StuStage
>
0
)
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
StuStage
),
(
int
)
query
.
StuStage
);
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
StuStage
),
query
.
StuStage
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
StartTime
))
{
...
...
@@ -398,6 +398,20 @@ WHERE 1=1
{
builder
.
AppendFormat
(
" AND C.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
CategoryId
),
query
.
CategoryId
);
}
if
(
query
.
AdvisorStatus
>
0
)
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
AdvisorStatus
),
query
.
AdvisorStatus
);
}
//有效客户
if
(
query
.
QStudentStatus
==
1
)
{
builder
.
AppendFormat
(
" AND t.{0}<>{1} "
,
nameof
(
RB_Student_ViewModel
.
StuStage
),
7
);
}
//无效客户
if
(
query
.
QStudentStatus
==
2
)
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
StuStage
),
7
);
}
}
builder
.
AppendFormat
(
" ORDER BY t.{0} DESC "
,
nameof
(
RB_Student_ViewModel
.
StuId
));
return
GetPage
<
RB_Student_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
(),
parameters
).
ToList
();
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
35a40709
...
...
@@ -680,6 +680,8 @@ namespace Edu.WebApi.Controllers.User
StuType
=
base
.
ParmJObj
.
GetInt
(
"StuType"
),
ExistCourseConsultant
=
base
.
ParmJObj
.
GetInt
(
"ExistCourseConsultant"
),
CategoryId
=
base
.
ParmJObj
.
GetInt
(
"CategoryId"
),
QStudentStatus
=
base
.
ParmJObj
.
GetInt
(
"QStudentStatus"
),
AdvisorStatus
=
base
.
ParmJObj
.
GetInt
(
"AdvisorStatus"
),
};
if
(
query
.
IsQueryMyStu
==
1
)
{
...
...
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