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
2017db87
Commit
2017db87
authored
Sep 09, 2024
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
38cf9d38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
FinanceModule.cs
Edu.Module.Finance/FinanceModule.cs
+4
-4
No files found.
Edu.Module.Finance/FinanceModule.cs
View file @
2017db87
...
...
@@ -2095,7 +2095,7 @@ namespace Edu.Module.Finance
//获取收入和支出
var cfinanceList = Financelist.Where(x => x.Type == WFTempLateClassEnum.IN).ToList();
decimal ShouRu = cfinanceList.Where(y => y.Is_Cashier == 1).Sum(x => x.Money ?? 0);
ShouRu
-=
cfinanceList
.
Where
(
x
=>
x
.
Is_Cashier
==
1
&&
x
.
Fee
>
0
).
GroupBy
(
x
=>
new
{
x
.
FrID
,
x
.
Fee
}).
Sum
(
x
=>
x
.
Key
.
Fee
??
0
);
ShouRu -= cfinanceList.Where(x => x.Is_Cashier == 1 && x.Fee
!=
0).GroupBy(x => new { x.FrID, x.Fee }).Sum(x => x.Key.Fee ?? 0);
//支出
var ofinanceList = Financelist.Where(x => x.Type == WFTempLateClassEnum.OUT).ToList();
decimal ZhiChu = ofinanceList.Sum(x => x.Money ?? 0);
...
...
@@ -2244,7 +2244,7 @@ namespace Edu.Module.Finance
//获取收入和支出
var cfinanceList = Financelist.Where(x => x.Type == WFTempLateClassEnum.IN).ToList();
decimal ShouRu = cfinanceList.Where(y => y.Is_Cashier == 1).Sum(x => x.Money ?? 0);
ShouRu
-=
cfinanceList
.
Where
(
x
=>
x
.
Is_Cashier
==
1
&&
x
.
Fee
>
0
).
GroupBy
(
x
=>
new
{
x
.
FrID
,
x
.
Fee
}).
Sum
(
x
=>
x
.
Key
.
Fee
??
0
);
ShouRu -= cfinanceList.Where(x => x.Is_Cashier == 1 && x.Fee
!=
0).GroupBy(x => new { x.FrID, x.Fee }).Sum(x => x.Key.Fee ?? 0);
//支出
var ofinanceList = Financelist.Where(x => x.Type == WFTempLateClassEnum.OUT).ToList();
decimal ZhiChu = ofinanceList.Sum(x => x.Money ?? 0);
...
...
@@ -2365,7 +2365,7 @@ namespace Edu.Module.Finance
//获取收入和支出
var cfinanceList = Financelist.Where(x => x.Type == WFTempLateClassEnum.IN).ToList();
decimal ShouRu = cfinanceList.Where(y => y.Is_Cashier == 1).Sum(x => x.Money ?? 0);
ShouRu
-=
cfinanceList
.
Where
(
x
=>
x
.
Is_Cashier
==
1
&&
x
.
Fee
>
0
).
GroupBy
(
x
=>
new
{
x
.
FrID
,
x
.
Fee
}).
Sum
(
x
=>
x
.
Key
.
Fee
??
0
);
ShouRu -= cfinanceList.Where(x => x.Is_Cashier == 1 && x.Fee
!=
0).GroupBy(x => new { x.FrID, x.Fee }).Sum(x => x.Key.Fee ?? 0);
//支出
var ofinanceList = Financelist.Where(x => x.Type == WFTempLateClassEnum.OUT).ToList();
decimal ZhiChu = ofinanceList.Sum(x => x.Money ?? 0);
...
...
@@ -2482,7 +2482,7 @@ namespace Edu.Module.Finance
//获取收入和支出
var cfinanceList = Financelist.Where(x => x.Type == WFTempLateClassEnum.IN).ToList();
decimal ShouRu = cfinanceList.Where(y => y.Is_Cashier == 1).Sum(x => x.Money ?? 0);
ShouRu
-=
cfinanceList
.
Where
(
x
=>
x
.
Is_Cashier
==
1
&&
x
.
Fee
>
0
).
GroupBy
(
x
=>
new
{
x
.
FrID
,
x
.
Fee
}).
Sum
(
x
=>
x
.
Key
.
Fee
??
0
);
ShouRu -= cfinanceList.Where(x => x.Is_Cashier == 1 && x.Fee
!=
0).GroupBy(x => new { x.FrID, x.Fee }).Sum(x => x.Key.Fee ?? 0);
//支出
var ofinanceList = Financelist.Where(x => x.Type == WFTempLateClassEnum.OUT).ToList();
decimal ZhiChu = ofinanceList.Sum(x => x.Money ?? 0);
...
...
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