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
71757a38
Commit
71757a38
authored
Jul 31, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
68540e0a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
report_cash_flow_dao.cs
AutoTurnOver.DB/report_cash_flow_dao.cs
+13
-1
dc_report_cash_flow_log.cs
AutoTurnOver.Models/dc_report_cash_flow_log.cs
+1
-0
CashFlowController.cs
AutoTurnOver/Controllers/CashFlowController.cs
+3
-2
No files found.
AutoTurnOver.DB/report_cash_flow_dao.cs
View file @
71757a38
...
@@ -1315,6 +1315,14 @@ GROUP BY platform_type,website";
...
@@ -1315,6 +1315,14 @@ GROUP BY platform_type,website";
{
{
sql
=
$" select sum(`val`) as 'val' from dc_report_cash_flow_log as t1 where t1.is_delete=0 and `val`!=0 "
;
sql
=
$" select sum(`val`) as 'val' from dc_report_cash_flow_log as t1 where t1.is_delete=0 and `val`!=0 "
;
}
}
else
{
if
(
search
.
view_type
==
2
)
{
sql
=
$@" select t1.data_type,t1.pay_type,sum(`val`) as 'val'
from dc_report_cash_flow_log as t1 left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code where t1.is_delete=0 and `val`!=0 "
;
}
}
DynamicParameters
parameters
=
new
DynamicParameters
();
DynamicParameters
parameters
=
new
DynamicParameters
();
if
(
search
.
type
==
1
)
if
(
search
.
type
==
1
)
{
{
...
@@ -1354,7 +1362,11 @@ GROUP BY platform_type,website";
...
@@ -1354,7 +1362,11 @@ GROUP BY platform_type,website";
sql
+=
" and t1.data_type in @data_type "
;
sql
+=
" and t1.data_type in @data_type "
;
parameters
.
Add
(
"data_type"
,
search
.
data_type
);
parameters
.
Add
(
"data_type"
,
search
.
data_type
);
}
}
if
(
search
.
issum
)
if
(
search
.
view_type
==
2
)
{
sql
+=
"group by t1.data_type "
;
}
if
(
search
.
issum
)
{
{
return
new
Page
<
dc_report_cash_flow_log_dto
>()
return
new
Page
<
dc_report_cash_flow_log_dto
>()
{
{
...
...
AutoTurnOver.Models/dc_report_cash_flow_log.cs
View file @
71757a38
...
@@ -236,6 +236,7 @@ namespace AutoTurnOver.Models
...
@@ -236,6 +236,7 @@ namespace AutoTurnOver.Models
public
string
warehouse_code
{
get
;
set
;
}
public
string
warehouse_code
{
get
;
set
;
}
public
string
platform_type
{
get
;
set
;
}
public
string
platform_type
{
get
;
set
;
}
public
string
web_site
{
get
;
set
;
}
public
string
web_site
{
get
;
set
;
}
public
int
?
view_type
{
get
;
set
;
}
}
}
public
class
dc_report_cash_flow_sku_group
public
class
dc_report_cash_flow_sku_group
...
...
AutoTurnOver/Controllers/CashFlowController.cs
View file @
71757a38
...
@@ -133,7 +133,7 @@ namespace AutoTurnOver.Controllers
...
@@ -133,7 +133,7 @@ namespace AutoTurnOver.Controllers
}
}
[
HttpGet
]
[
HttpGet
]
public
JsonResult
LogPage
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
DateTime
?
btime
,
DateTime
?
etime
,
string
bailun_sku
,
string
data_type
=
null
,
int
?
type
=
null
,
string
platform_type
=
null
,
string
warehouse_code
=
null
,
string
web_site
=
""
)
public
JsonResult
LogPage
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
DateTime
?
btime
,
DateTime
?
etime
,
string
bailun_sku
,
string
data_type
=
null
,
int
?
type
=
null
,
string
platform_type
=
null
,
string
warehouse_code
=
null
,
string
web_site
=
""
,
int
?
view_type
=
1
)
{
{
try
try
{
{
...
@@ -152,7 +152,8 @@ namespace AutoTurnOver.Controllers
...
@@ -152,7 +152,8 @@ namespace AutoTurnOver.Controllers
sord
=
order
,
sord
=
order
,
sidx
=
sort
,
sidx
=
sort
,
warehouse_code
=
warehouse_code
,
warehouse_code
=
warehouse_code
,
web_site
=
web_site
web_site
=
web_site
,
view_type
=
view_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