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
b5b7a837
Commit
b5b7a837
authored
Jan 20, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增字段
parent
e999bedb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
RB_Consultant_Data.cs
Edu.Model/Entity/DataStatistics/RB_Consultant_Data.cs
+10
-0
MarketConsultantModule.cs
Edu.Module.Customer/MarketConsultantModule.cs
+10
-1
RB_Consultant_DataRepository.cs
...Repository/DataStatistics/RB_Consultant_DataRepository.cs
+3
-0
No files found.
Edu.Model/Entity/DataStatistics/RB_Consultant_Data.cs
View file @
b5b7a837
...
@@ -209,5 +209,15 @@ namespace Edu.Model.Entity.DataStatistics
...
@@ -209,5 +209,15 @@ namespace Edu.Model.Entity.DataStatistics
/// 所属部门编号
/// 所属部门编号
/// </summary>
/// </summary>
public
int
DeptId
{
get
;
set
;
}
public
int
DeptId
{
get
;
set
;
}
/// <summary>
/// 当月完成订单累计金额
/// </summary>
public
decimal
CurMonthOrderSale
{
get
;
set
;
}
/// <summary>
/// 当月效能目标金额
/// </summary>
public
decimal
CurMonthOrderGoal
{
get
;
set
;
}
}
}
}
}
Edu.Module.Customer/MarketConsultantModule.cs
View file @
b5b7a837
...
@@ -304,6 +304,7 @@ namespace Edu.Module.Customer
...
@@ -304,6 +304,7 @@ namespace Edu.Module.Customer
});
});
if
(
empList
!=
null
&&
empList
.
Count
>
0
)
if
(
empList
!=
null
&&
empList
.
Count
>
0
)
{
{
var
consultantGoal
=
GetConsultantGoalListModule
(
new
RB_Consultant_Goal_Extend
()
{
Group_Id
=
100000
,
Dept_Id
=
13
,
YearStr
=
StartTime
.
Year
,
MonthStr
=
StartTime
.
Month
})?.
FirstOrDefault
();
foreach
(
var
item
in
empList
)
foreach
(
var
item
in
empList
)
{
{
RB_Consultant_Data_Extend
model
=
new
RB_Consultant_Data_Extend
()
RB_Consultant_Data_Extend
model
=
new
RB_Consultant_Data_Extend
()
...
@@ -499,6 +500,11 @@ namespace Edu.Module.Customer
...
@@ -499,6 +500,11 @@ namespace Edu.Module.Customer
model
.
LastWeekOrderNum
=
orderCount
;
model
.
LastWeekOrderNum
=
orderCount
;
model
.
LastWeekOrderSale
=
Income
;
model
.
LastWeekOrderSale
=
Income
;
}
}
if
(
sItem
.
Key
==
"curMonth"
)
{
model
.
CurMonthOrderSale
=
Income
;
model
.
CurMonthOrderGoal
=
consultantGoal
?.
GoalMoney
??
0
;
}
}
}
consultant_DataRepository
.
InsertConsultantRepository
(
model
);
consultant_DataRepository
.
InsertConsultantRepository
(
model
);
}
}
...
@@ -673,7 +679,7 @@ namespace Edu.Module.Customer
...
@@ -673,7 +679,7 @@ namespace Edu.Module.Customer
CurWeekRates
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
CurWeekRates
)
??
0
,
CurWeekRates
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
CurWeekRates
)
??
0
,
LastWeekRates
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
LastWeekRates
)
??
0
,
LastWeekRates
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
LastWeekRates
)
??
0
,
CurMonthRates
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
CurMonthRates
)
??
0
,
CurMonthRates
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
CurMonthRates
)
??
0
,
LastMonthRates
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
LastMonthRates
)
??
0
,
LastMonthRates
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
LastMonthRates
)
??
0
,
FollowCount
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
FollowCount
)
??
0
,
FollowCount
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
FollowCount
)
??
0
,
YestodayFollow
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
YestodayFollow
)
??
0
,
YestodayFollow
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
YestodayFollow
)
??
0
,
...
@@ -693,6 +699,9 @@ namespace Edu.Module.Customer
...
@@ -693,6 +699,9 @@ namespace Edu.Module.Customer
LastWeekOrderNum
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
LastWeekOrderNum
)
??
0
,
LastWeekOrderNum
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
LastWeekOrderNum
)
??
0
,
CurWeekOrderSale
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
CurWeekOrderSale
)
??
0
,
CurWeekOrderSale
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
CurWeekOrderSale
)
??
0
,
LastWeekOrderSale
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
LastWeekOrderSale
)
??
0
,
LastWeekOrderSale
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
LastWeekOrderSale
)
??
0
,
CurMonthOrderSale
=
yesDataList
?.
Sum
(
qitem
=>
qitem
.
CurMonthOrderSale
)
??
0
,
CurMonthOrderGoal
=
yesDataList
?.
FirstOrDefault
()?.
CurMonthOrderGoal
??
0
,
};
};
return
obj
;
return
obj
;
}
}
...
...
Edu.Repository/DataStatistics/RB_Consultant_DataRepository.cs
View file @
b5b7a837
...
@@ -105,6 +105,9 @@ WHERE 1=1
...
@@ -105,6 +105,9 @@ WHERE 1=1
CurWeekOrderSale
=
model
.
CurWeekOrderSale
,
CurWeekOrderSale
=
model
.
CurWeekOrderSale
,
LastWeekOrderSale
=
model
.
LastWeekOrderSale
,
LastWeekOrderSale
=
model
.
LastWeekOrderSale
,
CurMonthOrderGoal
=
model
.
CurMonthOrderGoal
,
CurMonthOrderSale
=
model
.
CurMonthOrderSale
,
CreateBy
=
model
.
CreateBy
,
CreateBy
=
model
.
CreateBy
,
CreateTime
=
DateTime
.
Now
,
CreateTime
=
DateTime
.
Now
,
DeptId
=
model
.
DeptId
,
DeptId
=
model
.
DeptId
,
...
...
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