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
c82eb3dc
Commit
c82eb3dc
authored
Jul 15, 2021
by
zhoujinhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增付现明细接口
parent
1217eccf
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
104 additions
and
8 deletions
+104
-8
PageRequest.cs
Bailun.DC.Models/Common/Page/PageRequest.cs
+11
-6
FinanceFeeDetailsPageInputDto.cs
...n.DC.Models/Dtos/Finance/FinanceFeeDetailsPageInputDto.cs
+15
-0
FinanceFeeDetailsPageOutputDto.cs
....DC.Models/Dtos/Finance/FinanceFeeDetailsPageOutputDto.cs
+32
-0
FinanceService.cs
Bailun.DC.Services/WebApiService/FinanceService.cs
+35
-0
FinanceController.cs
Bailun.DC.WebApi/Controllers/FinanceController.cs
+11
-2
No files found.
Bailun.DC.Models/Common/Page/PageRequest.cs
View file @
c82eb3dc
using
System
;
namespace
Bailun.DC.Models.Common.Page
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.Models.Common.Page
{
{
/// <summary>
/// <summary>
/// 分页请求参数
/// 分页请求参数
...
@@ -12,7 +8,7 @@ namespace Bailun.DC.Models.Common.Page
...
@@ -12,7 +8,7 @@ namespace Bailun.DC.Models.Common.Page
/// <summary>
/// <summary>
/// 当前页
/// 当前页
/// </summary>
/// </summary>
public
int
PageIndex
{
get
;
set
;
}
public
int
PageIndex
{
get
;
set
;
}
=
1
;
/// <summary>
/// <summary>
/// 每页行数
/// 每页行数
/// </summary>
/// </summary>
...
@@ -32,4 +28,13 @@ namespace Bailun.DC.Models.Common.Page
...
@@ -32,4 +28,13 @@ namespace Bailun.DC.Models.Common.Page
}
}
public
class
PageResponse
{
public
int
Total
{
get
;
set
;
}
public
int
CurrentPage
{
get
;
set
;
}
public
int
PageSize
{
get
;
set
;
}
}
}
}
Bailun.DC.Models/Dtos/Finance/FinanceFeeDetailsPageInputDto.cs
0 → 100644
View file @
c82eb3dc
using
Bailun.DC.Models.Common.Page
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.Models.Dtos.Finance
{
/// <summary>
/// 分页查询付现明细
/// </summary>
public
class
FinanceFeeDetailsPageInputDto
:
PageRequest
{
}
}
Bailun.DC.Models/Dtos/Finance/FinanceFeeDetailsPageOutputDto.cs
0 → 100644
View file @
c82eb3dc
using
Bailun.DC.Models.Common.Page
;
using
System.Collections.Generic
;
namespace
Bailun.DC.Models.Dtos.Finance
{
/// <summary>
/// 分页查询付现明细
/// </summary>
public
class
FinanceFeeDetailsPageOutputDto
{
public
FinanceFeeDetailsPageOutputDto
()
{
Pages
=
new
PageResponse
();
Items
=
new
List
<
FinanceFeeDetailsListItem
>();
}
/// <summary>
///
/// </summary>
public
List
<
FinanceFeeDetailsListItem
>
Items
{
get
;
set
;
}
/// <summary>
///
/// </summary>
public
PageResponse
Pages
{
get
;
set
;
}
}
public
class
FinanceFeeDetailsListItem
:
dc_base_finance_fee
{
}
}
Bailun.DC.Services/WebApiService/FinanceService.cs
View file @
c82eb3dc
...
@@ -5,6 +5,7 @@ using Bailun.DC.Models.Common;
...
@@ -5,6 +5,7 @@ using Bailun.DC.Models.Common;
using
Bailun.DC.Models.Common.Page
;
using
Bailun.DC.Models.Common.Page
;
using
Bailun.DC.Models.Dtos.Finance
;
using
Bailun.DC.Models.Dtos.Finance
;
using
Dapper
;
using
Dapper
;
using
MySql.Data.MySqlClient
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
...
@@ -56,7 +57,41 @@ and s2.company_type = @CorporateEntity";
...
@@ -56,7 +57,41 @@ and s2.company_type = @CorporateEntity";
}
}
#
region
付现流水明细
#
region
付现流水明细
/// <summary>
/// 分页查询付现流水明细
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public
CommonApiResponseDto
<
FinanceFeeDetailsPageOutputDto
>
GetFinanceFeeDetailsPage
(
FinanceFeeDetailsPageInputDto
input
)
{
var
result
=
new
CommonApiResponseDto
<
FinanceFeeDetailsPageOutputDto
>
{
Data
=
new
FinanceFeeDetailsPageOutputDto
()
};
var
sqlWhere
=
BuildAllotOperationLogPageQuerySqlWhere
(
input
,
out
DynamicParameters
parameters
);
using
(
var
cn
=
new
MySqlConnection
(
GlobalConfig
.
ConnectionString
))
{
int
total
=
0
;
result
.
Data
.
Items
=
cn
.
Page
<
FinanceFeeDetailsListItem
>(
input
.
PageIndex
,
input
.
PageNumber
,
sqlWhere
,
ref
total
,
parameters
).
AsList
();
result
.
Data
.
Pages
.
CurrentPage
=
input
.
PageIndex
;
result
.
Data
.
Pages
.
PageSize
=
input
.
PageNumber
;
result
.
Data
.
Pages
.
Total
=
total
;
}
return
result
;
}
public
string
BuildAllotOperationLogPageQuerySqlWhere
(
FinanceFeeDetailsPageInputDto
input
,
out
DynamicParameters
parameters
)
{
parameters
=
new
DynamicParameters
();
StringBuilder
sqlText
=
new
StringBuilder
();
sqlText
.
Append
(
@"SELECT t1.* FROM dc_base_finance_fee AS t1
INNER JOIN dc_base_finance_company AS t2 ON t2.company_name = t1.company_name
WHERE t1.cost_status = 4
AND (t1.is_lend IS NULL OR t1.is_lend = 1
OR (t1.is_lend = 2 AND t1.lend_balance > 0)
OR (t1.is_lend = 2 AND t1.cost_form = 1)
)"
);
sqlText
.
Append
(
" ORDER BY t1.create_time DESC "
);
return
sqlText
.
ToString
();
}
#
endregion
#
endregion
}
}
}
}
Bailun.DC.WebApi/Controllers/FinanceController.cs
View file @
c82eb3dc
...
@@ -30,7 +30,7 @@ namespace Bailun.DC.WebApi.Controllers
...
@@ -30,7 +30,7 @@ namespace Bailun.DC.WebApi.Controllers
[
BrowseLog
(
"Bailun_data"
,
"访问【百伦数据中心】->【财务报表】->【资产负债表】->【查询】页面"
,
0
)]
[
BrowseLog
(
"Bailun_data"
,
"访问【百伦数据中心】->【财务报表】->【资产负债表】->【查询】页面"
,
0
)]
public
CommonApiResponseDto
<
List
<
dc_base_finance_fee
>>
Test
()
public
CommonApiResponseDto
<
List
<
dc_base_finance_fee
>>
Test
()
{
{
var
list
=
new
Services
.
FinanceReportServices
().
ListFinanceFee
(
DateTime
.
Now
.
AddDays
(-
5
),
DateTime
.
Now
,
""
,
""
,
""
,
null
,
null
);
var
list
=
new
Services
.
FinanceReportServices
().
ListFinanceFee
(
DateTime
.
Now
.
AddDays
(-
5
),
DateTime
.
Now
,
""
,
""
,
""
,
null
,
null
);
return
new
CommonApiResponseDto
<
List
<
dc_base_finance_fee
>>
{
Data
=
list
,
IsSuccess
=
true
};
return
new
CommonApiResponseDto
<
List
<
dc_base_finance_fee
>>
{
Data
=
list
,
IsSuccess
=
true
};
}
}
...
@@ -45,7 +45,16 @@ namespace Bailun.DC.WebApi.Controllers
...
@@ -45,7 +45,16 @@ namespace Bailun.DC.WebApi.Controllers
#
region
付现流水明细
#
region
付现流水明细
/// <summary>
/// 分页查询付现流水明细
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[
HttpPost
(
"GetFinanceFeeDetailsPage"
),
BailunAuthentication
(
LoginMode
.
Enforce
)]
public
CommonApiResponseDto
<
FinanceFeeDetailsPageOutputDto
>
GetFinanceFeeDetailsPage
([
FromBody
]
FinanceFeeDetailsPageInputDto
input
)
{
return
new
FinanceService
().
GetFinanceFeeDetailsPage
(
input
);
}
#
endregion
#
endregion
}
}
}
}
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