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
271b73e8
Commit
271b73e8
authored
Dec 17, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
7dbe8dcf
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
13 deletions
+62
-13
CustomerStudentModule.cs
Edu.Module.Customer/CustomerStudentModule.cs
+23
-0
StudentModule.cs
Edu.Module.User/StudentModule.cs
+18
-6
RB_StudentRepository.cs
Edu.Repository/User/RB_StudentRepository.cs
+0
-4
B2BAppController.cs
Edu.WebApi/Controllers/B2BApp/B2BAppController.cs
+0
-1
CustomerStudentController.cs
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
+4
-0
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+17
-2
No files found.
Edu.Module.Customer/CustomerStudentModule.cs
View file @
271b73e8
...
...
@@ -647,6 +647,29 @@ namespace Edu.Module.Customer
return
flag
;
}
/// <summary>
/// 检查协助类型是否存在
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
bool
CheckAssistTypeExistsModule
(
RB_Student_Assist_Extend
query
)
{
List
<
WhereHelper
>
list
=
new
List
<
WhereHelper
>();
list
.
Add
(
new
WhereHelper
(
nameof
(
RB_Student_Assist_Extend
.
AssistType
),
(
int
)
query
.
AssistType
));
list
.
Add
(
new
WhereHelper
(
nameof
(
RB_Student_Assist_Extend
.
Status
),
(
int
)
DateStateEnum
.
Normal
));
list
.
Add
(
new
WhereHelper
(
nameof
(
RB_Student_Assist_Extend
.
StuId
),
query
.
StuId
));
if
(
query
.
Id
>
0
)
{
list
.
Add
(
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Student_Assist_Extend
.
Id
),
FiledValue
=
query
.
Id
,
OperatorEnum
=
OperatorEnum
.
NotEqual
});
}
return
student_AssistRepository
.
Exists
(
list
);
}
/// <summary>
/// 获取学员协助人员列表
/// </summary>
...
...
Edu.Module.User/StudentModule.cs
View file @
271b73e8
...
...
@@ -185,17 +185,26 @@ namespace Edu.Module.User
}
var
destinationList
=
destinationRepository
.
GetDestinationListRepository
(
new
Model
.
ViewModel
.
System
.
RB_Destination_ViewModel
()
{
Ids
=
qIds
});
//
转介人
列表
//
同业录入
列表
List
<
RB_Customer_Extend
>
customerList
=
new
List
<
RB_Customer_Extend
>();
List
<
int
>
customerIdList
=
Common
.
ConvertHelper
.
StringToList
(
string
.
Join
(
","
,
list
.
Where
(
qitem
=>
qitem
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
).
Select
(
qitem
=>
qitem
.
StuSourceId
)));
if
(
customerIdList
!=
null
&&
customerIdList
.
Count
>
0
)
{
customerList
=
customerRepository
.
GetCustomerListRepository
(
new
RB_Customer_Extend
()
{
CustomerIds
=
string
.
Join
(
","
,
customerIdList
)
});
}
List
<
RB_Student_ViewModel
>
transStudentList
=
new
List
<
RB_Student_ViewModel
>();
//转介人列表
List
<
int
>
transIdList
=
Common
.
ConvertHelper
.
StringToList
(
string
.
Join
(
","
,
list
.
Where
(
qitem
=>
qitem
.
CreateType
==
StuCreateTypeEnum
.
TransIntroduction
).
Select
(
qitem
=>
qitem
.
StuSourceId
)));
if
(
transIdList
!=
null
&&
transIdList
.
Count
>
0
)
{
customerList
=
customerRepository
.
GetCustomerListRepository
(
new
RB_Customer_Extend
()
transStudentList
=
studentRepository
.
GetStudentListRepository
(
new
RB_Student_ViewModel
()
{
Customer
Ids
=
string
.
Join
(
","
,
transIdList
)
Stu
Ids
=
string
.
Join
(
","
,
transIdList
)
});
}
foreach
(
var
item
in
list
)
{
var
tempOrderList
=
stuOrderList
?.
Where
(
qitem
=>
qitem
.
Student_Id
==
item
.
StuId
)?.
ToList
();
...
...
@@ -222,11 +231,14 @@ namespace Edu.Module.User
{
item
.
StuSourceIdName
=
accountList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuSourceId
)?.
AccountName
??
""
;
}
else
if
(
item
.
CreateType
==
StuCreateTypeEnum
.
TransIntroduction
)
else
if
(
item
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
)
{
item
.
StuSourceIdName
=
customerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
item
.
StuSourceId
)?.
CustomerName
??
""
;
}
else
if
(
item
.
CreateType
==
StuCreateTypeEnum
.
TransIntroduction
)
{
item
.
StuSourceIdName
=
transStudentList
?.
FirstOrDefault
(
qitem
=>
qitem
.
StuId
==
item
.
StuSourceId
)?.
StuName
??
""
;
}
item
.
StuStageName
=
stageList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuStage
)?.
StageName
??
""
;
item
.
StuTypeName
=
stuTypeList
?.
FirstOrDefault
(
qitem
=>
qitem
.
Id
==
item
.
StuType
)?.
Name
??
""
;
}
...
...
Edu.Repository/User/RB_StudentRepository.cs
View file @
271b73e8
...
...
@@ -70,10 +70,6 @@ WHERE 1=1
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
Group_Id
),
query
.
Group_Id
);
}
if
(
query
.
School_Id
>
-
1
)
{
builder
.
AppendFormat
(
" AND t.{0}={1} "
,
nameof
(
RB_Student_ViewModel
.
School_Id
),
query
.
School_Id
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
query
.
StuName
))
{
builder
.
AppendFormat
(
" AND t.{0} LIKE @StuName "
,
nameof
(
RB_Student_ViewModel
.
StuName
));
...
...
Edu.WebApi/Controllers/B2BApp/B2BAppController.cs
View file @
271b73e8
...
...
@@ -36,7 +36,6 @@ namespace Edu.WebApi.Controllers.B2BApp
/// </summary>
private
readonly
ClassModule
classModule
=
new
ClassModule
();
/// <summary>
/// 客户返佣和幸福存折处理类对象
...
...
Edu.WebApi/Controllers/Customer/CustomerStudentController.cs
View file @
271b73e8
...
...
@@ -457,6 +457,10 @@ namespace Edu.WebApi.Controllers.Customer
StuId
=
StuId
,
Status
=
Common
.
Enum
.
DateStateEnum
.
Normal
};
if
(
customerStudentModule
.
CheckAssistTypeExistsModule
(
model
))
{
return
ApiResult
.
Failed
(
message
:
string
.
Format
(
"已存在【{0}】类型的协助人员!"
,
model
.
AssistType
.
ToName
()));
}
bool
flag
=
customerStudentModule
.
SetStudentAssistModule
(
StuId
,
model
,
base
.
UserInfo
.
Id
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
...
...
Edu.WebApi/Controllers/User/UserController.cs
View file @
271b73e8
...
...
@@ -764,9 +764,24 @@ namespace Edu.WebApi.Controllers.User
[
HttpPost
]
public
ApiResult
GetStudentList
()
{
var
query
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
RB_Student_ViewModel
>(
RequestParm
.
Msg
.
ToString
());
var
query
=
new
RB_Student_ViewModel
()
{
StuName
=
base
.
ParmJObj
.
GetStringValue
(
"StuName"
),
StuTel
=
base
.
ParmJObj
.
GetStringValue
(
"StuTel"
),
CreateBy
=
base
.
ParmJObj
.
GetInt
(
"CreateBy"
),
IsQueryMyStu
=
base
.
ParmJObj
.
GetInt
(
"IsQueryMyStu"
),
CustomerId
=
base
.
ParmJObj
.
GetInt
(
"CustomerId"
),
StuStage
=
base
.
ParmJObj
.
GetInt
(
"StuStage"
),
StartTime
=
base
.
ParmJObj
.
GetStringValue
(
"StartTime"
),
EndTime
=
base
.
ParmJObj
.
GetStringValue
(
"EndTime"
),
BelongType
=
base
.
ParmJObj
.
GetInt
(
"BelongType"
),
QStudentType
=
base
.
ParmJObj
.
GetInt
(
"QStudentType"
,
-
1
),
QQ
=
base
.
ParmJObj
.
GetStringValue
(
"QQ"
),
WeChatNo
=
base
.
ParmJObj
.
GetStringValue
(
"WeChatNo"
),
StuType
=
base
.
ParmJObj
.
GetInt
(
"StuType"
),
};
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
query
.
School_Id
=
base
.
UserInfo
.
School_Id
;
//
query.School_Id = base.UserInfo.School_Id;
var
list
=
studentModule
.
GetStudentListModule
(
query
);
return
ApiResult
.
Success
(
data
:
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