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
ff2b83c3
Commit
ff2b83c3
authored
Dec 30, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e03091e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
FinanceModule.cs
Edu.Module.Finance/FinanceModule.cs
+1
-1
FinanceController.cs
Edu.WebApi/Controllers/Finance/FinanceController.cs
+4
-4
No files found.
Edu.Module.Finance/FinanceModule.cs
View file @
ff2b83c3
...
@@ -358,7 +358,7 @@ namespace Edu.Module.Finance
...
@@ -358,7 +358,7 @@ namespace Edu.Module.Finance
orderAllList
=
orderRepository
.
GetOrderListRepository
(
new
RB_Order_ViewModel
()
{
Group_Id
=
GroupId
,
ClassIds
=
classIds
,
OrderType
=
Common
.
Enum
.
Sale
.
OrderTypeEnum
.
CourseOrder
,
Q_OrderState
=
1
});
orderAllList
=
orderRepository
.
GetOrderListRepository
(
new
RB_Order_ViewModel
()
{
Group_Id
=
GroupId
,
ClassIds
=
classIds
,
OrderType
=
Common
.
Enum
.
Sale
.
OrderTypeEnum
.
CourseOrder
,
Q_OrderState
=
1
});
//查询班级下所有的财务单据
//查询班级下所有的财务单据
FAllList
=
RB_FinanceRepository
.
GetDataStatisticsListThree
(
new
RB_Finance_Extend
()
{
RB_Group_Id
=
GroupId
,
TCIDStr
=
classIds
,
OrderSource
=
OrderResourceEnum
.
Education
});
FAllList
=
RB_FinanceRepository
.
GetDataStatisticsListThree
(
new
RB_Finance_Extend
()
{
RB_Group_Id
=
GroupId
,
TCIDStr
=
classIds
,
OrderSource
=
OrderResourceEnum
.
Education
});
teacherBonusList
=
teaching_BonusDetailRepository
.
GetList
(
new
RB_Teaching_BonusDetail_ViewModel
{
Group_Id
=
GroupId
,
ClassIds
=
classIds
});
teacherBonusList
=
teaching_BonusDetailRepository
.
GetList
(
new
RB_Teaching_BonusDetail_ViewModel
{
Group_Id
=
GroupId
,
ClassIds
=
classIds
,
CouseClassify
=
1
});
meritsProfitList
=
teaching_PerfRepository
.
GetList
(
new
RB_Teaching_Perf_ViewModel
{
Group_Id
=
GroupId
,
ClassIds
=
classIds
});
meritsProfitList
=
teaching_PerfRepository
.
GetList
(
new
RB_Teaching_Perf_ViewModel
{
Group_Id
=
GroupId
,
ClassIds
=
classIds
});
//查询班级下已上课时数量
//查询班级下已上课时数量
classHoursList
=
class_CheckRepository
.
GetClassLearnHoursList
(
GroupId
,
classIds
);
classHoursList
=
class_CheckRepository
.
GetClassLearnHoursList
(
GroupId
,
classIds
);
...
...
Edu.WebApi/Controllers/Finance/FinanceController.cs
View file @
ff2b83c3
...
@@ -172,10 +172,10 @@ namespace Edu.WebApi.Controllers.Finance
...
@@ -172,10 +172,10 @@ namespace Edu.WebApi.Controllers.Finance
if
(
classId
>
0
)
if
(
classId
>
0
)
{
{
//课时费 老师绩效
//课时费 老师绩效
var
teacherProfitList
=
teachingRewardsModule
.
GetBonusDetailList
(
new
RB_Teaching_BonusDetail_ViewModel
{
Group_Id
=
base
.
UserInfo
.
Group_Id
,
ClassId
=
classId
,
School_Id
=
schoolId
,
CouseClassify
=
1
});
var
teacherProfitList
=
teachingRewardsModule
.
GetBonusDetailList
(
new
RB_Teaching_BonusDetail_ViewModel
{
Group_Id
=
base
.
UserInfo
.
Group_Id
,
ClassId
=
classId
,
CouseClassify
=
1
});
TeacherProfitNow
=
(
teacherProfitList
!=
null
&&
teacherProfitList
.
Any
())
?
teacherProfitList
.
Sum
(
x
=>
x
.
Money
)
:
0
;
//老师提成
TeacherProfitNow
=
(
teacherProfitList
!=
null
&&
teacherProfitList
.
Any
())
?
teacherProfitList
.
Sum
(
x
=>
x
.
Money
)
:
0
;
//老师提成
var
meritsProfitList
=
teachingRewardsModule
.
GetTeachingPerfList
(
new
RB_Teaching_Perf_ViewModel
{
Group_Id
=
base
.
UserInfo
.
Group_Id
,
ClassId
=
classId
,
School_Id
=
schoolId
});
var
meritsProfitList
=
teachingRewardsModule
.
GetTeachingPerfList
(
new
RB_Teaching_Perf_ViewModel
{
Group_Id
=
base
.
UserInfo
.
Group_Id
,
ClassId
=
classId
});
MeritsProfit
=
(
meritsProfitList
!=
null
&&
meritsProfitList
.
Any
())
?
(
meritsProfitList
.
Where
(
x
=>
x
.
PerfState
==
Common
.
Enum
.
Course
.
PerfStateEnum
.
Confirmed
).
OrderByDescending
(
x
=>
x
.
CreateTime
).
FirstOrDefault
()?.
Money
??
0
)
:
0
;
//绩效提成
MeritsProfit
=
(
meritsProfitList
!=
null
&&
meritsProfitList
.
Any
())
?
(
meritsProfitList
.
Where
(
x
=>
x
.
PerfState
==
Common
.
Enum
.
Course
.
PerfStateEnum
.
Confirmed
).
OrderByDescending
(
x
=>
x
.
CreateTime
).
FirstOrDefault
()?.
Money
??
0
)
:
0
;
//绩效提成
}
}
PayReceive
+=
(
SaleCommission
+
TeacherProfitNow
+
MeritsProfit
);
//支出加上提成的
PayReceive
+=
(
SaleCommission
+
TeacherProfitNow
+
MeritsProfit
);
//支出加上提成的
...
@@ -297,10 +297,10 @@ namespace Edu.WebApi.Controllers.Finance
...
@@ -297,10 +297,10 @@ namespace Edu.WebApi.Controllers.Finance
//提成
//提成
decimal
SaleCommission
=
(
orderList
!=
null
&&
orderList
.
Any
())
?
orderList
.
Where
(
x
=>
x
.
IsCommissionGive
==
1
).
Sum
(
x
=>
x
.
CommissionMoney
)
:
0
;
;
//销售提成
decimal
SaleCommission
=
(
orderList
!=
null
&&
orderList
.
Any
())
?
orderList
.
Where
(
x
=>
x
.
IsCommissionGive
==
1
).
Sum
(
x
=>
x
.
CommissionMoney
)
:
0
;
;
//销售提成
var
teacherProfitList
=
teachingRewardsModule
.
GetBonusDetailList
(
new
RB_Teaching_BonusDetail_ViewModel
{
Group_Id
=
base
.
UserInfo
.
Group_Id
,
ClassId
=
classId
,
School_Id
=
schoolId
,
CouseClassify
=
1
});
var
teacherProfitList
=
teachingRewardsModule
.
GetBonusDetailList
(
new
RB_Teaching_BonusDetail_ViewModel
{
Group_Id
=
base
.
UserInfo
.
Group_Id
,
ClassId
=
classId
,
CouseClassify
=
1
});
decimal
TeacherProfitNow
=
(
teacherProfitList
!=
null
&&
teacherProfitList
.
Any
())
?
teacherProfitList
.
Sum
(
x
=>
x
.
Money
)
:
0
;
//老师提成
decimal
TeacherProfitNow
=
(
teacherProfitList
!=
null
&&
teacherProfitList
.
Any
())
?
teacherProfitList
.
Sum
(
x
=>
x
.
Money
)
:
0
;
//老师提成
var
meritsProfitList
=
teachingRewardsModule
.
GetTeachingPerfList
(
new
RB_Teaching_Perf_ViewModel
{
Group_Id
=
base
.
UserInfo
.
Group_Id
,
ClassId
=
classId
,
School_Id
=
schoolId
});
var
meritsProfitList
=
teachingRewardsModule
.
GetTeachingPerfList
(
new
RB_Teaching_Perf_ViewModel
{
Group_Id
=
base
.
UserInfo
.
Group_Id
,
ClassId
=
classId
});
decimal
MeritsProfit
=
(
meritsProfitList
!=
null
&&
meritsProfitList
.
Any
())
?
(
meritsProfitList
.
OrderByDescending
(
x
=>
x
.
CreateTime
).
FirstOrDefault
()?.
Money
??
0
)
:
0
;
//绩效提成
decimal
MeritsProfit
=
(
meritsProfitList
!=
null
&&
meritsProfitList
.
Any
())
?
(
meritsProfitList
.
OrderByDescending
(
x
=>
x
.
CreateTime
).
FirstOrDefault
()?.
Money
??
0
)
:
0
;
//绩效提成
PayReceive
+=
(
SaleCommission
+
TeacherProfitNow
+
MeritsProfit
);
//支出加上
PayReceive
+=
(
SaleCommission
+
TeacherProfitNow
+
MeritsProfit
);
//支出加上
...
...
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