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
9a4d4e09
Commit
9a4d4e09
authored
Sep 03, 2024
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
384731f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
RB_OrderRepository.cs
Edu.Repository/Sell/RB_OrderRepository.cs
+3
-1
No files found.
Edu.Repository/Sell/RB_OrderRepository.cs
View file @
9a4d4e09
...
@@ -678,9 +678,11 @@ GROUP BY ClassId;";
...
@@ -678,9 +678,11 @@ GROUP BY ClassId;";
if
(
orderModel
.
CreateTime
>=
Convert
.
ToDateTime
(
"2024-09-01"
))
if
(
orderModel
.
CreateTime
>=
Convert
.
ToDateTime
(
"2024-09-01"
))
{
{
//违约金
decimal
breakContractPrice
=
(
orderModel
.
TotalClassHours
-
FinishHours
)
*
classHourPrice
*
Convert
.
ToDecimal
(
0.1
);
//可退总金额
//可退总金额
decimal
OrderMoney
=
orderModel
.
Income
+
orderModel
.
PlatformTax
-
orderModel
.
Refund
-
orderModel
.
CoursewareFee
-
orderModel
.
TextbookFee
;
decimal
OrderMoney
=
orderModel
.
Income
+
orderModel
.
PlatformTax
-
orderModel
.
Refund
-
orderModel
.
CoursewareFee
-
orderModel
.
TextbookFee
;
backMoney
=
OrderMoney
/
orderModel
.
GuestNum
-
FinishHours
*
classHourPrice
;
// - breakContractPrice; 违约金 先排除
backMoney
=
OrderMoney
/
orderModel
.
GuestNum
-
FinishHours
*
classHourPrice
-
breakContractPrice
;
}
}
else
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