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
51756881
Commit
51756881
authored
Feb 23, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
d2c0f876
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
MarketConsultantModule.cs
Edu.Module.Customer/MarketConsultantModule.cs
+17
-19
RB_StudentRepository.cs
Edu.Repository/User/RB_StudentRepository.cs
+1
-0
No files found.
Edu.Module.Customer/MarketConsultantModule.cs
View file @
51756881
...
@@ -1381,34 +1381,33 @@ namespace Edu.Module.Customer
...
@@ -1381,34 +1381,33 @@ namespace Edu.Module.Customer
});
});
}
}
}
}
var
cusIds
=
string
.
Join
(
","
,
dataList
.
Where
(
qitem
=>
qitem
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
).
Select
(
qitem
=>
qitem
.
StuSourceId
));
var
cusIds
=
string
.
Join
(
","
,
dataList
.
Where
(
qitem
=>
qitem
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
).
Select
(
qitem
=>
qitem
.
StuSourceId
));
List
<
RB_Customer_Extend
>
customerList
=
new
List
<
RB_Customer_Extend
>();
List
<
RB_Customer_Extend
>
customerList
=
new
List
<
RB_Customer_Extend
>();
if
(!
string
.
IsNullOrEmpty
(
cusIds
))
if
(!
string
.
IsNullOrEmpty
(
cusIds
))
{
{
customerList
=
customerRepository
.
GetCustomerListRepository
(
new
RB_Customer_Extend
()
{
CustomerIds
=
cusIds
});
customerList
=
customerRepository
.
GetCustomerListRepository
(
new
RB_Customer_Extend
()
{
CustomerIds
=
cusIds
});
}
}
var
source
TypeList
=
dataList
?.
Where
(
qitem
=>
qitem
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
)
var
catetory
TypeList
=
dataList
?.
Where
(
qitem
=>
qitem
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
)
?.
GroupBy
(
qitem
=>
new
{
qitem
.
C
ustomer
Type
})
?.
GroupBy
(
qitem
=>
new
{
qitem
.
C
atetory
Type
})
?.
Select
(
qitem
=>
new
{
qitem
.
Key
.
C
ustomer
Type
});
?.
Select
(
qitem
=>
new
{
qitem
.
Key
.
C
atetory
Type
});
foreach
(
var
sItem
in
source
TypeList
)
foreach
(
var
sItem
in
catetory
TypeList
)
{
{
var
sourceIdList
=
dataList
?.
Where
(
qitem
=>
qitem
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
&&
qitem
.
C
ustomerType
==
sItem
.
Customer
Type
)
var
sourceIdList
=
dataList
?.
Where
(
qitem
=>
qitem
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
&&
qitem
.
C
atetoryType
==
sItem
.
Catetory
Type
)
?.
GroupBy
(
qitem
=>
new
{
qitem
.
StuSource
Id
})
?.
GroupBy
(
qitem
=>
new
{
qitem
.
Category
Id
})
?.
Select
(
qitem
=>
new
{
qitem
.
Key
.
StuSource
Id
});
?.
Select
(
qitem
=>
new
{
qitem
.
Key
.
Category
Id
});
foreach
(
var
subItem
in
sourceIdList
)
foreach
(
var
subItem
in
sourceIdList
)
{
{
var
tempCusList
=
dataList
?.
Where
(
qitem
=>
qitem
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
&&
qitem
.
StuSourceId
==
subItem
.
StuSourceId
)?.
ToList
();
var
tempCusList
=
dataList
?.
Where
(
qitem
=>
qitem
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
&&
qitem
.
CategoryId
==
subItem
.
CategoryId
)?.
ToList
();
var
tempCustomer
=
customerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CategoryId
==
subItem
.
CategoryId
);
//企业同行
//企业同行
if
(
sItem
.
C
ustomerType
==
Common
.
Enum
.
Customer
.
CatetoryTypeEnum
.
Company
)
if
(
sItem
.
C
atetoryType
==
CatetoryTypeEnum
.
Company
)
{
{
list
.
Add
(
new
MarketChannelStaticModel
()
list
.
Add
(
new
MarketChannelStaticModel
()
{
{
ChannelName
=
"(企业)"
+
(
customerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
subItem
.
StuSourceId
)
?.
CustomerName
??
""
),
ChannelName
=
"(企业)"
+
(
tempCustomer
?.
CustomerName
??
""
),
ChannelId
=
subItem
.
StuSource
Id
,
ChannelId
=
subItem
.
Category
Id
,
CustomerType
=
sItem
.
C
ustomer
Type
,
CustomerType
=
sItem
.
C
atetory
Type
,
ChannelType
=
2
,
ChannelType
=
2
,
ClueCount
=
tempCusList
?.
Count
()??
0
,
ClueCount
=
tempCusList
?.
Count
()??
0
,
VisitCount
=
tempCusList
?.
Sum
(
qitem
=>
qitem
.
VisitCount
)??
0
,
VisitCount
=
tempCusList
?.
Sum
(
qitem
=>
qitem
.
VisitCount
)??
0
,
...
@@ -1417,13 +1416,13 @@ namespace Edu.Module.Customer
...
@@ -1417,13 +1416,13 @@ namespace Edu.Module.Customer
});
});
}
}
//校代同行
//校代同行
if
(
sItem
.
C
ustomerType
==
Common
.
Enum
.
Customer
.
CatetoryTypeEnum
.
School
)
if
(
sItem
.
C
atetoryType
==
CatetoryTypeEnum
.
School
)
{
{
list
.
Add
(
new
MarketChannelStaticModel
()
list
.
Add
(
new
MarketChannelStaticModel
()
{
{
ChannelName
=
"(校代)"
+
(
customerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
subItem
.
StuSourceId
)
?.
CustomerName
??
""
),
ChannelName
=
"(校代)"
+
(
tempCustomer
?.
CustomerName
??
""
),
ChannelId
=
subItem
.
StuSource
Id
,
ChannelId
=
subItem
.
Category
Id
,
CustomerType
=
sItem
.
C
ustomer
Type
,
CustomerType
=
sItem
.
C
atetory
Type
,
ChannelType
=
2
,
ChannelType
=
2
,
ClueCount
=
tempCusList
?.
Count
()??
0
,
ClueCount
=
tempCusList
?.
Count
()??
0
,
VisitCount
=
tempCusList
?.
Sum
(
qitem
=>
qitem
.
VisitCount
)??
0
,
VisitCount
=
tempCusList
?.
Sum
(
qitem
=>
qitem
.
VisitCount
)??
0
,
...
@@ -1434,7 +1433,6 @@ namespace Edu.Module.Customer
...
@@ -1434,7 +1433,6 @@ namespace Edu.Module.Customer
}
}
}
}
var
empIds
=
string
.
Join
(
","
,
dataList
.
Where
(
qitem
=>
qitem
.
CreateType
==
StuCreateTypeEnum
.
InternalIntroduction
).
Select
(
qitem
=>
qitem
.
StuSourceId
));
var
empIds
=
string
.
Join
(
","
,
dataList
.
Where
(
qitem
=>
qitem
.
CreateType
==
StuCreateTypeEnum
.
InternalIntroduction
).
Select
(
qitem
=>
qitem
.
StuSourceId
));
List
<
Employee_ViewModel
>
empList
=
new
List
<
Employee_ViewModel
>();
List
<
Employee_ViewModel
>
empList
=
new
List
<
Employee_ViewModel
>();
if
(!
string
.
IsNullOrEmpty
(
empIds
))
if
(!
string
.
IsNullOrEmpty
(
empIds
))
...
...
Edu.Repository/User/RB_StudentRepository.cs
View file @
51756881
...
@@ -1088,6 +1088,7 @@ FROM RB_Student AS A
...
@@ -1088,6 +1088,7 @@ FROM RB_Student AS A
LEFT JOIN rb_customer_category AS E ON D.CategoryId=E.CategoryId
LEFT JOIN rb_customer_category AS E ON D.CategoryId=E.CategoryId
WHERE A.Status=0
WHERE A.Status=0
"
);
"
);
builder
.
AppendFormat
(
" AND A.StuStage<>{0} AND A.AdvisorStatus<>{1} "
,
7
,
7
);
if
(
query
!=
null
)
if
(
query
!=
null
)
{
{
if
(
query
.
Group_Id
>
0
)
if
(
query
.
Group_Id
>
0
)
...
...
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