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
7c42ad51
Commit
7c42ad51
authored
3 years ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b12e41d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
MarketConsultantModule.cs
Edu.Module.Customer/MarketConsultantModule.cs
+8
-2
No files found.
Edu.Module.Customer/MarketConsultantModule.cs
View file @
7c42ad51
...
...
@@ -1239,12 +1239,18 @@ namespace Edu.Module.Customer
foreach
(
var
subItem
in
sourceIdList
)
{
var
tempCusList
=
dataList
?.
Where
(
qitem
=>
qitem
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
&&
qitem
.
StuSourceId
==
subItem
.
StuSourceId
)?.
ToList
();
var
tempCustomer
=
customerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
subItem
.
StuSourceId
);
string
channelName
=
tempCustomer
?.
CustomerName
??
""
;
if
(!
string
.
IsNullOrEmpty
(
tempCustomer
?.
CategoryName
))
{
channelName
+=
string
.
Format
(
"({0})"
,
tempCustomer
?.
CategoryName
);
}
//企业同行
if
(
sItem
.
CustomerType
==
Common
.
Enum
.
Customer
.
CatetoryTypeEnum
.
Company
)
{
customerDataList
.
Add
(
new
MarketChannelStaticModel
()
{
ChannelName
=
c
ustomerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
subItem
.
StuSourceId
)?.
CustomerName
??
""
,
ChannelName
=
c
hannelName
,
ChannelId
=
subItem
.
StuSourceId
,
ClueCount
=
tempCusList
?.
Count
()
??
0
,
VisitCount
=
tempCusList
?.
Sum
(
qitem
=>
qitem
.
VisitCount
)
??
0
,
...
...
@@ -1257,7 +1263,7 @@ namespace Edu.Module.Customer
{
schoolDataList
.
Add
(
new
MarketChannelStaticModel
()
{
ChannelName
=
c
ustomerList
?.
FirstOrDefault
(
qitem
=>
qitem
.
CustomerId
==
subItem
.
StuSourceId
)?.
CustomerName
??
""
,
ChannelName
=
c
hannelName
,
ChannelId
=
subItem
.
StuSourceId
,
ClueCount
=
tempCusList
?.
Count
()
??
0
,
VisitCount
=
tempCusList
?.
Sum
(
qitem
=>
qitem
.
VisitCount
)
??
0
,
...
...
This diff is collapsed.
Click to expand it.
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