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
c3271a4c
Commit
c3271a4c
authored
Dec 27, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2c482cc8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
EducationContractModule.cs
Edu.Module.Course/EducationContractModule.cs
+1
-1
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+7
-7
No files found.
Edu.Module.Course/EducationContractModule.cs
View file @
c3271a4c
...
...
@@ -812,7 +812,7 @@ namespace Edu.Module.Course
var
model
=
returnComissionRepository
.
GetModelByOrderIdStuId
(
guestModel
.
OrderId
,
guestModel
.
Student_Id
);
if
(
model
!=
null
&&
(
model
.
Status
==
0
||
model
.
Status
==
1
))
{
var
userModel
=
userReturnComissionRepository
.
GetModelBySourceId
(
model
.
OrderSourceType
,
model
.
OrderSourceId
,
model
.
CommissionType
);
var
userModel
=
userReturnComissionRepository
.
GetModelBySourceId
(
(
int
)
model
.
OrderSourceType
,
model
.
OrderSourceId
,
model
.
CommissionType
);
userModel
.
SttlementMoney
-=
model
.
CommissionMoeny
;
if
(
model
.
Status
==
1
)
{
...
...
Edu.Module.Course/OrderModule.cs
View file @
c3271a4c
...
...
@@ -406,7 +406,7 @@ namespace Edu.Module.Course
{
Id
=
0
,
OrderId
=
model
.
OrderId
,
OrderSourceType
=
x
.
CreateType
.
ToInt
()
,
OrderSourceType
=
x
.
CreateType
,
OrderSourceId
=
x
.
CreateType
==
StuCreateTypeEnum
.
EmployeeInput
?
x
.
CreateBy
:
(
x
.
CreateType
==
StuCreateTypeEnum
.
CustomerInput
?
x
.
CustomerId
:
x
.
StuSourceId
),
Status
=
-
1
,
//下单默认为不可返佣,等待付款完成后更新为待返佣
UnionCashOutId
=
0
,
...
...
@@ -466,7 +466,7 @@ namespace Edu.Module.Course
userResult
.
ToList
().
ForEach
(
x
=>
{
var
userModel
=
userReturnComissionRepository
.
GetModelBySourceId
(
x
.
OrderSourceType
,
x
.
OrderSourceId
,
x
.
CommissionType
);
var
userModel
=
userReturnComissionRepository
.
GetModelBySourceId
(
(
int
)
x
.
OrderSourceType
,
x
.
OrderSourceId
,
x
.
CommissionType
);
if
(
userModel
!=
null
&&
userModel
.
UserId
>
0
)
{
userModel
.
CanCashOutMoney
+=
x
.
CommissionMoeny
;
...
...
@@ -571,14 +571,14 @@ namespace Edu.Module.Course
if
(
courseModel
!=
null
)
{
var
sellPrice
=
courseModel
.
SellPrice
*
((
100
-(
m
.
CommissionType
==
1
?
courseModel
.
B2CRatio
:
courseModel
.
B2CReNewRatio
))
/
100
);
if
(
m
.
OrderSourceType
==
1
)
if
(
(
int
)
m
.
OrderSourceType
==
1
)
{
m
.
CommissionMoeny
=
sellPrice
*
((
m
.
CommissionType
==
1
?
courseModel
.
B2CRbRatio
:
courseModel
.
B2CRNRatio
)/
100
);
m
.
CommissionReType
=
m
.
CommissionType
==
1
?
courseModel
.
B2CRbRatioType
.
ToInt
()
:
courseModel
.
B2CRNRatioType
.
ToInt
();
m
.
CommissionReValue
=
m
.
CommissionType
==
1
?
courseModel
.
B2CRbRatioValue
:
courseModel
.
B2CRNRatioValue
;
m
.
Remark
=
$"学员来源为:直客,学员为
{(
m
.
CommissionType
==
1
?
"首次报名"
:
"续费报名"
)}
,本次报名金额为:
{
sellPrice
}
,本次返佣金额为:
{
m
.
CommissionMoeny
.
ToString
(
"0.00"
)}
"
;
}
else
if
(
m
.
OrderSourceType
==
2
)
else
if
(
(
int
)
m
.
OrderSourceType
==
2
)
{
var
customerModel
=
customerRepository
.
GetEntity
(
m
.
OrderSourceId
);
if
(
customerModel
.
CustomerType
==
1
)
...
...
@@ -596,14 +596,14 @@ namespace Edu.Module.Course
m
.
Remark
=
$"学员来源为:校代,学员为
{(
m
.
CommissionType
==
1
?
"首次报名"
:
"续费报名"
)}
,本次报名金额为:
{
sellPrice
}
,本次返佣金额为:
{
m
.
CommissionMoeny
.
ToString
(
"0.00"
)}
"
;
}
}
else
if
(
m
.
OrderSourceType
==
3
)
else
if
(
(
int
)
m
.
OrderSourceType
==
3
)
{
m
.
CommissionMoeny
=
sellPrice
*
((
m
.
CommissionType
==
1
?
courseModel
.
InnerRecommendRatio
:
courseModel
.
InnerRecommendReNewRatio
)/
100
);
m
.
CommissionReType
=
m
.
CommissionType
==
1
?
courseModel
.
InnerRecommendRatioType
.
ToInt
()
:
courseModel
.
InnerRecommendReNewRatioType
.
ToInt
();
m
.
CommissionReValue
=
m
.
CommissionType
==
1
?
courseModel
.
InnerRecommendRatioValue
:
courseModel
.
InnerRecommendReNewRatioValue
.
Value
;
m
.
Remark
=
$"学员来源为:内部介绍,学员为
{(
m
.
CommissionType
==
1
?
"首次报名"
:
"续费报名"
)}
,本次报名金额为:
{
sellPrice
}
,本次返佣金额为:
{
m
.
CommissionMoeny
.
ToString
(
"0.00"
)}
"
;
}
else
if
(
m
.
OrderSourceType
==
4
)
else
if
(
(
int
)
m
.
OrderSourceType
==
4
)
{
m
.
CommissionMoeny
=
sellPrice
*
((
m
.
CommissionType
==
1
?
(
courseModel
.
TransIntroductceRatio
)
:
courseModel
.
TransIntroductceReNewRatio
)/
100
);
m
.
CommissionReType
=
m
.
CommissionType
==
1
?
courseModel
.
TransIntroductceRatioType
.
ToInt
()
:
courseModel
.
TransIntroductceReNewRatioType
.
ToInt
();
...
...
@@ -3557,7 +3557,7 @@ namespace Edu.Module.Course
var
model
=
returnComissionRepository
.
GetModelByOrderIdStuId
(
orderId
,
stuId
);
if
(
model
!=
null
&&
model
.
Status
==
-
1
)
{
var
userModel
=
userReturnComissionRepository
.
GetModelBySourceId
(
model
.
OrderSourceType
,
model
.
OrderSourceId
,
model
.
CommissionType
);
var
userModel
=
userReturnComissionRepository
.
GetModelBySourceId
(
(
int
)
model
.
OrderSourceType
,
model
.
OrderSourceId
,
model
.
CommissionType
);
userModel
.
UnSettlementMoney
+=
model
.
CommissionMoeny
;
Dictionary
<
string
,
object
>
userKeyValues
=
new
Dictionary
<
string
,
object
>()
{
...
...
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