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
9bc0f41d
Commit
9bc0f41d
authored
Jan 20, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增字段
parent
7c4c80b9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
RB_Consultant_Data.cs
Edu.Model/Entity/DataStatistics/RB_Consultant_Data.cs
+15
-0
MarketConsultantModule.cs
Edu.Module.Customer/MarketConsultantModule.cs
+12
-0
RB_Consultant_DataRepository.cs
...Repository/DataStatistics/RB_Consultant_DataRepository.cs
+2
-0
No files found.
Edu.Model/Entity/DataStatistics/RB_Consultant_Data.cs
View file @
9bc0f41d
...
...
@@ -219,5 +219,20 @@ namespace Edu.Model.Entity.DataStatistics
/// 当月效能目标金额
/// </summary>
public
decimal
CurMonthOrderGoal
{
get
;
set
;
}
/// <summary>
/// 当月新签累计 [订单数量累计】
/// </summary>
public
int
CurMonthOrderNum
{
get
;
set
;
}
/// <summary>
/// 上月新签累计 [订单数量累计】
/// </summary>
public
int
LastMonthOrderNum
{
get
;
set
;
}
/// <summary>
/// 上月累计金额
/// </summary>
public
decimal
LastMonthOrderSale
{
get
;
set
;
}
}
}
Edu.Module.Customer/MarketConsultantModule.cs
View file @
9bc0f41d
...
...
@@ -502,9 +502,15 @@ namespace Edu.Module.Customer
}
if
(
sItem
.
Key
==
"curMonth"
)
{
model
.
CurMonthOrderNum
=
orderCount
;
model
.
CurMonthOrderSale
=
Income
;
model
.
CurMonthOrderGoal
=
consultantGoal
?.
GoalMoney
??
0
;
}
if
(
sItem
.
Key
==
"lastMonth"
)
{
model
.
LastMonthOrderNum
=
orderCount
;
model
.
LastMonthOrderSale
=
Income
;
}
}
consultant_DataRepository
.
InsertConsultantRepository
(
model
);
}
...
...
@@ -701,8 +707,14 @@ namespace Edu.Module.Customer
CurWeekOrderSale
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
CurWeekOrderSale
)
??
0
,
LastWeekOrderSale
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
LastWeekOrderSale
)
??
0
,
CurMonthOrderSale
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
CurMonthOrderSale
)
??
0
,
LastMonthOrderSale
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
LastMonthOrderSale
)
??
0
,
CurMonthOrderGoal
=
consultantGoal
?.
GoalMoney
??
0
,
CurMonthOrderNum
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
CurMonthOrderNum
)
??
0
,
LastMonthOrderNum
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
LastMonthOrderNum
)
??
0
,
};
return
obj
;
}
...
...
Edu.Repository/DataStatistics/RB_Consultant_DataRepository.cs
View file @
9bc0f41d
...
...
@@ -107,6 +107,8 @@ WHERE 1=1
CurMonthOrderGoal
=
model
.
CurMonthOrderGoal
,
CurMonthOrderSale
=
model
.
CurMonthOrderSale
,
CurMonthOrderNum
=
model
.
CurMonthOrderNum
,
LastMonthOrderNum
=
model
.
LastMonthOrderNum
,
CreateBy
=
model
.
CreateBy
,
CreateTime
=
DateTime
.
Now
,
...
...
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