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
a0869354
Commit
a0869354
authored
Jun 25, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a95f3980
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
FinanceController.cs
Edu.WebApi/Controllers/Finance/FinanceController.cs
+5
-5
No files found.
Edu.WebApi/Controllers/Finance/FinanceController.cs
View file @
a0869354
...
...
@@ -1023,14 +1023,14 @@ namespace Edu.WebApi.Controllers.Finance
x
.
CreateByPhoto
,
x
.
TotalCourseFee
,
x
.
TotalClassHours
,
TotalUnitPrice
=
Math
.
Round
(
x
.
TotalCourseFee
/
x
.
TotalClassHours
,
2
,
MidpointRounding
.
AwayFromZero
)
,
TotalUnitPrice
=
x
.
TotalClassHours
>
0
?
Math
.
Round
(
x
.
TotalCourseFee
/
x
.
TotalClassHours
,
2
,
MidpointRounding
.
AwayFromZero
)
:
0
,
x
.
TotalBookFee
,
x
.
TotalClassFee
,
x
.
TotalSub
,
x
.
TotalDiscountMoney
,
x
.
TotalMoney
,
x
.
Status
,
IncomeList
=
x
.
FinanceList
.
Where
(
x
=>
x
.
Type
==
WFTempLateClassEnum
.
IN
).
Select
(
z
=>
new
IncomeList
=
x
.
FinanceList
.
Where
(
t
=>
t
.
Type
==
WFTempLateClassEnum
.
IN
).
Select
(
z
=>
new
{
z
.
FrID
,
TradeDate
=
z
.
TradeDate
.
HasValue
?
z
.
TradeDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
:
""
,
...
...
@@ -1055,7 +1055,7 @@ namespace Edu.WebApi.Controllers.Finance
y
.
AccountTypeId
})
}),
ExpendList
=
x
.
FinanceList
.
Where
(
x
=>
x
.
Type
==
WFTempLateClassEnum
.
OUT
).
Select
(
z
=>
new
ExpendList
=
x
.
FinanceList
.
Where
(
t
=>
t
.
Type
==
WFTempLateClassEnum
.
OUT
).
Select
(
z
=>
new
{
z
.
FrID
,
CreateDate
=
z
.
CreateDate
.
HasValue
?
z
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
:
""
,
...
...
@@ -1080,8 +1080,8 @@ namespace Edu.WebApi.Controllers.Finance
y
.
AccountTypeId
})
}),
PreferPrice
=
x
.
FinanceList
.
Where
(
x
=>
x
.
Type
==
WFTempLateClassEnum
.
IN
).
Sum
(
x
=>
(
x
.
Money
??
0
)
+
(
x
.
Fee
??
0
))
,
EffectiveClassHours
=
Math
.
Round
(
x
.
Income
/
x
.
Unit_Price
,
2
,
MidpointRounding
.
AwayFromZero
)
,
PreferPrice
=
x
.
FinanceList
.
Where
(
t
=>
t
.
Type
==
WFTempLateClassEnum
.
IN
)?.
Sum
(
x
=>
(
x
.
Money
??
0
)
+
(
x
.
Fee
??
0
))??
0
,
EffectiveClassHours
=
x
.
Unit_Price
>
0
?
Math
.
Round
(
x
.
Income
/
x
.
Unit_Price
,
2
,
MidpointRounding
.
AwayFromZero
)
:
0
,
x
.
Income
,
x
.
Expend
,
x
.
UseBookFee
,
...
...
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