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
b96b8d54
Commit
b96b8d54
authored
Aug 27, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增留学客户资料列表
parent
77aab2ac
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
114 additions
and
100 deletions
+114
-100
RB_Order_Guest.cs
Edu.Model/Entity/Sell/RB_Order_Guest.cs
+1
-1
RB_Student.cs
Edu.Model/Entity/User/RB_Student.cs
+6
-1
StudentFollowStatic.cs
Edu.Model/ViewModel/DataStatistics/StudentFollowStatic.cs
+1
-1
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+43
-41
OrderModule2.cs
Edu.Module.Course/OrderModule2.cs
+1
-1
CustomerStudentModule.cs
Edu.Module.Customer/CustomerStudentModule.cs
+16
-16
StudentModule.cs
Edu.Module.User/StudentModule.cs
+9
-8
StudentStatModule.cs
Edu.Module.User/StudentStatModule.cs
+6
-6
RB_StudentRepository.cs
Edu.Repository/User/RB_StudentRepository.cs
+18
-15
RB_Student_OrderGuestRepository.cs
Edu.Repository/User/RB_Student_OrderGuestRepository.cs
+2
-2
OrderController.cs
Edu.WebApi/Controllers/Course/OrderController.cs
+1
-1
CustomerStudentController.cs
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
+1
-1
StudentStatController.cs
Edu.WebApi/Controllers/User/StudentStatController.cs
+2
-2
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+7
-4
No files found.
Edu.Model/Entity/Sell/RB_Order_Guest.cs
View file @
b96b8d54
...
@@ -75,7 +75,7 @@ namespace Edu.Model.Entity.Sell
...
@@ -75,7 +75,7 @@ namespace Edu.Model.Entity.Sell
/// <summary>
/// <summary>
/// 学习目的
/// 学习目的
/// </summary>
/// </summary>
public
int
LearningGoals
{
get
;
set
;
}
public
string
LearningGoals
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 联系人
/// 联系人
...
...
Edu.Model/Entity/User/RB_Student.cs
View file @
b96b8d54
...
@@ -135,7 +135,12 @@ namespace Edu.Model.Entity.User
...
@@ -135,7 +135,12 @@ namespace Edu.Model.Entity.User
/// <summary>
/// <summary>
/// 学习目的
/// 学习目的
/// </summary>
/// </summary>
public
int
StuPurpose
{
get
;
set
;
}
public
string
StuPurpose
{
get
;
set
;
}
/// <summary>
/// 客户类型,1-普通客户,2-会员客户
/// </summary>
public
int
StudentType
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 客人来源 (启用 +》 CreateType)
/// 客人来源 (启用 +》 CreateType)
...
...
Edu.Model/ViewModel/DataStatistics/StudentFollowStatic.cs
View file @
b96b8d54
...
@@ -169,7 +169,7 @@ namespace Edu.Model.ViewModel.DataStatistics
...
@@ -169,7 +169,7 @@ namespace Edu.Model.ViewModel.DataStatistics
/// <summary>
/// <summary>
/// 学习目的
/// 学习目的
/// </summary>
/// </summary>
public
int
StuPurpose
{
get
;
set
;
}
public
string
StuPurpose
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 学习目的名称
/// 学习目的名称
...
...
Edu.Module.Course/OrderModule.cs
View file @
b96b8d54
This diff is collapsed.
Click to expand it.
Edu.Module.Course/OrderModule2.cs
View file @
b96b8d54
...
@@ -438,7 +438,7 @@ namespace Edu.Module.Course
...
@@ -438,7 +438,7 @@ namespace Edu.Module.Course
Basics
=
""
,
Basics
=
""
,
Education
=
item
?.
StuEducation
??
GuestEducationEnum
.
N2
,
Education
=
item
?.
StuEducation
??
GuestEducationEnum
.
N2
,
GuestSource
=
orderModel
.
OrderSource
,
GuestSource
=
orderModel
.
OrderSource
,
LearningGoals
=
item
?.
StuPurpose
??
0
,
LearningGoals
=
item
?.
StuPurpose
??
""
,
Contact
=
item
?.
StuContract
??
""
,
Contact
=
item
?.
StuContract
??
""
,
ContactMobile
=
item
?.
StuContractMobile
??
""
,
ContactMobile
=
item
?.
StuContractMobile
??
""
,
Status
=
0
,
Status
=
0
,
...
...
Edu.Module.Customer/CustomerStudentModule.cs
View file @
b96b8d54
...
@@ -273,7 +273,7 @@ namespace Edu.Module.Customer
...
@@ -273,7 +273,7 @@ namespace Edu.Module.Customer
/// <returns></returns>
/// <returns></returns>
public
List
<
RB_Student_Follow_Extend
>
GetStudentFollowPageModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Student_Follow_Extend
query
)
public
List
<
RB_Student_Follow_Extend
>
GetStudentFollowPageModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Student_Follow_Extend
query
)
{
{
var
list
=
student_FollowRepository
.
GetStudentFollowPageRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
var
list
=
student_FollowRepository
.
GetStudentFollowPageRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
if
(
list
!=
null
&&
list
.
Count
>
0
)
if
(
list
!=
null
&&
list
.
Count
>
0
)
{
{
List
<
int
>
courseIdList
=
new
List
<
int
>();
List
<
int
>
courseIdList
=
new
List
<
int
>();
...
@@ -287,7 +287,7 @@ namespace Edu.Module.Customer
...
@@ -287,7 +287,7 @@ namespace Edu.Module.Customer
}
}
List
<
Model
.
ViewModel
.
Course
.
RB_Course_ViewModel
>
courseList
=
new
List
<
Model
.
ViewModel
.
Course
.
RB_Course_ViewModel
>();
List
<
Model
.
ViewModel
.
Course
.
RB_Course_ViewModel
>
courseList
=
new
List
<
Model
.
ViewModel
.
Course
.
RB_Course_ViewModel
>();
List
<
RB_Student_Config_Extend
>
configList
=
GetStudentConfigListModule
();
List
<
RB_Student_Config_Extend
>
configList
=
GetStudentConfigListModule
();
if
(
courseIdList
!=
null
&&
courseIdList
.
Count
>
0
)
if
(
courseIdList
!=
null
&&
courseIdList
.
Count
>
0
)
{
{
string
qCourseIds
=
string
.
Join
(
","
,
courseIdList
);
string
qCourseIds
=
string
.
Join
(
","
,
courseIdList
);
courseList
=
GetCourseListModule
(
qCourseIds
);
courseList
=
GetCourseListModule
(
qCourseIds
);
...
@@ -360,12 +360,12 @@ namespace Edu.Module.Customer
...
@@ -360,12 +360,12 @@ namespace Edu.Module.Customer
if
(
oldModel
.
ConsultCourseIds
!=
model
.
ConsultCourseIds
)
if
(
oldModel
.
ConsultCourseIds
!=
model
.
ConsultCourseIds
)
{
{
List
<
int
>
courseIdList
=
new
List
<
int
>();
List
<
int
>
courseIdList
=
new
List
<
int
>();
var
tempOldList
=
Common
.
ConvertHelper
.
StringToList
(
oldModel
.
ConsultCourseIds
);
var
tempOldList
=
Common
.
ConvertHelper
.
StringToList
(
oldModel
.
ConsultCourseIds
);
if
(
tempOldList
!=
null
&&
tempOldList
.
Count
>
0
)
if
(
tempOldList
!=
null
&&
tempOldList
.
Count
>
0
)
{
{
courseIdList
.
AddRange
(
tempOldList
);
courseIdList
.
AddRange
(
tempOldList
);
}
}
var
tempNewList
=
Common
.
ConvertHelper
.
StringToList
(
model
.
ConsultCourseIds
);
var
tempNewList
=
Common
.
ConvertHelper
.
StringToList
(
model
.
ConsultCourseIds
);
if
(
tempNewList
!=
null
&&
tempNewList
.
Count
>
0
)
if
(
tempNewList
!=
null
&&
tempNewList
.
Count
>
0
)
{
{
courseIdList
.
AddRange
(
tempNewList
);
courseIdList
.
AddRange
(
tempNewList
);
...
@@ -377,7 +377,7 @@ namespace Edu.Module.Customer
...
@@ -377,7 +377,7 @@ namespace Edu.Module.Customer
var
courseList
=
GetCourseListModule
(
string
.
Join
(
","
,
courseIdList
));
var
courseList
=
GetCourseListModule
(
string
.
Join
(
","
,
courseIdList
));
foreach
(
var
item
in
tempOldList
)
foreach
(
var
item
in
tempOldList
)
{
{
oldCourseName
+=
"、"
+
courseList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CourseId
==
item
)?.
CourseName
??
""
;
oldCourseName
+=
"、"
+
courseList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CourseId
==
item
)?.
CourseName
??
""
;
}
}
foreach
(
var
item
in
tempNewList
)
foreach
(
var
item
in
tempNewList
)
{
{
...
@@ -399,7 +399,7 @@ namespace Edu.Module.Customer
...
@@ -399,7 +399,7 @@ namespace Edu.Module.Customer
}
}
if
(
Common
.
ConvertHelper
.
FormatDate
(
oldModel
.
NextVisitDate
)
!=
Common
.
ConvertHelper
.
FormatDate
(
model
.
NextVisitDate
))
if
(
Common
.
ConvertHelper
.
FormatDate
(
oldModel
.
NextVisitDate
)
!=
Common
.
ConvertHelper
.
FormatDate
(
model
.
NextVisitDate
))
{
{
logContent
+=
string
.
Format
(
"下次回访时间:由【{0}】=>【{1}】"
,
Common
.
ConvertHelper
.
FormatDate
(
oldModel
.
NextVisitDate
),
Common
.
ConvertHelper
.
FormatDate
(
model
.
NextVisitDate
));
logContent
+=
string
.
Format
(
"下次回访时间:由【{0}】=>【{1}】"
,
Common
.
ConvertHelper
.
FormatDate
(
oldModel
.
NextVisitDate
),
Common
.
ConvertHelper
.
FormatDate
(
model
.
NextVisitDate
));
}
}
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
...
@@ -481,7 +481,7 @@ namespace Edu.Module.Customer
...
@@ -481,7 +481,7 @@ namespace Edu.Module.Customer
/// </summary>
/// </summary>
/// <param name="model"></param>
/// <param name="model"></param>
/// <returns></returns>
/// <returns></returns>
public
bool
SetStudentBaseInfoModule
(
RB_Student_Follow_Extend
model
,
string
StuProfession
,
int
StuPurpose
)
public
bool
SetStudentBaseInfoModule
(
RB_Student_Follow_Extend
model
,
string
StuProfession
,
string
StuPurpose
)
{
{
bool
flag
=
false
;
bool
flag
=
false
;
string
logContent
=
""
;
string
logContent
=
""
;
...
@@ -578,8 +578,8 @@ namespace Edu.Module.Customer
...
@@ -578,8 +578,8 @@ namespace Edu.Module.Customer
var
oldModel
=
studentRepository
.
GetEntity
<
RB_Student_ViewModel
>(
model
.
StuId
);
var
oldModel
=
studentRepository
.
GetEntity
<
RB_Student_ViewModel
>(
model
.
StuId
);
if
(
oldModel
.
StuPurpose
!=
StuPurpose
)
if
(
oldModel
.
StuPurpose
!=
StuPurpose
)
{
{
string
oldName
=
learningGoalsRepository
.
GetLearningGoalsExtEntityRepository
(
oldModel
.
StuPurpose
)?.
Name
??
""
;
string
oldName
=
!
string
.
IsNullOrWhiteSpace
(
oldModel
.
StuPurpose
)?(
string
.
Join
(
","
,
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
RB_LearningGoals_Extend
{
QGoalIds
=
oldModel
.
StuPurpose
})?.
Select
(
x
=>
x
.
Name
))
??
""
):
""
;
string
newName
=
learningGoalsRepository
.
GetLearningGoalsExtEntityRepository
(
StuPurpose
)?.
Name
??
""
;
string
newName
=
!
string
.
IsNullOrWhiteSpace
(
StuPurpose
)
?
(
string
.
Join
(
","
,
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
RB_LearningGoals_Extend
{
QGoalIds
=
StuPurpose
})?.
Select
(
x
=>
x
.
Name
))
??
""
):
""
;
logContent
+=
string
.
Format
(
"学习目的:由【{0}】=>【{1}】,"
,
oldName
,
newName
);
logContent
+=
string
.
Format
(
"学习目的:由【{0}】=>【{1}】,"
,
oldName
,
newName
);
}
}
if
(
oldModel
.
StuProfession
!=
StuProfession
)
if
(
oldModel
.
StuProfession
!=
StuProfession
)
...
@@ -1702,7 +1702,7 @@ namespace Edu.Module.Customer
...
@@ -1702,7 +1702,7 @@ namespace Edu.Module.Customer
{
{
List
<
int
>
empIdList
=
new
List
<
int
>();
List
<
int
>
empIdList
=
new
List
<
int
>();
var
tempCreateByList
=
list
.
Select
(
qitem
=>
qitem
.
CreateBy
);
var
tempCreateByList
=
list
.
Select
(
qitem
=>
qitem
.
CreateBy
);
if
(
tempCreateByList
!=
null
&&
tempCreateByList
.
Count
()
>
0
)
if
(
tempCreateByList
!=
null
&&
tempCreateByList
.
Count
()
>
0
)
{
{
empIdList
.
AddRange
(
tempCreateByList
);
empIdList
.
AddRange
(
tempCreateByList
);
}
}
...
@@ -1712,9 +1712,9 @@ namespace Edu.Module.Customer
...
@@ -1712,9 +1712,9 @@ namespace Edu.Module.Customer
empIdList
.
AddRange
(
tempStuCreateByList
);
empIdList
.
AddRange
(
tempStuCreateByList
);
}
}
List
<
Employee_ViewModel
>
empList
=
new
List
<
Employee_ViewModel
>();
List
<
Employee_ViewModel
>
empList
=
new
List
<
Employee_ViewModel
>();
if
(
empIdList
.
Count
()
>
0
)
if
(
empIdList
.
Count
()
>
0
)
{
{
empList
=
accountRepository
.
GetEmployeeListRepository
(
new
Employee_ViewModel
()
{
QIds
=
string
.
Join
(
","
,
empIdList
)
});
empList
=
accountRepository
.
GetEmployeeListRepository
(
new
Employee_ViewModel
()
{
QIds
=
string
.
Join
(
","
,
empIdList
)
});
}
}
foreach
(
var
item
in
list
)
foreach
(
var
item
in
list
)
...
...
Edu.Module.User/StudentModule.cs
View file @
b96b8d54
...
@@ -16,6 +16,7 @@ using Edu.Repository.Reserve;
...
@@ -16,6 +16,7 @@ using Edu.Repository.Reserve;
using
Edu.Repository.Sell
;
using
Edu.Repository.Sell
;
using
Edu.Repository.System
;
using
Edu.Repository.System
;
using
Edu.Repository.User
;
using
Edu.Repository.User
;
using
Senparc.CO2NET.Extensions
;
using
Senparc.Weixin.Annotations
;
using
Senparc.Weixin.Annotations
;
using
Senparc.Weixin.MP.AdvancedAPIs
;
using
Senparc.Weixin.MP.AdvancedAPIs
;
using
System
;
using
System
;
...
@@ -294,7 +295,7 @@ namespace Edu.Module.User
...
@@ -294,7 +295,7 @@ namespace Edu.Module.User
}
}
//学习目的
//学习目的
string
goalIds
=
string
.
Join
(
","
,
list
.
Select
(
qitem
=>
qitem
.
StuPurpose
));
string
goalIds
=
string
.
Join
(
","
,
list
?.
Where
(
qitem
=>
!
string
.
IsNullOrWhiteSpace
(
qitem
.
StuPurpose
))?
.
Select
(
qitem
=>
qitem
.
StuPurpose
));
var
goalList
=
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
Model
.
ViewModel
.
System
.
RB_LearningGoals_Extend
()
var
goalList
=
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
Model
.
ViewModel
.
System
.
RB_LearningGoals_Extend
()
{
{
QGoalIds
=
goalIds
QGoalIds
=
goalIds
...
@@ -369,7 +370,7 @@ namespace Edu.Module.User
...
@@ -369,7 +370,7 @@ namespace Edu.Module.User
item
.
StuStageName
=
stageList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuStage
)?.
StageName
??
""
;
item
.
StuStageName
=
stageList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuStage
)?.
StageName
??
""
;
item
.
StuTypeName
=
stuTypeList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuType
)?.
Name
??
""
;
item
.
StuTypeName
=
stuTypeList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuType
)?.
Name
??
""
;
item
.
StuChannelName
=
channelList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuChannel
)?.
Name
??
""
;
item
.
StuChannelName
=
channelList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuChannel
)?.
Name
??
""
;
item
.
StuPurposeName
=
goalList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuPurpose
)?.
Name
??
""
;
item
.
StuPurposeName
=
!
string
.
IsNullOrWhiteSpace
(
item
.
StuPurpose
)?(
string
.
Join
(
","
,
goalList
?.
Where
(
qitem
=>
item
.
StuPurpose
.
Contains
(
qitem
.
Id
.
ToString
()))?.
Select
(
x
=>
x
.
Name
))
??
""
):
""
;
item
.
StuNeedsName
=
needList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuNeeds
)?.
Name
??
""
;
item
.
StuNeedsName
=
needList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuNeeds
)?.
Name
??
""
;
item
.
AdvisorList
=
advisorList
?.
Where
(
qitem
=>
qitem
.
StuId
==
item
.
StuId
)?.
ToList
()
??
new
List
<
RB_Student_Advisor_Extend
>();
item
.
AdvisorList
=
advisorList
?.
Where
(
qitem
=>
qitem
.
StuId
==
item
.
StuId
)?.
ToList
()
??
new
List
<
RB_Student_Advisor_Extend
>();
item
.
CreateByName
=
accountList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
CreateBy
)?.
AccountName
??
""
;
item
.
CreateByName
=
accountList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
CreateBy
)?.
AccountName
??
""
;
...
@@ -534,7 +535,7 @@ namespace Edu.Module.User
...
@@ -534,7 +535,7 @@ namespace Edu.Module.User
extModel
.
AssistList
=
assistList
;
extModel
.
AssistList
=
assistList
;
extModel
.
StuStageName
=
stageRepository
.
GetEntity
(
extModel
.
StuStage
)?.
StageName
??
""
;
extModel
.
StuStageName
=
stageRepository
.
GetEntity
(
extModel
.
StuStage
)?.
StageName
??
""
;
extModel
.
StuTypeName
=
student_TypeRepository
.
GetEntity
(
extModel
.
StuType
)?.
Name
??
""
;
extModel
.
StuTypeName
=
student_TypeRepository
.
GetEntity
(
extModel
.
StuType
)?.
Name
??
""
;
extModel
.
StuPurposeName
=
learningGoalsRepository
.
GetLearningGoalsExtEntityRepository
(
extModel
.
StuPurpose
)?.
Name
??
""
;
extModel
.
StuPurposeName
=
!
string
.
IsNullOrWhiteSpace
(
extModel
.
StuPurpose
)?(
string
.
Join
(
","
,
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
Model
.
ViewModel
.
System
.
RB_LearningGoals_Extend
{
QGoalIds
=
extModel
.
StuPurpose
}).
Select
(
x
=>
x
.
Name
))
??
""
):
""
;
extModel
.
StuChannelName
=
channelRepository
.
GetChannelExtEntityRepository
(
extModel
.
StuChannel
)?.
Name
??
""
;
extModel
.
StuChannelName
=
channelRepository
.
GetChannelExtEntityRepository
(
extModel
.
StuChannel
)?.
Name
??
""
;
extModel
.
StuNeedsName
=
needsRepository
.
GetNeedsExtEntityRepository
(
extModel
.
StuNeeds
)?.
Name
??
""
;
extModel
.
StuNeedsName
=
needsRepository
.
GetNeedsExtEntityRepository
(
extModel
.
StuNeeds
)?.
Name
??
""
;
//if (extModel.CustomerId > 0)
//if (extModel.CustomerId > 0)
...
@@ -756,7 +757,7 @@ namespace Edu.Module.User
...
@@ -756,7 +757,7 @@ namespace Edu.Module.User
Id
=
model
.
CreateBy
Id
=
model
.
CreateBy
})?.
FirstOrDefault
()?.
AccountName
??
""
;
})?.
FirstOrDefault
()?.
AccountName
??
""
;
string
markdownContent
=
$"`同业查重通知` \n>**概要信息** \n>同业名称:
{
customerModel
?.
CustomerName
??
""
}
(
{
customerModel
?.
ContactNumber
??
""
}
)\n>查询内容:
{
searchContent
}
\n>关联学员:
{
model
.
StuName
}
\n>"
;
string
markdownContent
=
$"`同业查重通知` \n>**概要信息** \n>同业名称:
{
customerModel
?.
CustomerName
??
""
}
(
{
customerModel
?.
ContactNumber
??
""
}
)\n>查询内容:
{
searchContent
}
\n>关联学员:
{
model
.
StuName
}
\n>"
;
markdownContent
+=
$"关联同事:
{
createByName
}
\n> "
;
markdownContent
+=
$"关联同事:
{
createByName
}
\n> "
;
Common
.
Message
.
PushMessageModel
modelWork
=
new
Common
.
Message
.
PushMessageModel
()
Common
.
Message
.
PushMessageModel
modelWork
=
new
Common
.
Message
.
PushMessageModel
()
{
{
CategoryId
=
PushMessageCategoryEnum
.
B2BCustomerStu
,
CategoryId
=
PushMessageCategoryEnum
.
B2BCustomerStu
,
...
@@ -2305,7 +2306,7 @@ namespace Edu.Module.User
...
@@ -2305,7 +2306,7 @@ namespace Edu.Module.User
}
}
//学习目的
//学习目的
string
goalIds
=
string
.
Join
(
","
,
list
.
Select
(
qitem
=>
qitem
.
StuPurpose
));
string
goalIds
=
string
.
Join
(
","
,
list
?.
Where
(
qitem
=>
!
string
.
IsNullOrWhiteSpace
(
qitem
.
StuPurpose
))?
.
Select
(
qitem
=>
qitem
.
StuPurpose
));
var
goalList
=
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
Model
.
ViewModel
.
System
.
RB_LearningGoals_Extend
()
var
goalList
=
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
Model
.
ViewModel
.
System
.
RB_LearningGoals_Extend
()
{
{
QGoalIds
=
goalIds
QGoalIds
=
goalIds
...
@@ -2362,7 +2363,7 @@ namespace Edu.Module.User
...
@@ -2362,7 +2363,7 @@ namespace Edu.Module.User
item
.
StuStageName
=
stageList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuStage
)?.
StageName
??
""
;
item
.
StuStageName
=
stageList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuStage
)?.
StageName
??
""
;
item
.
StuTypeName
=
stuTypeList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuType
)?.
Name
??
""
;
item
.
StuTypeName
=
stuTypeList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuType
)?.
Name
??
""
;
item
.
StuChannelName
=
channelList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuChannel
)?.
Name
??
""
;
item
.
StuChannelName
=
channelList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuChannel
)?.
Name
??
""
;
item
.
StuPurposeName
=
goalList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuPurpose
)?.
Name
??
""
;
item
.
StuPurposeName
=
!
string
.
IsNullOrWhiteSpace
(
item
.
StuPurpose
)?(
string
.
Join
(
","
,
goalList
?.
Where
(
qitem
=>
item
.
StuPurpose
.
Contains
(
qitem
.
Id
.
ToString
())).
Select
(
x
=>
x
.
Name
))
??
""
):
""
;
item
.
StuNeedsName
=
needList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuNeeds
)?.
Name
??
""
;
item
.
StuNeedsName
=
needList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuNeeds
)?.
Name
??
""
;
item
.
AdvisorList
=
advisorList
?.
Where
(
qitem
=>
qitem
.
StuId
==
item
.
StuId
)?.
ToList
()
??
new
List
<
RB_Student_Advisor_Extend
>();
item
.
AdvisorList
=
advisorList
?.
Where
(
qitem
=>
qitem
.
StuId
==
item
.
StuId
)?.
ToList
()
??
new
List
<
RB_Student_Advisor_Extend
>();
item
.
CreateByName
=
accountList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
CreateBy
)?.
AccountName
??
""
;
item
.
CreateByName
=
accountList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
CreateBy
)?.
AccountName
??
""
;
...
@@ -2434,7 +2435,7 @@ namespace Edu.Module.User
...
@@ -2434,7 +2435,7 @@ namespace Edu.Module.User
}
}
//学习目的
//学习目的
string
goalIds
=
string
.
Join
(
","
,
list
.
Select
(
qitem
=>
qitem
.
StuPurpose
));
string
goalIds
=
string
.
Join
(
","
,
list
?.
Where
(
qitem
=>
!
string
.
IsNullOrWhiteSpace
(
qitem
.
StuPurpose
))?
.
Select
(
qitem
=>
qitem
.
StuPurpose
));
var
goalList
=
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
Model
.
ViewModel
.
System
.
RB_LearningGoals_Extend
()
var
goalList
=
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
Model
.
ViewModel
.
System
.
RB_LearningGoals_Extend
()
{
{
QGoalIds
=
goalIds
QGoalIds
=
goalIds
...
@@ -2491,7 +2492,7 @@ namespace Edu.Module.User
...
@@ -2491,7 +2492,7 @@ namespace Edu.Module.User
item
.
StuStageName
=
stageList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuStage
)?.
StageName
??
""
;
item
.
StuStageName
=
stageList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuStage
)?.
StageName
??
""
;
item
.
StuTypeName
=
stuTypeList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuType
)?.
Name
??
""
;
item
.
StuTypeName
=
stuTypeList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuType
)?.
Name
??
""
;
item
.
StuChannelName
=
channelList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuChannel
)?.
Name
??
""
;
item
.
StuChannelName
=
channelList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuChannel
)?.
Name
??
""
;
item
.
StuPurposeName
=
goalList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuPurpose
)?.
Name
??
""
;
item
.
StuPurposeName
=
!
string
.
IsNullOrWhiteSpace
(
item
.
StuPurpose
)?(
string
.
Join
(
","
,
goalList
?.
Where
(
qitem
=>
item
.
StuPurpose
.
Contains
(
qitem
.
Id
.
ToString
()))?.
Select
(
x
=>
x
.
Name
))
??
""
):
""
;
item
.
StuNeedsName
=
needList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuNeeds
)?.
Name
??
""
;
item
.
StuNeedsName
=
needList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuNeeds
)?.
Name
??
""
;
item
.
AdvisorList
=
advisorList
?.
Where
(
qitem
=>
qitem
.
StuId
==
item
.
StuId
)?.
ToList
()
??
new
List
<
RB_Student_Advisor_Extend
>();
item
.
AdvisorList
=
advisorList
?.
Where
(
qitem
=>
qitem
.
StuId
==
item
.
StuId
)?.
ToList
()
??
new
List
<
RB_Student_Advisor_Extend
>();
item
.
CreateByName
=
accountList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
CreateBy
)?.
AccountName
??
""
;
item
.
CreateByName
=
accountList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
CreateBy
)?.
AccountName
??
""
;
...
...
Edu.Module.User/StudentStatModule.cs
View file @
b96b8d54
...
@@ -109,7 +109,7 @@ namespace Edu.Module.User
...
@@ -109,7 +109,7 @@ namespace Edu.Module.User
//查询每月续费介绍情况
//查询每月续费介绍情况
var
ROList
=
student_RenewOrderRepository
.
GetStuMonthList
(
demodel
.
Group_Id
);
var
ROList
=
student_RenewOrderRepository
.
GetStuMonthList
(
demodel
.
Group_Id
);
//学习目的
//学习目的
string
goalIds
=
string
.
Join
(
","
,
slist
.
Select
(
qitem
=>
qitem
.
StuPurpose
));
string
goalIds
=
string
.
Join
(
","
,
slist
?.
Where
(
qitem
=>
!
string
.
IsNullOrWhiteSpace
(
qitem
.
StuPurpose
))?
.
Select
(
qitem
=>
qitem
.
StuPurpose
));
var
goalList
=
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
Model
.
ViewModel
.
System
.
RB_LearningGoals_Extend
()
var
goalList
=
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
Model
.
ViewModel
.
System
.
RB_LearningGoals_Extend
()
{
{
QGoalIds
=
goalIds
QGoalIds
=
goalIds
...
@@ -243,7 +243,7 @@ namespace Edu.Module.User
...
@@ -243,7 +243,7 @@ namespace Edu.Module.User
item
.
CreateByName
=
accountList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
CreateBy
)?.
AccountName
??
""
;
item
.
CreateByName
=
accountList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
CreateBy
)?.
AccountName
??
""
;
item
.
StuChannelName
=
channelList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuChannel
)?.
Name
??
""
;
item
.
StuChannelName
=
channelList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuChannel
)?.
Name
??
""
;
item
.
StuPurposeName
=
goalList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuPurpose
)?.
Name
??
""
;
item
.
StuPurposeName
=
!
string
.
IsNullOrWhiteSpace
(
item
.
StuPurpose
)
?
(
string
.
Join
(
","
,
goalList
?.
Where
(
qitem
=>
item
.
StuPurpose
.
Contains
(
qitem
.
Id
.
ToString
()))?.
Select
(
x
=>
x
.
Name
))
??
""
)
:
""
;
item
.
AdvisorList
=
advisorList
?.
Where
(
qitem
=>
qitem
.
StuId
==
item
.
StuId
)?.
ToList
();
item
.
AdvisorList
=
advisorList
?.
Where
(
qitem
=>
qitem
.
StuId
==
item
.
StuId
)?.
ToList
();
var
followModel
=
new
StudentFollowStatic
()
var
followModel
=
new
StudentFollowStatic
()
{
{
...
@@ -337,7 +337,7 @@ namespace Edu.Module.User
...
@@ -337,7 +337,7 @@ namespace Edu.Module.User
//查询续课 学员介绍
//查询续课 学员介绍
var
xlist
=
student_OrderGuestRepository
.
GetStudentRenewRepository
(
demodel
.
Group_Id
,
stuIds
);
//续费
var
xlist
=
student_OrderGuestRepository
.
GetStudentRenewRepository
(
demodel
.
Group_Id
,
stuIds
);
//续费
string
goalIds
=
string
.
Join
(
","
,
slist
.
Select
(
qitem
=>
qitem
.
StuPurpose
));
string
goalIds
=
string
.
Join
(
","
,
slist
?.
Where
(
qitem
=>
!
string
.
IsNullOrWhiteSpace
(
qitem
.
StuPurpose
))?
.
Select
(
qitem
=>
qitem
.
StuPurpose
));
var
goalList
=
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
Model
.
ViewModel
.
System
.
RB_LearningGoals_Extend
()
var
goalList
=
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
Model
.
ViewModel
.
System
.
RB_LearningGoals_Extend
()
{
{
QGoalIds
=
goalIds
QGoalIds
=
goalIds
...
@@ -379,7 +379,7 @@ namespace Edu.Module.User
...
@@ -379,7 +379,7 @@ namespace Edu.Module.User
}
}
item
.
AssistList
=
tempAssistList
;
item
.
AssistList
=
tempAssistList
;
item
.
CreateByName
=
accountList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
CreateBy
)?.
AccountName
??
""
;
item
.
CreateByName
=
accountList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
CreateBy
)?.
AccountName
??
""
;
item
.
StuPurposeName
=
goalList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuPurpose
)?.
Name
??
""
;
item
.
StuPurposeName
=
!
string
.
IsNullOrWhiteSpace
(
item
.
StuPurpose
)
?
(
string
.
Join
(
","
,
goalList
?.
Where
(
qitem
=>
item
.
StuPurpose
.
Contains
(
qitem
.
Id
.
ToString
()))?.
Select
(
x
=>
x
.
Name
))
??
""
)
:
""
;
item
.
FollowList
=
flist
?.
Where
(
qitem
=>
qitem
.
StuId
==
item
.
StuId
)?.
ToList
();
item
.
FollowList
=
flist
?.
Where
(
qitem
=>
qitem
.
StuId
==
item
.
StuId
)?.
ToList
();
var
tempAppoint
=
appointmentList
?.
Where
(
qitem
=>
qitem
.
StuId
==
item
.
StuId
)?.
FirstOrDefault
();
var
tempAppoint
=
appointmentList
?.
Where
(
qitem
=>
qitem
.
StuId
==
item
.
StuId
)?.
FirstOrDefault
();
//最新情况
//最新情况
...
...
Edu.Repository/User/RB_StudentRepository.cs
View file @
b96b8d54
...
@@ -300,7 +300,10 @@ WHERE 1=1
...
@@ -300,7 +300,10 @@ WHERE 1=1
{
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
School_Id
),
query
.
School_Id
);
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
School_Id
),
query
.
School_Id
);
}
}
if
(
query
.
StudentType
>
0
)
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
StudentType
),
query
.
StudentType
);
}
if
(
query
.
QStudentType
==
1
)
if
(
query
.
QStudentType
==
1
)
{
{
builder
.
AppendFormat
(
" AND t.{0}=0 "
,
nameof
(
RB_Student_ViewModel
.
CustomerId
));
builder
.
AppendFormat
(
" AND t.{0}=0 "
,
nameof
(
RB_Student_ViewModel
.
CustomerId
));
...
@@ -653,8 +656,8 @@ GROUP BY GuestId";
...
@@ -653,8 +656,8 @@ GROUP BY GuestId";
}
}
if
(
oldModel
.
StuPurpose
!=
model
.
StuPurpose
)
if
(
oldModel
.
StuPurpose
!=
model
.
StuPurpose
)
{
{
string
oldName
=
learningGoalsRepository
.
GetLearningGoalsExtEntityRepository
(
oldModel
.
StuPurpose
)?.
Name
??
""
;
string
oldName
=
!
string
.
IsNullOrWhiteSpace
(
oldModel
.
StuPurpose
)
?
(
string
.
Join
(
","
,
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
Model
.
ViewModel
.
System
.
RB_LearningGoals_Extend
{
QGoalIds
=
oldModel
.
StuPurpose
})?.
Select
(
x
=>
x
.
Name
))
??
""
)
:
""
;
string
newName
=
learningGoalsRepository
.
GetLearningGoalsExtEntityRepository
(
model
.
StuPurpose
)?.
Name
??
""
;
string
newName
=
!
string
.
IsNullOrWhiteSpace
(
model
.
StuPurpose
)
?
(
string
.
Join
(
","
,
learningGoalsRepository
.
GetLearningGoalsListRepository
(
new
Model
.
ViewModel
.
System
.
RB_LearningGoals_Extend
{
QGoalIds
=
model
.
StuPurpose
})?.
Select
(
x
=>
x
.
Name
))
??
""
)
:
""
;
logContent
+=
string
.
Format
(
"学习目的:由【{0}】=>【{1}】,"
,
oldName
,
newName
);
logContent
+=
string
.
Format
(
"学习目的:由【{0}】=>【{1}】,"
,
oldName
,
newName
);
}
}
if
(
oldModel
.
StuProfession
!=
model
.
StuProfession
)
if
(
oldModel
.
StuProfession
!=
model
.
StuProfession
)
...
@@ -1338,7 +1341,7 @@ LEFT JOIN rb_group AS g ON t.Group_Id=g.GId
...
@@ -1338,7 +1341,7 @@ LEFT JOIN rb_group AS g ON t.Group_Id=g.GId
/// <param name="rowsCount"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <param name="query"></param>
/// <returns></returns>
/// <returns></returns>
public
List
<
RB_Student_ViewModel
>
GetStudentMonthListRepository
(
RB_Student_ViewModel
query
)
public
List
<
RB_Student_ViewModel
>
GetStudentMonthListRepository
(
RB_Student_ViewModel
query
)
{
{
var
parameters
=
new
DynamicParameters
();
var
parameters
=
new
DynamicParameters
();
StringBuilder
builder
=
new
StringBuilder
();
StringBuilder
builder
=
new
StringBuilder
();
...
...
Edu.Repository/User/RB_Student_OrderGuestRepository.cs
View file @
b96b8d54
...
@@ -640,9 +640,9 @@ WHERE s.Group_Id ={group_Id} and o.JoinType=3 and s.`Status` =0 and sog.`Status`
...
@@ -640,9 +640,9 @@ WHERE s.Group_Id ={group_Id} and o.JoinType=3 and s.`Status` =0 and sog.`Status`
{
{
where
+=
$" and s.
{
nameof
(
RB_Student_ViewModel
.
AdvisorStatus
)}
=
{
demodel
.
AdvisorStatus
}
"
;
where
+=
$" and s.
{
nameof
(
RB_Student_ViewModel
.
AdvisorStatus
)}
=
{
demodel
.
AdvisorStatus
}
"
;
}
}
if
(
demodel
.
StuPurpose
>
0
)
if
(
!
string
.
IsNullOrWhiteSpace
(
demodel
.
StuPurpose
)
&&
demodel
.
StuPurpose
!=
"0"
)
{
{
where
+=
$" and
s.
{
nameof
(
RB_Student_ViewModel
.
StuPurpose
)}
=
{
demodel
.
StuPurpose
}
"
;
where
+=
$" and
FIND_IN_SET(
{
demodel
.
StuPurpose
}
,s.
{
nameof
(
RB_Student_ViewModel
.
StuPurpose
)}
)
"
;
}
}
//if (demodel.School_Id > -1)
//if (demodel.School_Id > -1)
//{
//{
...
...
Edu.WebApi/Controllers/Course/OrderController.cs
View file @
b96b8d54
...
@@ -1401,7 +1401,7 @@ namespace Edu.WebApi.Controllers.Course
...
@@ -1401,7 +1401,7 @@ namespace Edu.WebApi.Controllers.Course
Basics
=
base
.
ParmJObj
.
GetStringValue
(
"Basics"
),
Basics
=
base
.
ParmJObj
.
GetStringValue
(
"Basics"
),
Education
=
(
GuestEducationEnum
)
base
.
ParmJObj
.
GetInt
(
"Education"
),
Education
=
(
GuestEducationEnum
)
base
.
ParmJObj
.
GetInt
(
"Education"
),
GuestSource
=
(
OrderSourceEnum
)
base
.
ParmJObj
.
GetInt
(
"GuestSource"
),
GuestSource
=
(
OrderSourceEnum
)
base
.
ParmJObj
.
GetInt
(
"GuestSource"
),
LearningGoals
=
base
.
ParmJObj
.
Get
Int
(
"LearningGoals"
),
LearningGoals
=
base
.
ParmJObj
.
Get
StringValue
(
"LearningGoals"
),
Contact
=
base
.
ParmJObj
.
GetStringValue
(
"Contact"
),
Contact
=
base
.
ParmJObj
.
GetStringValue
(
"Contact"
),
ContactMobile
=
base
.
ParmJObj
.
GetStringValue
(
"ContactMobile"
),
ContactMobile
=
base
.
ParmJObj
.
GetStringValue
(
"ContactMobile"
),
IDCard
=
base
.
ParmJObj
.
GetStringValue
(
"IDCard"
),
IDCard
=
base
.
ParmJObj
.
GetStringValue
(
"IDCard"
),
...
...
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
View file @
b96b8d54
...
@@ -230,7 +230,7 @@ namespace Edu.WebApi.Controllers.Customer
...
@@ -230,7 +230,7 @@ namespace Edu.WebApi.Controllers.Customer
Remark
=
base
.
ParmJObj
.
GetStringValue
(
"Remark"
),
Remark
=
base
.
ParmJObj
.
GetStringValue
(
"Remark"
),
};
};
string
StuProfession
=
base
.
ParmJObj
.
GetStringValue
(
"StuProfession"
);
string
StuProfession
=
base
.
ParmJObj
.
GetStringValue
(
"StuProfession"
);
int
StuPurpose
=
base
.
ParmJObj
.
GetInt
(
"StuPurpose"
);
string
StuPurpose
=
base
.
ParmJObj
.
GetStringValue
(
"StuPurpose"
);
extModel
.
CreateBy
=
base
.
UserInfo
.
Id
;
extModel
.
CreateBy
=
base
.
UserInfo
.
Id
;
extModel
.
CreateTime
=
DateTime
.
Now
;
extModel
.
CreateTime
=
DateTime
.
Now
;
extModel
.
UpdateBy
=
base
.
UserInfo
.
Id
;
extModel
.
UpdateBy
=
base
.
UserInfo
.
Id
;
...
...
Edu.WebApi/Controllers/User/StudentStatController.cs
View file @
b96b8d54
...
@@ -71,7 +71,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -71,7 +71,7 @@ namespace Edu.WebApi.Controllers.User
StuStage
=
base
.
ParmJObj
.
GetInt
(
"StuStage"
),
StuStage
=
base
.
ParmJObj
.
GetInt
(
"StuStage"
),
StuType
=
base
.
ParmJObj
.
GetInt
(
"StuType"
),
StuType
=
base
.
ParmJObj
.
GetInt
(
"StuType"
),
WeChatNo
=
base
.
ParmJObj
.
GetStringValue
(
"WeChatNo"
),
WeChatNo
=
base
.
ParmJObj
.
GetStringValue
(
"WeChatNo"
),
StuPurpose
=
base
.
ParmJObj
.
Get
Int
(
"StuPurpose"
),
StuPurpose
=
base
.
ParmJObj
.
Get
StringValue
(
"StuPurpose"
),
HeadTeacherId
=
base
.
ParmJObj
.
GetInt
(
"HeadTeacherId"
),
HeadTeacherId
=
base
.
ParmJObj
.
GetInt
(
"HeadTeacherId"
),
QueryTpye
=
base
.
ParmJObj
.
GetInt
(
"QueryTpye"
),
QueryTpye
=
base
.
ParmJObj
.
GetInt
(
"QueryTpye"
),
AdvisorStatus
=
base
.
ParmJObj
.
GetInt
(
"AdvisorStatus"
),
AdvisorStatus
=
base
.
ParmJObj
.
GetInt
(
"AdvisorStatus"
),
...
@@ -324,7 +324,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -324,7 +324,7 @@ namespace Edu.WebApi.Controllers.User
StuStage
=
base
.
ParmJObj
.
GetInt
(
"StuStage"
),
StuStage
=
base
.
ParmJObj
.
GetInt
(
"StuStage"
),
StuType
=
base
.
ParmJObj
.
GetInt
(
"StuType"
),
StuType
=
base
.
ParmJObj
.
GetInt
(
"StuType"
),
WeChatNo
=
base
.
ParmJObj
.
GetStringValue
(
"WeChatNo"
),
WeChatNo
=
base
.
ParmJObj
.
GetStringValue
(
"WeChatNo"
),
StuPurpose
=
base
.
ParmJObj
.
Get
Int
(
"StuPurpose"
),
StuPurpose
=
base
.
ParmJObj
.
Get
StringValue
(
"StuPurpose"
),
HeadTeacherId
=
base
.
ParmJObj
.
GetInt
(
"HeadTeacherId"
),
HeadTeacherId
=
base
.
ParmJObj
.
GetInt
(
"HeadTeacherId"
),
QueryTpye
=
base
.
ParmJObj
.
GetInt
(
"QueryTpye"
),
QueryTpye
=
base
.
ParmJObj
.
GetInt
(
"QueryTpye"
),
AdvisorStatus
=
base
.
ParmJObj
.
GetInt
(
"AdvisorStatus"
),
AdvisorStatus
=
base
.
ParmJObj
.
GetInt
(
"AdvisorStatus"
),
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
b96b8d54
...
@@ -721,7 +721,8 @@ namespace Edu.WebApi.Controllers.User
...
@@ -721,7 +721,8 @@ namespace Edu.WebApi.Controllers.User
CreateType
=
(
StuCreateTypeEnum
)
base
.
ParmJObj
.
GetInt
(
"CreateType"
),
CreateType
=
(
StuCreateTypeEnum
)
base
.
ParmJObj
.
GetInt
(
"CreateType"
),
StuSourceId
=
base
.
ParmJObj
.
GetInt
(
"StuSourceId"
),
StuSourceId
=
base
.
ParmJObj
.
GetInt
(
"StuSourceId"
),
IsSureConsultTime
=
base
.
ParmJObj
.
GetInt
(
"IsSureConsultTime"
),
IsSureConsultTime
=
base
.
ParmJObj
.
GetInt
(
"IsSureConsultTime"
),
QOrderBy
=
base
.
ParmJObj
.
GetInt
(
"QOrderBy"
),
QOrderBy
=
base
.
ParmJObj
.
GetInt
(
"QOrderBy"
),
StudentType
=
base
.
ParmJObj
.
GetInt
(
"StudentType"
,
1
),
};
};
if
(
query
.
IsQueryMyStu
==
1
)
if
(
query
.
IsQueryMyStu
==
1
)
{
{
...
@@ -806,7 +807,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -806,7 +807,7 @@ namespace Edu.WebApi.Controllers.User
item
.
StuProfession
,
item
.
StuProfession
,
item
.
StuEducation
,
item
.
StuEducation
,
StuEducationName
=
item
.
StuEducation
.
ToName
(),
StuEducationName
=
item
.
StuEducation
.
ToName
(),
item
.
StuPurpose
,
StuPurpose
=
item
.
StuPurpose
,
item
.
StuPurposeName
,
item
.
StuPurposeName
,
item
.
VisitCount
,
item
.
VisitCount
,
item
.
TrialLessonCount
,
item
.
TrialLessonCount
,
...
@@ -1067,7 +1068,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -1067,7 +1068,7 @@ namespace Edu.WebApi.Controllers.User
JapanBaseInfo
=
(
GuestBasicsEnum
)
base
.
ParmJObj
.
GetInt
(
"JapanBaseInfo"
),
JapanBaseInfo
=
(
GuestBasicsEnum
)
base
.
ParmJObj
.
GetInt
(
"JapanBaseInfo"
),
StuProfession
=
base
.
ParmJObj
.
GetStringValue
(
"StuProfession"
),
StuProfession
=
base
.
ParmJObj
.
GetStringValue
(
"StuProfession"
),
StuEducation
=
(
GuestEducationEnum
)
base
.
ParmJObj
.
GetInt
(
"StuEducation"
),
StuEducation
=
(
GuestEducationEnum
)
base
.
ParmJObj
.
GetInt
(
"StuEducation"
),
StuPurpose
=
base
.
ParmJObj
.
Get
Int
(
"StuPurpose"
),
StuPurpose
=
base
.
ParmJObj
.
Get
StringValue
(
"StuPurpose"
),
StuSource
=
(
OrderSourceEnum
)
base
.
ParmJObj
.
GetInt
(
"StuSource"
),
StuSource
=
(
OrderSourceEnum
)
base
.
ParmJObj
.
GetInt
(
"StuSource"
),
StuAddress
=
base
.
ParmJObj
.
GetStringValue
(
"StuAddress"
),
StuAddress
=
base
.
ParmJObj
.
GetStringValue
(
"StuAddress"
),
StuContract
=
base
.
ParmJObj
.
GetStringValue
(
"StuContract"
),
StuContract
=
base
.
ParmJObj
.
GetStringValue
(
"StuContract"
),
...
@@ -1087,6 +1088,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -1087,6 +1088,7 @@ namespace Edu.WebApi.Controllers.User
StuRealMobile
=
base
.
ParmJObj
.
GetStringValue
(
"StuRealMobile"
),
StuRealMobile
=
base
.
ParmJObj
.
GetStringValue
(
"StuRealMobile"
),
FileVoucher
=
base
.
ParmJObj
.
GetStringValue
(
"FileVoucher"
),
FileVoucher
=
base
.
ParmJObj
.
GetStringValue
(
"FileVoucher"
),
TelType
=
(
StuTelTypeEnum
)
base
.
ParmJObj
.
GetInt
(
"TelType"
),
TelType
=
(
StuTelTypeEnum
)
base
.
ParmJObj
.
GetInt
(
"TelType"
),
StudentType
=
base
.
ParmJObj
.
GetInt
(
"StudentType"
,
1
),
};
};
if
(
string
.
IsNullOrEmpty
(
extModel
.
StuRealMobile
)
&&
string
.
IsNullOrEmpty
(
extModel
.
QQ
)
&&
string
.
IsNullOrEmpty
(
extModel
.
WeChatNo
))
if
(
string
.
IsNullOrEmpty
(
extModel
.
StuRealMobile
)
&&
string
.
IsNullOrEmpty
(
extModel
.
QQ
)
&&
string
.
IsNullOrEmpty
(
extModel
.
WeChatNo
))
{
{
...
@@ -1348,7 +1350,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -1348,7 +1350,7 @@ namespace Edu.WebApi.Controllers.User
JapanBaseInfo
=
(
GuestBasicsEnum
)
base
.
ParmJObj
.
GetInt
(
"JapanBaseInfo"
),
JapanBaseInfo
=
(
GuestBasicsEnum
)
base
.
ParmJObj
.
GetInt
(
"JapanBaseInfo"
),
StuProfession
=
base
.
ParmJObj
.
GetStringValue
(
"StuProfession"
),
StuProfession
=
base
.
ParmJObj
.
GetStringValue
(
"StuProfession"
),
StuEducation
=
(
GuestEducationEnum
)
base
.
ParmJObj
.
GetInt
(
"StuEducation"
),
StuEducation
=
(
GuestEducationEnum
)
base
.
ParmJObj
.
GetInt
(
"StuEducation"
),
StuPurpose
=
base
.
ParmJObj
.
Get
Int
(
"StuPurpose"
),
StuPurpose
=
base
.
ParmJObj
.
Get
StringValue
(
"StuPurpose"
),
StuSource
=
(
OrderSourceEnum
)
base
.
ParmJObj
.
GetInt
(
"StuSource"
),
StuSource
=
(
OrderSourceEnum
)
base
.
ParmJObj
.
GetInt
(
"StuSource"
),
StuAddress
=
base
.
ParmJObj
.
GetStringValue
(
"StuAddress"
),
StuAddress
=
base
.
ParmJObj
.
GetStringValue
(
"StuAddress"
),
StuContract
=
base
.
ParmJObj
.
GetStringValue
(
"StuContract"
),
StuContract
=
base
.
ParmJObj
.
GetStringValue
(
"StuContract"
),
...
@@ -1359,6 +1361,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -1359,6 +1361,7 @@ namespace Edu.WebApi.Controllers.User
QQ
=
base
.
ParmJObj
.
GetStringValue
(
"QQ"
),
QQ
=
base
.
ParmJObj
.
GetStringValue
(
"QQ"
),
StuType
=
base
.
ParmJObj
.
GetInt
(
"StuType"
),
StuType
=
base
.
ParmJObj
.
GetInt
(
"StuType"
),
StuRealMobile
=
base
.
ParmJObj
.
GetStringValue
(
"StuRealMobile"
),
StuRealMobile
=
base
.
ParmJObj
.
GetStringValue
(
"StuRealMobile"
),
StudentType
=
base
.
ParmJObj
.
GetInt
(
"StuType"
,
1
),
};
};
extModel
.
CreateType
=
StuCreateTypeEnum
.
CustomerInput
;
extModel
.
CreateType
=
StuCreateTypeEnum
.
CustomerInput
;
extModel
.
Status
=
DateStateEnum
.
Normal
;
extModel
.
Status
=
DateStateEnum
.
Normal
;
...
...
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