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
6be708bc
Commit
6be708bc
authored
Apr 03, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新学员有效课时
parent
96f613b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
32 deletions
+38
-32
OrderModule.cs
Edu.Module.Course/OrderModule.cs
+38
-32
No files found.
Edu.Module.Course/OrderModule.cs
View file @
6be708bc
...
...
@@ -674,7 +674,7 @@ namespace Edu.Module.Course
m
.
CommissionMoeny
=
m
.
CommissionType
==
1
?
courseModel
.
InnerRecommendRatio
:
courseModel
.
InnerRecommendReNewRatio
;
}
m
.
CommissionReType
=
m
.
CommissionType
==
1
?
courseModel
.
InnerRecommendRatioType
.
ToInt
()
:
courseModel
.
InnerRecommendReNewRatioType
.
ToInt
();
m
.
CommissionReValue
=
m
.
CommissionType
==
1
?
courseModel
.
InnerRecommendRatioValue
:
courseModel
.
InnerRecommendReNewRatioValue
.
Value
;
m
.
CommissionReValue
=
m
.
CommissionType
==
1
?
courseModel
.
InnerRecommendRatioValue
:
(
courseModel
?.
InnerRecommendReNewRatioValue
??
0
)
;
m
.
Remark
=
$"学员来源为:内部介绍,学员为
{(
m
.
CommissionType
==
1
?
"首次报名"
:
"续费报名"
)}
,本次报名金额为:
{
sellPrice
}
,本次返佣金额为:
{
m
.
CommissionMoeny
:
0.00
}
"
;
}
else
if
((
int
)
m
.
OrderSourceType
==
4
)
...
...
@@ -4116,9 +4116,9 @@ namespace Edu.Module.Course
decimal
validClassHours
=
cmodel
.
Unit_Price
>
0
?
Math
.
Round
(
cmodel
.
Income
/
cmodel
.
Unit_Price
,
2
,
MidpointRounding
.
AwayFromZero
)
:
0
;
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Order_Guest
.
ValidClassHours
),
validClassHours
}
};
{
{
nameof
(
RB_Order_Guest
.
ValidClassHours
),
validClassHours
}
};
//HK2021-07-19新增【有效课时大于完成课时修改学员状态为正常】
string
LogContent
=
""
;
if
(
gmodel
.
CompleteHours
<=
validClassHours
)
...
...
@@ -4142,14 +4142,14 @@ namespace Edu.Module.Course
});
}
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Order_Guest
.
Id
),
FiledValue
=
guestId
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Order_Guest
.
Id
),
FiledValue
=
guestId
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
order_GuestRepository
.
Update
(
keyValues
,
wheres
);
}
}
...
...
@@ -4161,10 +4161,16 @@ namespace Edu.Module.Course
});
if
(
studentMapping
.
Any
())
{
UpdateReturnMoneyStatus
(
studentMapping
.
First
().
Student_Id
,
gmodel
.
OrderId
,
omodel
);
try
{
UpdateReturnMoneyStatus
(
studentMapping
.
First
().
Student_Id
,
gmodel
.
OrderId
,
omodel
);
}
catch
(
Exception
ex
)
{
Common
.
Plugin
.
LogHelper
.
Write
(
ex
,
string
.
Format
(
"UpdateStudentValidClassHours__GuestId:{0} Money:{2} "
,
guestId
,
money
));
}
}
}
return
true
;
}
...
...
@@ -4198,26 +4204,26 @@ namespace Edu.Module.Course
{
nameof
(
RB_User_ReturnComission_ViewModel
.
UnSettlementMoney
),
userModel
.
UnSettlementMoney
}
};
List
<
WhereHelper
>
userWheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_User_ReturnComission_ViewModel
.
UserType
),
FiledValue
=
model
.
OrderSourceType
,
OperatorEnum
=
OperatorEnum
.
Equal
},
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_User_ReturnComission_ViewModel
.
UserId
),
FiledValue
=
model
.
OrderSourceId
,
OperatorEnum
=
OperatorEnum
.
Equal
},
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_User_ReturnComission_ViewModel
.
CommissionType
),
FiledValue
=
model
.
CommissionType
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_User_ReturnComission_ViewModel
.
UserType
),
FiledValue
=
model
.
OrderSourceType
,
OperatorEnum
=
OperatorEnum
.
Equal
},
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_User_ReturnComission_ViewModel
.
UserId
),
FiledValue
=
model
.
OrderSourceId
,
OperatorEnum
=
OperatorEnum
.
Equal
},
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_User_ReturnComission_ViewModel
.
CommissionType
),
FiledValue
=
model
.
CommissionType
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
userReturnComissionRepository
.
Update
(
userKeyValues
,
userWheres
);
}
else
...
...
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