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
dc5a8260
Commit
dc5a8260
authored
Jul 15, 2021
by
GhostUI
Browse files
Options
Browse Files
Download
Plain Diff
冲突
parents
b86daa53
c82eb3dc
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
127 additions
and
9 deletions
+127
-9
CommonApiResponseDto.cs
Bailun.DC.Models/Common/CommonApiResponseDto.cs
+1
-1
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
+39
-0
OrderBillings.cshtml
...as/DataWareHouse/Views/PlatformOrder/OrderBillings.cshtml
+12
-1
FinanceController.cs
Bailun.DC.WebApi/Controllers/FinanceController.cs
+15
-1
Startup.cs
Bailun.DC.WebApi/Startup.cs
+2
-0
No files found.
Bailun.DC.Models/Common/CommonApiResponseDto.cs
View file @
dc5a8260
...
...
@@ -28,6 +28,6 @@ namespace Bailun.DC.Models.Common
/// <summary>
/// HTTP状态码
/// </summary>
public
int
Code
{
get
;
set
;
}
public
int
Code
=>
IsSuccess
?
200
:
0
;
}
}
Bailun.DC.Models/Common/Page/PageRequest.cs
View file @
dc5a8260
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Bailun.DC.Models.Common.Page
namespace
Bailun.DC.Models.Common.Page
{
/// <summary>
/// 分页请求参数
...
...
@@ -12,7 +8,7 @@ namespace Bailun.DC.Models.Common.Page
/// <summary>
/// 当前页
/// </summary>
public
int
PageIndex
{
get
;
set
;
}
public
int
PageIndex
{
get
;
set
;
}
=
1
;
/// <summary>
/// 每页行数
/// </summary>
...
...
@@ -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 @
dc5a8260
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 @
dc5a8260
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 @
dc5a8260
...
...
@@ -5,6 +5,7 @@ using Bailun.DC.Models.Common;
using
Bailun.DC.Models.Common.Page
;
using
Bailun.DC.Models.Dtos.Finance
;
using
Dapper
;
using
MySql.Data.MySqlClient
;
using
Newtonsoft.Json
;
using
System
;
using
System.Collections.Generic
;
...
...
@@ -143,5 +144,43 @@ and s2.company_type = @CorporateEntity";
return
obj
;
};
}
#
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
}
}
Bailun.DC.Web/Areas/DataWareHouse/Views/PlatformOrder/OrderBillings.cshtml
View file @
dc5a8260
...
...
@@ -230,7 +230,13 @@
var _r = '<tr><td>' + result.rows[i].datatime+'</td>';
for (var r in _obj) {
_r += '<td style="width:160px;">' + '<div class="mules" title="' + _obj[r] + '">' + _obj[r] + '</div>' +'</td>';
var _v = _obj[r];
if (isJson(_obj[r])) {
_v = JSON.stringify(_obj[r]).replace(/"/g, "'");
}
_r += '<td style="width:160px;">' + '<div class="mules" title="' + _v + '">' + _v + '</div>' +'</td>';
}
_r += '</tr>';
...
...
@@ -291,6 +297,11 @@
}
function isJson (obj) {
var isjson = typeof (obj) == "object" && Object.prototype.toString.call(obj).toLowerCase() == "[object object]" && !obj.length;
return isjson;
}
function ExportCSV() {
//var website = $('#website').val();
//var month = $('#month').val();
...
...
Bailun.DC.WebApi/Controllers/FinanceController.cs
View file @
dc5a8260
...
...
@@ -30,7 +30,7 @@ namespace Bailun.DC.WebApi.Controllers
[
BrowseLog
(
"Bailun_data"
,
"访问【百伦数据中心】->【财务报表】->【资产负债表】->【查询】页面"
,
0
)]
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
};
}
...
...
@@ -42,5 +42,19 @@ namespace Bailun.DC.WebApi.Controllers
[
HttpPost
(
"getCashFlowStatement"
)]
public
CommonApiResponseDto
<
FinanceDto
>
GetCashFlowStatement
(
GetCashFlowStatementInput
input
)
=>
new
FinanceService
().
GetCashFlowStatement
(
input
);
#
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
}
}
Bailun.DC.WebApi/Startup.cs
View file @
dc5a8260
...
...
@@ -34,6 +34,7 @@ namespace Bailun.DC.WebApi
{
ConfigManagerConf
.
SetConfiguration
(
Configuration
);
ConfigHelper
.
SetAppSetting
(
Configuration
);
services
.
AddCors
(
options
=>
options
.
AddPolicy
(
"cors"
,
p
=>
p
.
AllowAnyOrigin
().
AllowAnyHeader
().
AllowAnyMethod
().
AllowCredentials
()));
services
.
AddSwaggerGen
(
c
=>
{
c
.
SwaggerDoc
(
"v1"
,
new
OpenApiInfo
{
Title
=
"Bailun.DC.WebApi"
,
Version
=
"v1"
});
...
...
@@ -72,6 +73,7 @@ namespace Bailun.DC.WebApi
{
app
.
UseDeveloperExceptionPage
();
}
app
.
UseCors
(
"cors"
);
app
.
UseSwagger
();
app
.
UseSwaggerUI
(
c
=>
{
...
...
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