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
8950273e
Commit
8950273e
authored
Nov 06, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加时间格式化
parent
cbeb7d2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
WareHouseServices.cs
Bailun.DC.Services/WareHouseServices.cs
+2
-1
WarehouseController.cs
...n.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
+1
-3
No files found.
Bailun.DC.Services/WareHouseServices.cs
View file @
8950273e
...
@@ -1057,10 +1057,11 @@ namespace Bailun.DC.Services
...
@@ -1057,10 +1057,11 @@ namespace Bailun.DC.Services
var
sqlparam
=
new
DynamicParameters
();
var
sqlparam
=
new
DynamicParameters
();
var
sql
=
$@"select t1.warehouse_name as category_simple_name,sum(t1.count_sales) count_sales,sum(t1.amount_sales) amount_sales,sum(t1.count_purchase) count_purchase,sum(t1.amount_purchase) amount_purchase,sum(count_putin) count_putin,sum(amount_putin) amount_putin,sum(count_shipping) count_shipping,sum(t1.amount_shipping) amount_shipping from dc_daily_purchase_sales t1
var
sql
=
$@"select t1.warehouse_name as category_simple_name,sum(t1.count_sales) count_sales,sum(t1.amount_sales) amount_sales,sum(t1.count_purchase) count_purchase,sum(t1.amount_purchase) amount_purchase,sum(count_putin) count_putin,sum(amount_putin) amount_putin,sum(count_shipping) count_shipping,sum(t1.amount_shipping) amount_shipping from dc_daily_purchase_sales t1
where t1.isfinish=0 and warehouse_code>0 and t1.day>='
{
start
.
ToString
(
"yyyy-MM-dd"
)}
' and t1.day<'
{
end
.
AddDays
(
1
).
ToString
()}
'
where t1.isfinish=0 and warehouse_code>0 and t1.day>='
{
start
.
ToString
(
"yyyy-MM-dd"
)}
' and t1.day<'
{
end
.
AddDays
(
1
).
ToString
(
"yyyy-MM-dd"
)}
'
"
;
"
;
sql
+=
" group by t1.warehouse_name"
;
sql
+=
" group by t1.warehouse_name"
;
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
{
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
...
...
Bailun.DC.Web/Areas/Reports/Controllers/WarehouseController.cs
View file @
8950273e
...
@@ -753,9 +753,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -753,9 +753,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
}
}
#
region
采购和发货情况
Add
by
Allan
at
20191104
#
region
采购和发货情况
Add
by
Allan
at
20191104
Console
.
WriteLine
(
objSemiCategory
.
Count
);
var
listSubCount1
=
new
List
<
Tuple
<
string
,
decimal
,
decimal
,
decimal
,
decimal
,
decimal
,
decimal
>>();
var
listSubCount1
=
new
List
<
Tuple
<
string
,
decimal
,
decimal
,
decimal
,
decimal
,
decimal
,
decimal
>>();
var
listSubCount2
=
new
List
<
Tuple
<
string
,
decimal
,
decimal
,
decimal
,
decimal
,
decimal
,
decimal
>>();
var
listSubCount2
=
new
List
<
Tuple
<
string
,
decimal
,
decimal
,
decimal
,
decimal
,
decimal
,
decimal
>>();
...
...
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