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
36366e4d
Commit
36366e4d
authored
Jul 12, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ea752dfd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
SellAchievementsModule.cs
Edu.Module.Course/SellAchievementsModule.cs
+4
-4
No files found.
Edu.Module.Course/SellAchievementsModule.cs
View file @
36366e4d
...
...
@@ -765,9 +765,8 @@ namespace Edu.Module.Course
var
TeacherRuleList
=
dictvalueRepository
.
GetList
(
new
RB_Dictvalue_Extend
()
{
RB_Group_id
=
userInfo
.
Group_Id
,
DictKey
=
"Teacher_Commission"
});
if
(
TeacherRuleList
.
Any
())
{
string
courseIds
=
string
.
Join
(
","
,
orderList
.
Where
(
x
=>
x
.
HelpEnterId
>
0
).
Select
(
x
=>
x
.
CourseId
).
Distinct
());
var
CourseList
=
courseRepository
.
GetCourseListRepository
(
new
RB_Course_ViewModel
()
{
Group_Id
=
userInfo
.
Group_Id
,
QCourseIds
=
courseIds
});
foreach
(
var
qitem
in
orderList
.
Where
(
x
=>
x
.
HelpEnterId
>
0
))
string
courseIds2
=
string
.
Join
(
","
,
rulelist
.
Where
(
x
=>
x
.
CourseType
==
2
&&
!
string
.
IsNullOrEmpty
(
x
.
CourseIds
)).
Select
(
x
=>
x
.
CourseIds
));
foreach
(
var
qitem
in
orderList
.
Where
(
x
=>
x
.
HelpEnterId
>
0
&&
!(
","
+
courseIds2
+
","
).
Contains
(
","
+
x
.
CourseId
+
","
)))
{
decimal
TRate
=
0
;
string
Remark
=
""
;
...
...
@@ -779,7 +778,8 @@ namespace Edu.Module.Course
TRate
=
Convert
.
ToDecimal
(
TeacherRuleList
.
Where
(
x
=>
x
.
SNO
==
4
).
FirstOrDefault
()?.
Content
??
"0"
);
Remark
=
"教师续费订单提成:订单b2b返佣:"
+
bdCommission
+
";订单业绩:"
+
(
qitem
.
PreferPrice
-
qitem
.
DiscountMoney
-
bdCommission
);
}
else
{
else
{
//新订单
TRate
=
Convert
.
ToDecimal
(
TeacherRuleList
.
Where
(
x
=>
x
.
SNO
==
1
).
FirstOrDefault
()?.
Content
??
"0"
);
Remark
=
"教师试听订单提成:订单b2b返佣:"
+
bdCommission
+
";订单业绩:"
+
(
qitem
.
PreferPrice
-
qitem
.
DiscountMoney
-
bdCommission
);
...
...
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