Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
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
data-center-auto
Commits
50be21b1
Commit
50be21b1
authored
Jul 27, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
记录索引键
parent
ca4b1ad5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
report_cash_flow_dao.cs
AutoTurnOver.DB/report_cash_flow_dao.cs
+0
-0
dc_report_cash_flow_log.cs
AutoTurnOver.Models/dc_report_cash_flow_log.cs
+4
-2
CashFlowServices.cs
AutoTurnOver.Services/CashFlowServices.cs
+2
-2
CashFlowController.cs
AutoTurnOver/Controllers/CashFlowController.cs
+3
-2
No files found.
AutoTurnOver.DB/report_cash_flow_dao.cs
View file @
50be21b1
This diff is collapsed.
Click to expand it.
AutoTurnOver.Models/dc_report_cash_flow_log.cs
View file @
50be21b1
...
...
@@ -57,6 +57,8 @@ namespace AutoTurnOver.Models
/// </summary>
public
int
is_delete
{
get
;
set
;
}
public
DateTime
?
update_time
{
get
;
set
;
}
public
string
pay_time_year_month_no
{
get
;
set
;
}
public
string
occur_time_year_month_no
{
get
;
set
;
}
}
public
class
dc_report_cash_flow_log_dto
:
dc_report_cash_flow_log
...
...
@@ -148,7 +150,7 @@ namespace AutoTurnOver.Models
{
public
string
remarks
{
get
;
set
;
}
public
string
date_type_str
{
get
;
set
;
}
public
int
date_type
{
get
;
set
;
}
public
List
<
int
>
date_type
{
get
;
set
;
}
public
List
<
date_dto
>
dates
{
get
;
set
;
}
public
class
date_dto
{
...
...
@@ -171,7 +173,7 @@ namespace AutoTurnOver.Models
{
public
DateTime
?
btime
{
get
;
set
;
}
public
DateTime
?
etime
{
get
;
set
;
}
public
int
?
data_type
{
get
;
set
;
}
public
List
<
int
>
data_type
{
get
;
set
;
}
/// <summary>
/// 1 = 根据发生时间查询
/// 2 = 根据支付时间查询
...
...
AutoTurnOver.Services/CashFlowServices.cs
View file @
50be21b1
...
...
@@ -16,7 +16,7 @@ namespace AutoTurnOver.Services
foreach
(
var
item
in
order_list
)
{
dynamic
o
=
new
ExpandoObject
();
o
.
date_type
=
item
.
date_type
;
o
.
date_type
=
string
.
Join
(
","
,
item
.
date_type
)
;
o
.
date_type_str
=
item
.
date_type_str
;
o
.
remarks
=
item
.
remarks
;
foreach
(
var
dat_item
in
item
.
dates
)
...
...
@@ -24,7 +24,7 @@ namespace AutoTurnOver.Services
var
dic
=
(
IDictionary
<
string
,
object
>)
o
;
dic
[
"occur_"
+
(
dat_item
.
date_title
)]
=
new
{
val
=
Math
.
Round
(
dat_item
.
occur_val
,
2
),
btime
=
dat_item
.
btime
,
etime
=
dat_item
.
etime
,
data_type
=
item
.
date_type
};
if
(
item
.
date_type
==
(
int
)
dc_report_cash_flow_log_data_type_enum
.
销售数量
item
.
date_type
.
Contains
(
(
int
)
dc_report_cash_flow_log_data_type_enum
.
销售数量
)
//|| item.date_type==(int)dc_report_cash_flow_log_data_type_enum.利润
//|| item.date_type == (int)dc_report_cash_flow_log_data_type_enum.退款
//|| item.date_type == (int)dc_report_cash_flow_log_data_type_enum.平台费用
...
...
AutoTurnOver/Controllers/CashFlowController.cs
View file @
50be21b1
...
...
@@ -7,6 +7,7 @@ using System.Threading.Tasks;
using
AutoTurnOver.Common
;
using
AutoTurnOver.Models
;
using
AutoTurnOver.Services
;
using
Dapper
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Mvc
;
...
...
@@ -32,11 +33,11 @@ namespace AutoTurnOver.Controllers
});
}
public
FileResult
Export
(
DateTime
?
btime
,
DateTime
?
etime
,
int
?
data_type
=
null
,
int
?
type
=
null
)
public
FileResult
Export
(
DateTime
?
btime
,
DateTime
?
etime
,
string
data_type
=
null
,
int
?
type
=
null
)
{
var
m
=
new
dc_report_cash_flow_log_export_search_dto
{
data_type
=
data_type
,
data_type
=
string
.
IsNullOrWhiteSpace
(
data_type
)
?
new
List
<
int
>
{
}
:
data_type
.
Split
(
','
).
Select
(
s
=>
int
.
Parse
(
s
)).
ToList
()
,
btime
=
btime
,
etime
=
etime
,
type
=
type
,
...
...
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