Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
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
bltdc
DataCenter_Core2.1_20190520
Commits
30b13371
Commit
30b13371
authored
Jul 16, 2021
by
GhostUI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a4bbae70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
GetCashFlowStatementInput.cs
Bailun.DC.Models/Dtos/Finance/GetCashFlowStatementInput.cs
+1
-0
FinanceService.cs
Bailun.DC.Services/WebApiService/FinanceService.cs
+13
-0
No files found.
Bailun.DC.Models/Dtos/Finance/GetCashFlowStatementInput.cs
View file @
30b13371
...
...
@@ -22,6 +22,7 @@ namespace Bailun.DC.Models.Dtos.Finance
#
region
明细
public
string
CompanyName
{
get
;
set
;
}
public
string
FeeType
{
get
;
set
;
}
public
bool
IsPage
{
get
;
set
;
}
=
false
;
#
endregion
}
}
Bailun.DC.Services/WebApiService/FinanceService.cs
View file @
30b13371
...
...
@@ -172,6 +172,12 @@ and s2.company_type = @CorporateEntity ";
sql
+=
" and s1.type_name=@type and s1.company_name = @companyname"
;
para
.
Add
(
"type"
,
input
.
FeeType
);
para
.
Add
(
"companyname"
,
input
.
CompanyName
);
if
(
input
.
IsPage
)
{
sql
+=
"limit @limit offset @offset"
;
para
.
Add
(
"limit"
,
(
input
.
PageIndex
-
1
)
*
input
.
PageNumber
);
para
.
Add
(
"offset"
,
input
.
PageNumber
);
}
}
var
data
=
SimpleCRUD
.
Query
<
dc_base_finance_fee
>(
sql
,
para
,
GlobalConfig
.
ConnectionString
).
ToList
();
foreach
(
var
item
in
data
)
...
...
@@ -198,6 +204,7 @@ and s2.company_type = @CorporateEntity ";
{
try
{
//input.IsPage = true;
var
data
=
GetFinanceFeeList
(
input
);
var
dto
=
data
.
Select
(
x
=>
new
FinanceDetailsDto
{
...
...
@@ -214,6 +221,12 @@ and s2.company_type = @CorporateEntity ";
x
.
pay_time
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
,
ReceiveUnit
=
x
.
bank_company
}).
ToList
();
dto
.
Add
(
new
FinanceDetailsDto
{
FeeId
=
"合计"
,
AmountRmb
=
dto
.
Sum
(
x
=>
x
.
AmountRmb
),
Amount
=
dto
.
Sum
(
x
=>
x
.
Amount
)
});
return
new
CommonApiResponseDto
<
List
<
FinanceDetailsDto
>>
{
Data
=
dto
};
}
catch
(
Exception
e
)
...
...
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