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
de2faba4
Commit
de2faba4
authored
Dec 21, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a11d5223
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
0 deletions
+61
-0
StudentModule.cs
Edu.Module.User/StudentModule.cs
+12
-0
RB_StudentRepository.cs
Edu.Repository/User/RB_StudentRepository.cs
+32
-0
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+17
-0
No files found.
Edu.Module.User/StudentModule.cs
View file @
de2faba4
...
...
@@ -374,6 +374,18 @@ namespace Edu.Module.User
return
flag
;
}
/// <summary>
/// 修改客户阶段
/// </summary>
/// <param name="StuId"></param>
/// <param name="StuStage"></param>
/// <param name="Uid"></param>
/// <returns></returns>
public
bool
SetStudentStageModule
(
int
StuId
,
int
StuStage
,
int
Uid
)
{
return
studentRepository
.
SetStudentStageRepository
(
StuId
,
StuStage
,
Uid
);
}
/// <summary>
/// 获取协助人员列表
/// </summary>
...
...
Edu.Repository/User/RB_StudentRepository.cs
View file @
de2faba4
...
...
@@ -544,6 +544,38 @@ WHERE o.OrderState=1 and og.`Status`=0 and sog.`Status`=0 and og.GuestState=1 an
return
flag
;
}
/// <summary>
/// 修改客户阶段
/// </summary>
/// <param name="StuId"></param>
/// <param name="StuStage"></param>
/// <param name="Uid"></param>
/// <returns></returns>
public
bool
SetStudentStageRepository
(
int
StuId
,
int
StuStage
,
int
Uid
)
{
string
logContent
=
""
;
string
logTitle
=
""
;
bool
flag
=
false
;
var
oldModel
=
base
.
GetEntity
(
StuId
);
if
(
oldModel
!=
null
)
{
if
(
oldModel
.
StuStage
!=
StuStage
)
{
var
oldName
=
stageRepository
.
GetEntity
(
oldModel
.
StuStage
)?.
StageName
??
""
;
var
newName
=
stageRepository
.
GetEntity
(
StuStage
)?.
StageName
??
""
;
logContent
+=
string
.
Format
(
"客户阶段:由【{0}】=>【{1}】,"
,
oldName
,
newName
);
}
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Student_ViewModel
.
StuStage
),
StuStage
}
};
flag
=
base
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Student_ViewModel
.
StuId
),
StuId
));
student_LogRepository
.
AddStuLogRepository
(
oldModel
.
StuId
,
Common
.
Enum
.
Log
.
StudentLogTypeEnum
.
BasicInfo
,
logTitle
,
logContent
,
Uid
,
CreateType
:
1
);
}
return
flag
;
}
/// <summary>
/// 学员转交
/// </summary>
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
de2faba4
...
...
@@ -867,6 +867,23 @@ namespace Edu.WebApi.Controllers.User
return
flag
?
ApiResult
.
Success
(
data
:
extModel
)
:
ApiResult
.
Failed
();
}
/// <summary>
/// 修改客户阶段
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
SetStudentStage
()
{
var
StuId
=
base
.
ParmJObj
.
GetInt
(
"StuId"
);
var
StuStage
=
base
.
ParmJObj
.
GetInt
(
"StuStage"
);
if
(
StuStage
>
0
)
{
var
flag
=
studentModule
.
SetStudentStageModule
(
StuId
,
StuStage
,
base
.
UserInfo
.
Id
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
return
ApiResult
.
Failed
(
message
:
"请选择客户阶段"
);
}
/// <summary>
/// 检查学员手机号码是否存在
/// </summary>
...
...
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