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
b58a596d
Commit
b58a596d
authored
Jan 17, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
5a1e4b36
ea812f01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
2 deletions
+53
-2
MarketConsultantModule.cs
Edu.Module.Customer/MarketConsultantModule.cs
+53
-2
No files found.
Edu.Module.Customer/MarketConsultantModule.cs
View file @
b58a596d
...
@@ -111,8 +111,59 @@ namespace Edu.Module.Customer
...
@@ -111,8 +111,59 @@ namespace Edu.Module.Customer
public
object
ConsultantStaticModule
(
string
EmpIds
,
string
StartTime
,
string
EndTime
)
public
object
ConsultantStaticModule
(
string
EmpIds
,
string
StartTime
,
string
EndTime
)
{
{
object
obj
=
new
object
();
object
obj
=
new
object
();
var
totalTotal
=
studentRepository
.
GetStudentClueRepository
(
EmpIds
,
StartTime
,
EndTime
);
DateTime
start
=
Convert
.
ToDateTime
(
StartTime
);
DateTime
end
=
Convert
.
ToDateTime
(
EndTime
);
var
days
=
(
end
-
start
).
Days
;
//线索列表
var
studentList
=
studentRepository
.
GetStudentClueRepository
(
EmpIds
,
StartTime
,
EndTime
);
//试听列表
var
trialLessonList
=
visitor_ReserveRepository
.
GetVisitorReserveStaticRepository
(
new
Model
.
ViewModel
.
Reserve
.
RB_Visitor_Reserve_Extend
()
{
QCreateByIds
=
EmpIds
,
StartClassDate
=
StartTime
,
EndClassDate
=
EndTime
});
//到访列表
var
visitList
=
student_VisitRepository
.
GetStudentVisitStaticRepository
(
new
RB_Student_Visit_Extend
()
{
QCreateByIds
=
EmpIds
,
StartDate
=
StartTime
,
EndDate
=
EndTime
});
//订单列表
var
orderList
=
orderRepository
.
GetOrderListRepository
(
new
RB_Order_ViewModel
()
{
QEnterIds
=
EmpIds
,
StartTime
=
StartTime
,
EndTime
=
EndTime
,
});
List
<
object
>
dayList
=
new
List
<
object
>();
for
(
var
i
=
0
;
i
<
days
;
i
++)
{
DateTime
newDate
=
start
.
AddDays
(
i
);
var
tempStuList
=
studentList
?.
Where
(
qitem
=>
Common
.
ConvertHelper
.
FormatMonthDay
(
qitem
.
CreateTime
)
==
Common
.
ConvertHelper
.
FormatMonthDay
(
newDate
))?.
ToList
();
var
tempTrialLessonList
=
trialLessonList
?.
Where
(
qitem
=>
Common
.
ConvertHelper
.
FormatMonthDay
(
qitem
.
CreateTime
)
==
Common
.
ConvertHelper
.
FormatMonthDay
(
newDate
))?.
ToList
();
var
tempVisitList
=
visitList
?.
Where
(
qitem
=>
Common
.
ConvertHelper
.
FormatMonthDay
(
qitem
.
CreateTime
)
==
Common
.
ConvertHelper
.
FormatMonthDay
(
newDate
))?.
ToList
();
dayList
.
Add
(
new
{
DayStr
=
Common
.
ConvertHelper
.
FormatMonthDay
(
newDate
),
//新增线索条数
ClueCount
=
tempStuList
?.
FirstOrDefault
()?.
ClueCount
??
0
,
//试听人数
TrialLessonCount
=
tempTrialLessonList
?.
Sum
(
qitem
=>
qitem
.
TrialLessonCount
)
??
0
,
//到访人数
VisitCount
=
tempVisitList
?.
Sum
(
qitem
=>
qitem
.
VisitCount
)
??
0
,
});
}
obj
=
new
{
dayList
};
return
obj
;
return
obj
;
}
}
}
}
}
}
\ No newline at end of file
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